diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index d4d7327fbd7ee..973fd251ee7e1 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -74,6 +74,24 @@ namespace ts { * true if semantic diagnostics are ReusableDiagnostic instead of Diagnostic */ hasReusableDiagnostic?: true; + persistedProgramState?: PersistedProgramState; + } + + export interface PersistedProgramState { + files: readonly SourceFileOfProgramFromBuildInfo[]; + rootFileNames: readonly string[]; + filesByName: ESMap; + fileIncludeReasons: MultiMap; + sourceFileFromExternalLibraryPath: Set | undefined; + sourceFileFromProjectReferencePath: Set | undefined; + redirectTargetsMap: MultiMap; + sourceFileToPackageName: ESMap; + projectReferences: readonly ProjectReference[] | undefined; + resolvedProjectReferences: readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[] | undefined; + automaticTypeDirectiveNames: string[] | undefined; + resolvedTypeReferenceDirectives: ESMap; + fileProcessingDiagnostics: FilePreprocessingDiagnostic[] | undefined; + useSourceOfProjectReferenceRedirect: boolean; } export const enum BuilderFileEmit { @@ -159,6 +177,20 @@ namespace ts { * true if program has been emitted */ programEmitComplete?: true; + persistedProgramState?: 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 { @@ -257,13 +289,22 @@ namespace ts { state.seenAffectedFiles = state.seenAffectedFiles || new Set(); } - state.buildInfoEmitPending = !!state.changedFilesSet.size; + if (oldState && newProgram.structureIsReused === StructureIsReused.Completely) { + state.persistedProgramState = oldState.persistedProgramState; + } + + state.buildInfoEmitPending = !!state.changedFilesSet.size || !!compilerOptions.persistResolutions && newProgram.structureIsReused !== StructureIsReused.Completely; 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 +319,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 { @@ -297,9 +334,83 @@ namespace ts { */ function releaseCache(state: BuilderProgramState) { BuilderState.releaseCache(state); + createPersistedProgramInfo(state); state.program = undefined; } + function createPersistedProgramInfo(state: BuilderProgramState) { + 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, + rootFileNames: state.program.getRootFileNames(), + filesByName, + fileIncludeReasons: state.program.getFileIncludeReasons(), + sourceFileFromExternalLibraryPath, + sourceFileFromProjectReferencePath, + redirectTargetsMap: state.program.redirectTargetsMap, + sourceFileToPackageName: state.program.sourceFileToPackageName, + projectReferences: state.program.getProjectReferences(), + resolvedProjectReferences: state.program.getResolvedProjectReferences()?.map(toResolvedProjectReferenceOfProgramFromBuildInfo), + 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, + 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 */ @@ -706,6 +817,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]; @@ -723,6 +835,104 @@ namespace ts { * ProgramBuildInfoFileInfo is string if FileInfo.version === FileInfo.signature && !FileInfo.affectsGlobalScope otherwise encoded FileInfo */ export type ProgramBuildInfoFileInfo = string | ProgramBuildInfoBuilderStateFileInfo; + 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; + 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; + version: string; + + typeReferenceDirectives?: readonly string[]; + libReferenceDirectives?: readonly string[]; + referencedFiles?: readonly string[]; + imports?: readonly StringLiteralLikeOfProgramFromBuildInfo[]; + moduleAugmentations?: readonly ModuleNameOfProgramFromBuildInfo[]; + ambientModuleNames?: readonly string[]; + hasNoDefaultLib?: true; + + resolvedModules?: readonly PersistedProgramResolutionEntry[]; + resolvedTypeReferenceDirectiveNames?: readonly PersistedProgramResolutionEntry[]; + redirectInfo?: { readonly redirectTarget: { readonly path: ProgramBuildInfoFileId; }; }; + + includeReasons: readonly PersistedProgramFileIncludeReason[]; + isSourceFileFromExternalLibraryPath?: true; + isSourceFileFromProjectReference?: true; + redirectTargets?: readonly ProgramBuildInfoAbsoluteFileId[]; + 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 type PersistedProgramReferencedFile = Omit & { + file: ProgramBuildInfoFileId; + }; + export type PersistedProgramFileIncludeReason = + RootFile | + LibFile | + ProjectReferenceFile | + PersistedProgramReferencedFile | + AutomaticTypeDirectiveFile; + export type PersistedProgramFilePreprocessingReferencedDiagnostic = Omit & { + reason: PersistedProgramReferencedFile; + diagnostic: keyof typeof Diagnostics; + }; + export type PersistedProgramFilePreprocessingFileExplainingDiagnostic = Omit & { + file?: ProgramBuildInfoFileId; + fileProcessingReason: PersistedProgramFileIncludeReason; + diagnostic: keyof typeof Diagnostics; + }; + export type PersistedProgramFilePreprocessingDiagnostic = PersistedProgramFilePreprocessingReferencedDiagnostic | PersistedProgramFilePreprocessingFileExplainingDiagnostic; + export type PersistedProgramProjectReference = Omit & { + path: ProgramBuildInfoAbsoluteFileId; + }; + export interface PersistedProgramResolvedProjectReference { + commandLine: { + fileNames: readonly ProgramBuildInfoAbsoluteFileId[] | undefined; + options: CompilerOptions; + projectReferences: readonly PersistedProgramProjectReference[] | undefined; + }; + sourceFile: { version: string; path: ProgramBuildInfoFileId; }; + references: readonly (PersistedProgramResolvedProjectReference | undefined)[] | undefined; + } + export interface PersistedProgram { + files: readonly PersistedProgramSourceFile[] | undefined; + rootFileNames: readonly ProgramBuildInfoAbsoluteFileId[] | undefined; + 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; + useSourceOfProjectReferenceRedirect: true | undefined; + } export interface ProgramBuildInfo { fileNames: readonly string[]; fileInfos: readonly ProgramBuildInfoFileInfo[]; @@ -732,19 +942,23 @@ namespace ts { exportedModulesMap?: ProgramBuildInfoReferencedMap; semanticDiagnosticsPerFile?: ProgramBuildInfoDiagnostic[]; affectedFilesPendingEmit?: ProgramBuilderInfoFilePendingEmit[]; + peristedProgram?: PersistedProgram; } /** * 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; - const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); + if (outFileWithoutPersistResolutions(state.compilerOptions)) return undefined; + 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(); + 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); @@ -808,15 +1022,41 @@ 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: PersistedProgramFileByNameEntry[] | undefined; + for (const key of arrayFrom(programFilesByName.keys()).sort(compareStringsCaseSensitive)) { + const value = program.getFilesByNameMap().get(key)!; + const keyId = toFileId(key); + const valueId = value ? toFileId(value.path) : value; + (filesByName ||= []).push(keyId === valueId ? keyId : [keyId, valueId]); + } + peristedProgram = { + files, + rootFileNames: mapToReadonlyArrayOrUndefined(program.getRootFileNames(), toAbsoluteFileId), + filesByName, + 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), + useSourceOfProjectReferenceRedirect: program.useSourceOfProjectReferenceRedirect ? true : undefined + }; + } 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) { @@ -827,15 +1067,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(); @@ -846,16 +1094,141 @@ 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); + return { + fileName: toAbsoluteFileId(sourceFile.fileName), + originalFileName: toAbsoluteFileId(sourceFile.originalFileName), + path: toFileId(sourceFile.path), + resolvedPath: toFileId(sourceFile.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: toFileId(sourceFile.redirectInfo.redirectTarget.path) } }, + resolvedModules: toPersistedProgramResolutionMap(sourceFile.resolvedModules), + resolvedTypeReferenceDirectiveNames: toPersistedProgramResolutionMap(sourceFile.resolvedTypeReferenceDirectiveNames), + 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), + }; + } + + function toPersistedProgramReferencedFile(reason: ReferencedFile): PersistedProgramReferencedFile { + return { ...reason, file: toFileId(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: ensureDiagnosticKeyMap().get(d.diagnostic.key)!, + file: d.file && toFileId(d.file), + fileProcessingReason: toPersistedProgramFileIncludeReason(d.fileProcessingReason), + }; + case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: + return { + ...d, + diagnostic: ensureDiagnosticKeyMap().get(d.diagnostic.key)!, + reason: toPersistedProgramReferencedFile(d.reason), + }; + default: + Debug.assertNever(d); + } + } + + function toPersistedProgramResolvedProjectReference(ref: ResolvedProjectReference | undefined): PersistedProgramResolvedProjectReference | undefined { + return ref && { + commandLine: { + fileNames: mapToReadonlyArrayOrUndefined(ref.commandLine.fileNames, toAbsoluteFileId), + options: convertToProgramBuildInfoCompilerOptions(ref.commandLine.options, relativeToBuildInfoEnsuringAbsolutePath, /*filterOptions*/ false)!, + projectReferences: mapToReadonlyArrayOrUndefined(ref.commandLine.projectReferences, toPersistedProgramProjectReference) + }, + sourceFile: { version: ref.sourceFile.version, path: toFileId(ref.sourceFile.path) }, + references: mapToReadonlyArrayOrUndefined(ref.references, toPersistedProgramResolvedProjectReference) + }; + } + + function toPersistedProgramProjectReference(ref: ProjectReference): PersistedProgramProjectReference { + return { ...ref, path: toAbsoluteFileId(ref.path) }; + } + + 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 && { + ...resolvedModule, + resolvedFileName: toAbsoluteFileId(resolvedModule.resolvedFileName), + isExternalLibraryImport: resolvedModule.isExternalLibraryImport ? true : undefined, + originalPath: resolvedModule.originalPath ? toAbsoluteFileId(resolvedModule.originalPath) : undefined, + }, + resolvedTypeReferenceDirective: resolvedTypeReferenceDirective && { + ...resolvedTypeReferenceDirective, + resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName ? toAbsoluteFileId(resolvedTypeReferenceDirective.resolvedFileName) : undefined, + isExternalLibraryImport: resolvedTypeReferenceDirective.isExternalLibraryImport ? true : undefined, + }, + failedLookupLocations: mapToReadonlyArrayOrUndefined(r.failedLookupLocations, toAbsoluteFileId), + }; + } + + 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 as PersistedProgramResolutionId; + } + (result ||= []).push([key, resolution.serializationIndex]); + }); + return result; + } + + 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 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 optionKey = name.toLowerCase(); const optionInfo = optionsNameMap.get(optionKey); - if (optionInfo?.affectsEmit || optionInfo?.affectsSemanticDiagnostics || + if (!filterOptions || optionInfo?.affectsEmit || optionInfo?.affectsSemanticDiagnostics || // We need to store `strict`, even though it won't be examined directly, so that the // flags it controls (e.g. `strictNullChecks`) will be retrieved correctly from the buildinfo optionKey === "strict" || @@ -868,6 +1241,7 @@ namespace ts { ); } } + if (!filterOptions && result?.configFilePath) result.configFilePath = relativeToBuildInfo(result.configFilePath); return result; } @@ -941,7 +1315,7 @@ namespace ts { rootNames: newProgramOrRootNames, options: hostOrOptions as CompilerOptions, host: oldProgramOrHost as CompilerHost, - oldProgram: oldProgram && oldProgram.getProgramOrUndefined(), + oldProgram: oldProgram?.getProgramOrProgramFromBuildInfoOrUndefined(), configFileParsingDiagnostics, projectReferences }); @@ -989,9 +1363,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; }; @@ -1250,12 +1626,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; + 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); + } - const filePaths = program.fileNames.map(toPath); - const filePathsSetList = program.fileIdsList?.map(fileIds => new Set(fileIds.map(toFilePath))); + 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 = { @@ -1269,12 +1678,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, + getProgramOrProgramFromBuildInfoOrUndefined, releaseProgram: noop, getCompilerOptions: () => state.compilerOptions, getSourceFile: notImplemented, @@ -1294,34 +1705,212 @@ namespace ts { close: noop, }; - function toPath(path: string) { - return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); + function getProgramOrProgramFromBuildInfoOrUndefined() { + if (programFromBuildInfo === undefined) { + const result = createProgramFromBuildInfo(program, buildInfoPath, host, state.compilerOptions); + if (result) { + state.persistedProgramState = result.persistedProgramState; + programFromBuildInfo = result.program; + } + else { + programFromBuildInfo = false; + } + } + + return programFromBuildInfo || undefined; } - 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 mapToReadonlyArray(array: readonly T[] | undefined, map: (value: T) => U): readonly U[] { + return array?.length ? array.map(map) : emptyArray; + } - function toFilePath(fileId: ProgramBuildInfoFileId) { - return filePaths[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; + let sourceFileFromProjectReferencePath: 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, + sourceFileFromProjectReferencePath, + redirectTargetsMap, + 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), + useSourceOfProjectReferenceRedirect: !!program.peristedProgram.useSourceOfProjectReferenceRedirect, + }; + return { + program: createProgramFromPersistedProgramState(persistedProgramState, compilerOptions), + persistedProgramState + }; + + 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.isSourceFileFromProjectReference) (sourceFileFromProjectReferencePath ||= 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 toFilePathsSet(fileIdsListId: ProgramBuildInfoFileIdListId) { - return filePathsSetList![fileIdsListId - 1]; + function toReferencedFile(reason: PersistedProgramReferencedFile): ReferencedFile { + return { ...reason, file: toFilePath(reason.file) }; } - function toMapOfReferencedSet(referenceMap: ProgramBuildInfoReferencedMap | undefined): ReadonlyESMap | undefined { - return referenceMap && arrayToMap(referenceMap, value => toFilePath(value[0]), value => toFilePathsSet(value[1])); + function toFileIncludeReason(reason: PersistedProgramFileIncludeReason): FileIncludeReason { + 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 && { + ...resolvedModule, + resolvedFileName: toFileAbsolutePath(resolvedModule.resolvedFileName), + originalPath: resolvedModule.originalPath && toFileAbsolutePath(resolvedModule.originalPath), + }, + resolvedTypeReferenceDirective: resolvedTypeReferenceDirective && { + ...resolvedTypeReferenceDirective, + resolvedFileName: resolvedTypeReferenceDirective.resolvedFileName && toFileAbsolutePath(resolvedTypeReferenceDirective.resolvedFileName), + }, + failedLookupLocations: failedLookupLocations ? failedLookupLocations.map(toFileAbsolutePath) : [] + }; + } + + 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(toFileAbsolutePath) || [], + options: convertToOptionsWithAbsolutePaths(ref.commandLine.options, toAbsolutePath), + projectReferences: ref.commandLine.projectReferences?.map(toProjectReference) + }, + sourceFile: { version: ref.sourceFile.version, path: toFilePath(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 ? toFilePath(d.file) : undefined, + fileProcessingReason: toFileIncludeReason(d.fileProcessingReason), + }; + case FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic: + return { + ...d, + diagnostic: Diagnostics[d.diagnostic], + reason: toReferencedFile(d.reason), + }; + default: + Debug.assertNever(d); + } } } - export function createRedirectedBuilderProgram(getState: () => { program: Program | undefined; compilerOptions: CompilerOptions; }, configFileParsingDiagnostics: readonly Diagnostic[]): BuilderProgram { + function createProgramFromPersistedProgramState(persistedProgramState: PersistedProgramState, compilerOptions: CompilerOptions): ProgramFromBuildInfo { + let missingFilePaths: readonly Path[] | undefined; + return { + programFromBuildInfo: true, + getCompilerOptions: () => compilerOptions, + getRootFileNames: () => persistedProgramState.rootFileNames, + getSourceFiles: () => persistedProgramState.files, + getSourceFileByPath: path => { + const file = persistedProgramState.filesByName.get(path); + return file && !isString(file) ? file : undefined; + }, + getProjectReferences: () => persistedProgramState.projectReferences, + getResolvedProjectReferences: () => persistedProgramState.resolvedProjectReferences, + getAutomaticTypeDirectiveNames: () => persistedProgramState.automaticTypeDirectiveNames, + getMissingFilePaths: () => missingFilePaths ||= getMissingFilePaths(persistedProgramState.filesByName), + getFileIncludeReasons: () => persistedProgramState.fileIncludeReasons, + 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 + }; + } + + 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, + getProgramOrProgramFromBuildInfoOrUndefined, releaseProgram: () => getState().program = undefined, getCompilerOptions: () => getState().compilerOptions, getSourceFile: fileName => getProgram().getSourceFile(fileName), @@ -1342,5 +1931,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.persistedProgramState) { + programFromBuildInfo = false; + return undefined; + } + return programFromBuildInfo = createProgramFromPersistedProgramState(state.persistedProgramState, state.compilerOptions); + } } } 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/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 38c193758be7a..4c7bb5df438df 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; @@ -40338,11 +40338,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/commandLineParser.ts b/src/compiler/commandLineParser.ts index 687c388223e51..ad492e9948a2e 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -280,6 +280,13 @@ namespace ts { isCommandLineOnly: true, description: Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us }, + { + name: "cleanPersistedProgram", + type: "boolean", + isCommandLineOnly: true, + category: Diagnostics.Modules, + description: Diagnostics.Clean_persisted_program_information_in_tsbuildinfo_file, + }, ]; /* @internal */ @@ -967,6 +974,13 @@ namespace ts { // so pass --noResolve to avoid reporting missing file errors. transpileOptionValue: true }, + { + name: "persistResolutions", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Save_module_and_type_reference_directive_resolution_information_in_tsbuildinfo_file, + }, { name: "stripInternal", type: "boolean", 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/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index d2ddbc8b0a4ec..3905ecefbf0fb 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4919,6 +4919,14 @@ "code": 6257 }, + "Save module and type reference directive resolution information in '.tsbuildinfo' file.": { + "category": "Message", + "code": 6258 + }, + "Clean persisted program information in '.tsbuildinfo' file.": { + "category": "Message", + "code": 6259 + }, "Projects to reference": { "category": "Message", diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index fc945a4cac70f..78be24e20d890 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; } @@ -385,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/src/compiler/program.ts b/src/compiler/program.ts index 91529ceada8d4..f2186a251ddf4 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); }); } } @@ -582,8 +582,26 @@ 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 { + 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: @@ -623,7 +641,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 +651,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]); @@ -653,6 +671,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 +707,7 @@ namespace ts { function sourceFileNotUptoDate(sourceFile: SourceFile) { return !sourceFileVersionUptoDate(sourceFile) || + !sourceFileScriptKindUptoDate(sourceFile) || hasInvalidatedResolution(sourceFile.path); } @@ -695,6 +715,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); @@ -712,11 +737,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); @@ -732,16 +760,31 @@ 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] : 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`. @@ -769,6 +812,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. @@ -784,7 +829,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; @@ -797,13 +842,14 @@ 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 = {}; - let resolvedTypeReferenceDirectives = new Map(); - let fileProcessingDiagnostics: FilePreprocessingDiagnostics[] | undefined; + let automaticTypeDirectiveNames: string[] | undefined; + let resolvedTypeReferenceDirectives = new Map(); + 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: @@ -842,28 +888,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()); @@ -874,14 +931,14 @@ 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. // 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. @@ -890,14 +947,14 @@ 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 - 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; @@ -920,7 +977,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", {}); @@ -967,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]?.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(); } @@ -999,48 +1056,49 @@ namespace ts { } } - missingFilePaths = arrayFrom(mapDefinedIterator(filesByName.entries(), ([path, file]) => file === undefined ? path as Path : undefined)); files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); processingDefaultLibFiles = undefined; processingOtherFiles = 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 (!host.getParsedCommandLine) { - oldProgram.forEachResolvedProjectReference(resolvedProjectReference => { - if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) { - host.onReleaseOldSourceFile!(resolvedProjectReference.sourceFile, oldProgram!.getCompilerOptions(), /*hasSourceFileByPath*/ false); + packageIdToSourceFile = undefined!; + filesByNameIgnoreCase = undefined; + } + + 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); + } + }); + } } - } - // 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; @@ -1053,7 +1111,7 @@ namespace ts { getSourceFile, getSourceFileByPath, getSourceFiles: () => files, - getMissingFilePaths: () => missingFilePaths!, // TODO: GH#18217 + getMissingFilePaths, getFilesByNameMap: () => filesByName, getCompilerOptions: () => options, getSyntacticDiagnostics, @@ -1079,7 +1137,9 @@ namespace ts { getRelationCacheSizes: () => getDiagnosticsProducingTypeChecker().getRelationCacheSizes(), getFileProcessingDiagnostics: () => fileProcessingDiagnostics, getResolvedTypeReferenceDirectives: () => resolvedTypeReferenceDirectives, + getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames!, isSourceFileFromExternalLibrary, + isSourceFileFromExternalLibraryPath, isSourceFileDefaultLibrary, dropDiagnosticsProducingTypeChecker, getSourceFileFromReference, @@ -1088,7 +1148,6 @@ namespace ts { redirectTargetsMap, isEmittedFile, getConfigFileParsingDiagnostics, - getResolvedModuleWithFailedLookupLocationsFromCache, getProjectReferences, getResolvedProjectReferences, getProjectReferenceRedirect, @@ -1103,6 +1162,8 @@ namespace ts { realpath: host.realpath?.bind(host), useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), getFileIncludeReasons: () => fileReasons, + isSourceFileFromProjectReference, + useSourceOfProjectReferenceRedirect, structureIsReused, }; @@ -1128,7 +1189,11 @@ namespace ts { return program; - function resolveModuleNamesWorker(moduleNames: string[], containingFile: SourceFile, reusedNames: string[] | undefined): readonly ResolvedModuleFull[] { + 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); const redirectedReference = getRedirectReferenceForResolution(containingFile); @@ -1141,7 +1206,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; @@ -1200,10 +1265,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); } @@ -1236,15 +1297,15 @@ 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. 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, @@ -1253,7 +1314,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); @@ -1276,26 +1337,27 @@ 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) { + // 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)) { 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; @@ -1344,7 +1406,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 { @@ -1354,13 +1416,13 @@ 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. function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName: string): boolean { - const resolutionToFile = getResolvedModule(oldSourceFile, moduleName); - const resolvedFile = resolutionToFile && oldProgram!.getSourceFile(resolutionToFile.resolvedFileName); + const resolutionToFile = oldSourceFile?.resolvedModules?.get(moduleName)?.resolvedModule; + 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. @@ -1370,7 +1432,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; @@ -1393,8 +1455,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 @@ -1416,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)) { @@ -1437,7 +1508,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, @@ -1450,9 +1521,11 @@ namespace ts { const oldSourceFiles = oldProgram.getSourceFiles(); const enum SeenPackageName { Exists, Modified } const seenPackageNames = new Map(); + let ambientModuleToUnmodifiedFile: ESMap | undefined; - for (const oldSourceFile of oldSourceFiles) { - let newSourceFile = host.getSourceFileByPath + for (let index = 0; index < oldSourceFiles.length; index++) { + const oldSourceFile = oldSourceFiles[index]; + 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 @@ -1466,22 +1539,25 @@ 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.version) { // 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; } else { - fileChanged = newSourceFile !== oldSourceFile; + fileChanged = newSourceFile.version !== oldSourceFile.version; } // Since the project references havent changed, its right to set originalFileName and resolvedPath here @@ -1490,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, @@ -1543,14 +1624,21 @@ 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); + } + 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 @@ -1561,16 +1649,12 @@ 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); + ambientModuleNameToUnmodifiedFileName = ambientModuleToUnmodifiedFile; // 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 @@ -1600,37 +1684,64 @@ namespace ts { return structureIsReused; } - if (changesAffectingProgramStructure(oldOptions, options) || host.hasChangedAutomaticTypeDirectiveNames?.()) { + if (changesAffectingProgramStructure(oldProgram.getCompilerOptions(), options)) { return StructureIsReused.SafeModules; } - missingFilePaths = oldProgram.getMissingFilePaths(); + 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 - Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length); - for (const newSourceFile of newSourceFiles) { - filesByName.set(newSourceFile.path, newSourceFile); + for (let index = 0; index < newSourceFiles.length; index++) { + const newSourceFile = newSourceFiles[index]; + 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 = !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; + filesByName.set(newRedirectSourceFile.path, newRedirectSourceFile); + } + else { + filesByName.set(newSourceFile.path, 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; + } } - 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; fileReasons = oldProgram.getFileIncludeReasons(); fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics(); resolvedTypeReferenceDirectives = oldProgram.getResolvedTypeReferenceDirectives(); + automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames() || emptyArray; sourceFileToPackageName = oldProgram.sourceFileToPackageName; redirectTargetsMap = oldProgram.redirectTargetsMap; @@ -1663,7 +1774,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); }, @@ -1676,7 +1787,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( @@ -1708,14 +1819,18 @@ 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); } ); } 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 { @@ -2254,14 +2369,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) { @@ -2492,7 +2607,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; }, @@ -2542,13 +2656,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; @@ -2557,34 +2671,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; @@ -2624,7 +2738,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; } @@ -2686,11 +2800,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); } } @@ -2737,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 { @@ -2795,7 +2916,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; } @@ -2812,26 +2934,27 @@ namespace ts { function processTypeReferenceDirective( typeReferenceDirective: string, - resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined, + 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); + 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(); } 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++; @@ -2842,17 +2965,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] ); } } @@ -2872,7 +2995,7 @@ namespace ts { } if (saveResolution) { - resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolvedTypeReferenceDirective); + resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolved); } } @@ -2914,14 +3037,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++; @@ -2936,7 +3059,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 @@ -2954,7 +3077,7 @@ namespace ts { /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, { kind: FileIncludeKind.Import, file: file.path, index, }, - resolution.packageId, + resolution.resolvedModule.packageId, ); } @@ -3085,6 +3208,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 @@ -3860,7 +3987,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); } @@ -3882,7 +4009,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/resolutionCache.ts b/src/compiler/resolutionCache.ts index bccb5af9b55fe..ef3210a7554d3 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; @@ -28,12 +27,13 @@ namespace ts { clear(): void; } - interface ResolutionWithFailedLookupLocations { + export interface ResolutionWithFailedLookupLocations { readonly failedLookupLocations: string[]; isInvalidated?: boolean; refCount?: number; // Files that have this resolution using files?: Path[]; + skipWatchingFailedLookup?: true; } interface ResolutionWithResolvedFileName { @@ -210,7 +210,6 @@ namespace ts { startCachingPerDirectoryResolution: clearPerDirectoryResolutions, finishCachingPerDirectoryResolution, resolveModuleNames, - getResolvedModuleWithFailedLookupLocationsFromCache, resolveTypeReferenceDirectives, removeResolutionsFromProjectReferenceRedirects, removeResolutionsOfFile, @@ -364,7 +363,8 @@ namespace ts { cache, perDirectoryCacheWithRedirects, loader, getResolutionWithResolvedFileName, shouldRetryResolution, reusedNames, logChanges - }: ResolveNamesWithLocalCacheInput): (R | undefined)[] { + }: ResolveNamesWithLocalCacheInput): T[] { + const compilerOptions = resolutionHost.getCompilationSettings(); const path = resolutionHost.toPath(containingFile); const resolutionsInFile = cache.get(path) || cache.set(path, new Map()).get(path)!; const dirPath = getDirectoryPath(path); @@ -374,12 +374,12 @@ namespace ts { perDirectoryResolution = new Map(); perDirectoryCache.set(dirPath, perDirectoryResolution); } - const resolvedModules: (R | undefined)[] = []; - const compilerOptions = resolutionHost.getCompilationSettings(); + const resolvedModules: T[] = []; const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path); // 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 : @@ -463,7 +463,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 +495,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 +508,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 +523,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"); } @@ -606,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); } @@ -683,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; @@ -693,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; @@ -785,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/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 9c329520c7600..d371e02fb5e1f 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*/ cleanPersistedProgram?: boolean; traceResolution?: boolean; /* @internal */ diagnostics?: boolean; @@ -133,8 +134,10 @@ namespace ts { export interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; + cleanPersistedProgram(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; + cleanPersistedProgramOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; // Currently used for testing but can be made public if needed: @@ -278,9 +281,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!; @@ -1304,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` }); @@ -1724,6 +1727,38 @@ namespace ts { return ExitStatus.Success; } + function cleanPersistedProgram(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 += cleanPersistedProgramOfTsBuildInfoAndReportError( + 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) { @@ -1898,8 +1933,10 @@ namespace ts { return { build: (project, cancellationToken, writeFile, getCustomTransformers) => build(state, project, cancellationToken, writeFile, getCustomTransformers), clean: project => clean(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), + 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 e375b0a77acac..e7609a5402deb 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)[]; @@ -3859,8 +3859,12 @@ namespace ts { } /*@internal*/ - export type FilePreprocessingDiagnostics = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic; + export type FilePreprocessingDiagnostic = 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 @@ -3931,9 +3935,11 @@ namespace ts { getInstantiationCount(): number; getRelationCacheSizes(): { assignable: number, identity: number, subtype: number, strictSubtype: number }; - /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostics[] | undefined; - /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; + /* @internal */ getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; + /* @internal */ getResolvedTypeReferenceDirectives(): ESMap; + /* @internal */ getAutomaticTypeDirectiveNames(): string[]; isSourceFileFromExternalLibrary(file: SourceFile): boolean; + /* @internal */ isSourceFileFromExternalLibraryPath(path: Path): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; // For testing purposes only. @@ -3950,10 +3956,10 @@ 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; - /* @internal */ getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; - getProjectReferences(): readonly ProjectReference[] | undefined; getResolvedProjectReferences(): readonly (ResolvedProjectReference | undefined)[] | undefined; /*@internal*/ getProjectReferenceRedirect(fileName: string): string | undefined; @@ -3973,6 +3979,81 @@ 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; + } + + /*@internal*/ + export type ModuleNameOfProgramFromBuildInfo = IdentifierOfProgramFromBuildInfo | StringLiteralLikeOfProgramFromBuildInfo; + + /*@internal*/ + export interface SourceFileOfProgramFromBuildInfo { + fileName: string; + 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; + + typeReferenceDirectives: readonly string[]; + libReferenceDirectives: readonly string[]; + referencedFiles: readonly string[]; + imports: readonly StringLiteralLikeOfProgramFromBuildInfo[]; + moduleAugmentations: readonly ModuleNameOfProgramFromBuildInfo[]; + ambientModuleNames: readonly string[]; + hasNoDefaultLib: boolean; + + resolvedModules?: ESMap; + resolvedTypeReferenceDirectiveNames?: ESMap; + redirectInfo?: RedirectInfoOfProgramFromBuildInfo; + } + + /*@internal*/ + export interface ProgramFromBuildInfo { + programFromBuildInfo: true; + + getCompilerOptions(): CompilerOptions; + getRootFileNames(): readonly string[]; + getSourceFiles(): readonly SourceFileOfProgramFromBuildInfo[]; + getSourceFileByPath(path: Path): SourceFileOfProgramFromBuildInfo | undefined; + getProjectReferences(): readonly ProjectReference[] | undefined; + getResolvedProjectReferences(): readonly (ResolvedProjectReferenceOfProgramFromBuildInfo | undefined)[] | undefined; + getMissingFilePaths(): readonly Path[]; + getFileIncludeReasons(): MultiMap; + getResolvedTypeReferenceDirectives(): ESMap; + getAutomaticTypeDirectiveNames(): string[] | undefined; + getFilesByNameMap(): ReadonlyESMap; + isSourceFileFromExternalLibraryPath(path: Path): boolean; + getFileProcessingDiagnostics(): FilePreprocessingDiagnostic[] | undefined; + isSourceFileFromProjectReference(file: SourceFileOfProgramFromBuildInfo): boolean; + + useSourceOfProjectReferenceRedirect: boolean; + redirectTargetsMap: MultiMap; + sourceFileToPackageName: ESMap; + } + /* @internal */ export type RedirectTargetsMap = ReadonlyESMap; @@ -4070,7 +4151,7 @@ namespace ts { getSourceFiles(): readonly SourceFile[]; getSourceFile(fileName: string): SourceFile | undefined; - getResolvedTypeReferenceDirectives(): ReadonlyESMap; + getResolvedTypeReferenceDirectives(): ReadonlyESMap; getProjectReferenceRedirect(fileName: string): string | undefined; isSourceOfProjectReferenceRedirect(fileName: string): boolean; @@ -6029,6 +6110,8 @@ namespace ts { composite?: boolean; incremental?: boolean; tsBuildInfoFile?: string; + persistResolutions?: string; + /*@internal*/ cleanPersistedProgram?: boolean; removeComments?: boolean; rootDir?: string; rootDirs?: string[]; @@ -6214,6 +6297,9 @@ namespace ts { configFileParsingDiagnostics?: readonly Diagnostic[]; } + /* @internal */ + export type CreateProgramOptionsWithProgramFromBuildInfo = Omit & { oldProgram: ProgramFromBuildInfo | Program | undefined; }; + /* @internal */ export interface CommandLineOptionBase { name: string; @@ -6547,11 +6633,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 71689f76c7013..c14d65d6f7cac 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( @@ -4200,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; @@ -6207,9 +6219,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/watch.ts b/src/compiler/watch.ts index 78dc141344741..221dd793a8bf4 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -392,6 +392,29 @@ namespace ts { return ExitStatus.Success; } + export interface CleanPersistedProgramOfTsBuildInfoAndReportErrorHost extends CleanPersistedProgramOfTsBuildInfoHost { + getCurrentDirectory(): string; + } + export function cleanPersistedProgramOfTsBuildInfoAndReportError( + options: CompilerOptions, + host: CleanPersistedProgramOfTsBuildInfoAndReportErrorHost, + reportDiagnostic: DiagnosticReporter, + write?: (s: string) => void, + reportSummary?: ReportEmitErrorSummary, + ): number { + const { emittedFiles, diagnostics } = cleanPersistedProgramOfTsBuildInfo(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 0296e285b4520..e1c0ededad11f 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -4,16 +4,47 @@ namespace ts { getCurrentDirectory(): string; readFile(fileName: string): string | undefined; } - export function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost) { - if (outFile(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 { + readFile(fileName: string): string | undefined; + writeFile: WriteFileCallback; + } + export function cleanPersistedProgramOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanPersistedProgramOfTsBuildInfoHost): EmitResult { + if (outFileWithoutPersistResolutions(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?.peristedProgram) return emitSkippedWithNoDiagnostics; + const { program: { peristedProgram, ...program } } = buildInfo; + buildInfo.program = program; + + // Actual writeFile with new program + const emitDiagnostics = createDiagnosticCollection(); + writeFile(host, emitDiagnostics, buildInfoPath, getBuildInfoText(buildInfo), /*writeByteOrderMark*/ false); + return { + emitSkipped: false, + diagnostics: emitDiagnostics.getDiagnostics(), + emittedFiles: compilerOptions.listEmittedFiles ? [buildInfoPath] : undefined + }; } export function createIncrementalCompilerHost(options: CompilerOptions, system = sys): CompilerHost { @@ -101,9 +132,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 */ @@ -426,7 +457,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/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)) { diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index 1861e3e103247..3f0a647524738 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -307,6 +307,10 @@ namespace ts { reportDiagnostic, configParseResult.options ); + if (commandLineOptions.cleanPersistedProgram) { + configParseResult.errors.forEach(reportDiagnostic); + return cleanPersistedProgram(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.cleanPersistedProgram) { + return cleanPersistedProgram(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.cleanPersistedProgram) { + 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.cleanPersistedProgram()); + } + if (buildOptions.watch) { if (reportWatchModeWithoutSysSupport(sys, reportDiagnostic)) return; const buildHost = createSolutionBuilderWithWatchHost( @@ -513,6 +533,17 @@ namespace ts { undefined; } + function cleanPersistedProgram(sys: System, options: CompilerOptions, reportDiagnostic: DiagnosticReporter) { + const diagnostics = cleanPersistedProgramOfTsBuildInfoAndReportError( + 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, @@ -526,14 +557,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/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/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/project.ts b/src/server/project.ts index d3bb46302b82d..00ab6052e35e8 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 } @@ -466,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); } @@ -1741,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/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/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..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 }; } @@ -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/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 }); } } diff --git a/src/services/services.ts b/src/services/services.ts index afe43e32a79c2..5f728ce37b4e4 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 | undefined; public imports!: readonly StringLiteralLike[]; public moduleAugmentations!: StringLiteral[]; private namedDeclarations: ESMap | undefined; @@ -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 @@ -1312,7 +1321,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; } @@ -1357,14 +1366,13 @@ namespace ts { host.setCompilerHost?.(compilerHost); const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); - const options: CreateProgramOptions = { + program = createProgram({ rootNames: rootFileNames, options: newSettings, host: compilerHost, - oldProgram: program, + oldProgram: getOldProgram(newSettings, compilerHost), 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 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/tsconfig.json b/src/testRunner/tsconfig.json index 4a6858ef8c5c8..2c8f9c2d1d58a 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", @@ -196,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/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index 2face82e2d0aa..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", () => { @@ -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, diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 05800deaaac4f..da6997bfb06ac 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -238,6 +238,94 @@ 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]; + type ReadablePersistedProgramSourceFile = Omit & { + fileName: string; + originalFileName: string; + path: string; + resolvedPath: string; + resolvedModules?: readonly ReadablePersistedProgramResolutionEntry[]; + resolvedTypeReferenceDirectiveNames?: readonly ReadablePersistedProgramResolutionEntry[]; + redirectInfo?: { readonly redirectTarget: { readonly path: string }; }; + includeReasons: readonly ReadablePersistedProgramFileIncludeReason[]; + redirectTargets?: readonly 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: ReadableReferencedFileKind; + file: string; + index: number; + } + type ReadablePersistedProgramFileIncludeReason = Omit<( + RootFile | + LibFile | + ProjectReferenceFile | + ReadablePersistedProgramReferencedFile | + AutomaticTypeDirectiveFile + ), "kind"> & { kind: ReadableFileIncludeKind }; + const enum ReadableFilePreprocessingDiagnosticsKind { + FilePreprocessingReferencedDiagnostic = "FilePreprocessingReferencedDiagnostic", + FilePreprocessingFileExplainingDiagnostic = "FilePreprocessingFileExplainingDiagnostic" + } + type ReadablePersistedProgramFilePreprocessingReferencedDiagnostic = Omit & { + kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic; + reason: ReadablePersistedProgramReferencedFile; + }; + type ReadablePersistedProgramFilePreprocessingFileExplainingDiagnostic = Omit & { + kind: ReadableFilePreprocessingDiagnosticsKind.FilePreprocessingFileExplainingDiagnostic; + file?: string; + fileProcessingReason: ReadablePersistedProgramFileIncludeReason; + }; + 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 (ReadablePersistedProgramResolvedProjectReference | undefined)[] | undefined; + resolvedTypeReferenceDirectives: readonly ReadablePersistedProgramResolutionEntry[] | undefined; + fileProcessingDiagnostics: readonly ReadablePersistedProgramFilePreprocessingDiagnostic[] | undefined; + resolutions: readonly ReadablePersistedProgramResolution[] | undefined; + } interface ReadableProgramBuildInfo { fileNames: readonly string[]; fileNamesList: readonly (readonly string[])[] | undefined; @@ -247,12 +335,24 @@ interface Symbol { exportedModulesMap?: MapLike; semanticDiagnosticsPerFile?: readonly ReadableProgramBuildInfoDiagnostic[]; affectedFilesPendingEmit?: readonly ReadableProgramBuilderInfoFilePendingEmit[]; + 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 resolutions = buildInfo.program?.peristedProgram?.resolutions?.map(toReadablePersistedProgramResolution); const program: ReadableProgramBuildInfo | undefined = buildInfo.program && { fileNames: buildInfo.program.fileNames, fileNamesList, @@ -271,6 +371,17 @@ interface Symbol { emitKind === BuilderFileEmit.Full ? "Full" : Debug.assertNever(emitKind) ]), + 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), + 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; const result: ReadableBuildInfo = { @@ -282,7 +393,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]; } @@ -298,6 +409,100 @@ interface Symbol { } return result; } + + 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) } }, + resolvedModules: file.resolvedModules?.map(toReadablePersistedProgramResolutionEntry), + resolvedTypeReferenceDirectiveNames: file.resolvedTypeReferenceDirectiveNames?.map(toReadablePersistedProgramResolutionEntry), + redirectTargets: file.redirectTargets?.map(toFileName), + includeReasons: file.includeReasons.map(toReadablePersistedProgramFileIncludeReason), + }; + } + + 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, kind: toReadableFileIncludeKind(reason.kind) as ReadableReferencedFileKind, file: toFileName(reason.file) }; + } + + function toReadablePersistedProgramFileIncludeReason(reason: PersistedProgramFileIncludeReason): ReadablePersistedProgramFileIncludeReason { + return isReferencedFile(reason) ? toReadablePersistedProgramReferencedFile(reason) : { ...reason, kind: toReadableFileIncludeKind(reason.kind) }; + } + + 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: { + 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) }; + } + + 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/src/testRunner/unittests/tsbuild/persistResolutions.ts b/src/testRunner/unittests/tsbuild/persistResolutions.ts new file mode 100644 index 0000000000000..1d0df96a2b0ed --- /dev/null +++ b/src/testRunner/unittests/tsbuild/persistResolutions.ts @@ -0,0 +1,229 @@ +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` + 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/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`, + fs: getFs, + commandLineArgs: ["--b", "src/project"], + incrementalScenarios: [ + noChangeRun, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, + noChangeRun, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, + noChangeRun, + 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, + }); + + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program with outFile`, + fs: () => getFs("outFile.js"), + commandLineArgs: ["--b", "src/project"], + incrementalScenarios: [ + noChangeRun, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, + noChangeRun, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithBuild, + cleanResolutionsAgainWithBuild, + noChangeRun, + 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, + }); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index d666370d156f6..aa205353e26a9 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -510,6 +510,41 @@ 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 => { + 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, + { + subScenario: "Clean resolutions", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: noop, + commandLineArgs: ["--b", "/src/tests", "--cleanPersistedProgram"], + }, + { + 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..c8af2728614e8 --- /dev/null +++ b/src/testRunner/unittests/tsbuildWatch/persistResolutions.ts @@ -0,0 +1,332 @@ +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() { } + `, + }; + 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 }; + } + + 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; + } + + 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", + subScenario: "saves resolution and uses it for new program", + sys: getSys, + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--b"), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--b"), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, + ] + }); + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program with outFile", + sys: () => getSys("outFile.js"), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--b", "outFile.js"), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--b", "outFile.js"), + commandLineArgs: ["--b", ".", "-w", "--extendedDiagnostics"], + changes: [ + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithBuild, + deleteExistingTypeWithBuild, + ] + }); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsc/persistResolutions.ts b/src/testRunner/unittests/tsc/persistResolutions.ts new file mode 100644 index 0000000000000..8d05e5370df8a --- /dev/null +++ b/src/testRunner/unittests/tsc/persistResolutions.ts @@ -0,0 +1,85 @@ +namespace ts.PersistentResolutionsTests { + describe("unittests:: tsc:: persistResolutions::", () => { + const cleanResolutionsWithProject = cleanResolutions("--p"); + const cleanResolutionsAgainWithProject = cleanResolutionsAgain("--p"); + const installNewTypeWithProject = installNewType("Install another type"); + const deleteExistingTypeWithProject = deleteExistingType("Delete existing type"); + + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program`, + fs: getFs, + commandLineArgs: ["--p", "src/project"], + incrementalScenarios: [ + noChangeRun, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, + noChangeRun, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, + noChangeRun, + 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], + ]) + }, + deleteTsBuildInfo, + installNewTypeWithProject, + deleteExistingTypeWithProject, + ], + baselinePrograms: true, + }); + + verifyTscSerializedIncrementalEdits({ + scenario: "persistResolutions", + subScenario: `saves resolution and uses it for new program with outFile`, + fs: () => getFs("outFile.js"), + commandLineArgs: ["--p", "src/project"], + incrementalScenarios: [ + noChangeRun, + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, + noChangeRun, + modifyGlobalMain, + modifyMain, + addNewFile, + writeFileNotResolved, + cleanResolutionsWithProject, + cleanResolutionsAgainWithProject, + noChangeRun, + 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, + installNewTypeWithProject, + deleteExistingTypeWithProject, + ], + baselinePrograms: true, + }); + }); +} \ 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..30c261983c966 --- /dev/null +++ b/src/testRunner/unittests/tscWatch/persistResolutions.ts @@ -0,0 +1,133 @@ +namespace ts.tscWatch.PersistentResolutionsTests { + describe("unittests:: tsc-watch:: persistResolutions", () => { + const installNewTypeWithProject = installNewType("Install another type picked up by program"); + const deleteExistingTypeWithProject = deleteExistingType("Delete existing type picked up by program"); + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program", + sys: getSys, + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--p"), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--p"), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, + ] + }); + + verifyTscWatch({ + scenario: "persistResolutions", + subScenario: "saves resolution and uses it for new program with outFile", + sys: () => getSys("outFile.js"), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--p", "outFile.js"), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + 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("--p", "outFile.js"), + commandLineArgs: ["--p", ".", "-w", "--extendedDiagnostics"], + changes: [ + modifyGlobalMain, + addNewGlobalFile, + writeFileNotResolvedByReferencedPath, + modifyMain, + addNewFile, + writeFileNotResolved, + deleteFileNotResolved, + writeFileNotResolved, + writeExternalModuleNotResolved, + writeExternalModuleTakingPreference, + deleteExternalModuleTakingPreference, + installNewTypeWithProject, + deleteExistingTypeWithProject, + ] + }); + }); +} \ No newline at end of file diff --git a/src/testRunner/unittests/tsserver/helpers.ts b/src/testRunner/unittests/tsserver/helpers.ts index 0b2450ef4c18c..390980f65bf4a 100644 --- a/src/testRunner/unittests/tsserver/helpers.ts +++ b/src/testRunner/unittests/tsserver/helpers.ts @@ -112,22 +112,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..d8e6cde748a55 --- /dev/null +++ b/src/testRunner/unittests/tsserver/persistResolutions.ts @@ -0,0 +1,391 @@ +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: true, + 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(); + const host = createServerHost( + [main, anotherFileReusingResolution, filePresent, fileWithRef, types, globalMain, globalAnotherFileWithSameReferenes, globalFilePresent, externalThing, someType, config, libFile], + { currentDirectory: tscWatch.projectRoot, useCaseSensitiveFileNames: true } + ); + return { host, main, globalMain, config, openFiles: [main, globalMain] }; + } + + function modifyGlobalMain(session: TestSession, project: server.ConfiguredProject, globalMain: File) { + 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); + } + + 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({ + 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); + } + + 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, + arguments: { + file: main.path, + line: 4, + offset: 1, + endLine: 4, + endOffset: 1, + insertString: `something(); +` + } + }); + 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({ + 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); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + it("uses saved resolution for program", () => { + const result = setupHostWithSavedResolutions(setupHost); + const { project, session } = setup(result); + const { host, main, globalMain } = result; + 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", "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); + + 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 not present", 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); + const { host, main, globalMain } = result; + 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); + }); + }); + + 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: true, 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: true, 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: true, 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/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/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 376ebc377765f..73a36545c5cb6 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[]; @@ -3130,11 +3131,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; @@ -5090,6 +5091,11 @@ declare namespace ts { readFile(fileName: string): string | undefined; } function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined; + interface CleanPersistedProgramOfTsBuildInfoHost { + readFile(fileName: string): string | undefined; + writeFile: WriteFileCallback; + } + function cleanPersistedProgramOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanPersistedProgramOfTsBuildInfoHost): EmitResult; function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost; interface IncrementalProgramOptions { rootNames: readonly string[]; @@ -5150,9 +5156,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 */ @@ -5256,8 +5262,10 @@ declare namespace ts { interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; + cleanPersistedProgram(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; + cleanPersistedProgramOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; } /** @@ -5534,9 +5542,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. @@ -9475,10 +9482,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; @@ -9493,7 +9496,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; @@ -9641,9 +9644,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; @@ -9954,12 +9956,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 diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index ea5e5d3eeefd4..401990f3d5310 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[]; @@ -3130,11 +3131,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; @@ -5090,6 +5091,11 @@ declare namespace ts { readFile(fileName: string): string | undefined; } function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined; + interface CleanPersistedProgramOfTsBuildInfoHost { + readFile(fileName: string): string | undefined; + writeFile: WriteFileCallback; + } + function cleanPersistedProgramOfTsBuildInfo(compilerOptions: CompilerOptions, host: CleanPersistedProgramOfTsBuildInfoHost): EmitResult; function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost; interface IncrementalProgramOptions { rootNames: readonly string[]; @@ -5150,9 +5156,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 */ @@ -5256,8 +5262,10 @@ declare namespace ts { interface SolutionBuilder { build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; clean(project?: string): ExitStatus; + cleanPersistedProgram(project?: string): ExitStatus; buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus; cleanReferences(project?: string): ExitStatus; + cleanPersistedProgramOfReferences(project?: string): ExitStatus; getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject | undefined; } /** @@ -5534,9 +5542,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. 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/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/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/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json b/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json index 6c8947c8c54ef..02ddab1e59703 100644 --- a/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json index 2a97b4825f72a..5c3f0892c5c65 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json index 784955168214f..6182246573706 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json index 2b4bc05d635e2..aba6ff12804f3 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json index ead54b73278ae..15018b4fd98d3 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json index 8e8363326d7f7..970ab5fd729ef 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json index 6c8947c8c54ef..02ddab1e59703 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json index c9f0dec383b14..51f97ab6925f1 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json index 112a8d7067aa9..f4771080714dc 100644 --- a/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json +++ b/tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json @@ -35,6 +35,7 @@ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ 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..2417b1cd4fcef --- /dev/null +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,12504 @@ +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/node_modules/@types/someType/index.d.ts] +export function someType(): number; + +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +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; } + +//// [/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"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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"]} + + + +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/src/project/src/globalFilePresent.ts +/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","./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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9458 +} + + + +Change:: no-change-run +Input:: + + +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/src/project/src/globalFilePresent.ts +/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:: + + + + +Change:: Modify globalMain file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/src/project/src/globalFilePresent.ts +/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","./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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9492 +} + + + +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 --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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/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/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","./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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10005 +} + + + +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 '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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 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/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/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","./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] +{ + "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" + ], + "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" + ] + ], + "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": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10049 +} + + + +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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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"} + + + +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 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/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 +/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/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","./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 + + +Change:: Modify globalMain 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/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 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/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 +/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/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","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10085 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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. ======== +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +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/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 +/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/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","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10109 +} + + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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 './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. +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +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 +/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","./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] +{ + "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" + ], + "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": "6810735860-import { foo } from \"./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", + "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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 10619 +} + + + +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 +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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.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]],"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] +{ + "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" + ], + "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": { + "../../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/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": "6810735860-import { foo } from \"./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", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "traceResolution": 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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10903 +} + + + +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/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"} + + + +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 '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. +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. ======== +======== 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.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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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.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]],"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 + + +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. +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. ======== +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,"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 +/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","./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] +{ + "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" + ], + "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": { + "../../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/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/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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10927 +} + + + +Change:: Delete file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] unlink + + +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' 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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 +/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","./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] +{ + "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" + ], + "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();" + }, + "./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/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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10608 +} + + + +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 +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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,"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 +/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.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]],"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] +{ + "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" + ], + "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": { + "../../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/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/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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10927 +} + + + +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'. ======== +======== 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(); +}); + + +//// [/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]],"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] +====================================================================== +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" { } + +====================================================================== + +//// [/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10398 +} + + + +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]],"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] +====================================================================== +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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10707 +} + + + +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: 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"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: 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] +====================================================================== +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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10346 +} + + + +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 new file mode 100644 index 0000000000000..5228a3713dea4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,12793 @@ +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/node_modules/@types/someType/index.d.ts] +export function someType(): number; + +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +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; } + +//// [/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"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/src/project/src/types.ts] +interface SomeType {} + +//// [/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/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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/src/project/src/globalFilePresent.ts +/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 +/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/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","./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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; };", + "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/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": "-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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "exportedModulesMap": { + "./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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10328 +} + + + +Change:: no-change-run +Input:: + + +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/src/project/src/globalFilePresent.ts +/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:: + + + + +Change:: Modify globalMain file +Input:: +//// [/src/project/src/globalMain.ts] +/// +/// +function globalMain() { } +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/src/project/src/globalFilePresent.ts +/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 +/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/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","./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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; };", + "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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11003 +} + + + +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 --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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 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/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 +/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/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/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/globalAnotherFileWithSameReferenes.ts +/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","./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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; };", + "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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": "../../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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11621 +} + + + +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 '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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 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/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/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/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/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","./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] +{ + "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" + ], + "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" + ] + ], + "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": "-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": "-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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11841 +} + + + +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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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"} + + + +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 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/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 +/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/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","./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 + + +Change:: Modify globalMain 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/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 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/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 +/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/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","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11877 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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. ======== +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +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/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 +/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/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","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11901 +} + + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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 './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. +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +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 +/src/project/node_modules/@types/someType/index.d.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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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": "6810735860-import { foo } from \"./newFile\";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": { + "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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 12472 +} + + + +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 +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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/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/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] +{ + "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" + ], + "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": { + "../../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/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": "6810735860-import { foo } from \"./newFile\";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": { + "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/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": {}, + "semanticDiagnosticsPerFile": [ + "../../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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12344 +} + + + +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/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"} + + + +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 '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. +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. ======== +======== 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.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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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/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]],"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 + + +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. +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. ======== +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 +/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","./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] +{ + "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" + ], + "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": { + "../../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/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/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": {}, + "semanticDiagnosticsPerFile": [ + "../../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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12368 +} + + + +Change:: Delete file that could not be resolved +Input:: +//// [/src/project/src/fileNotFound.ts] unlink + + +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' 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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 +/src/project/node_modules/@types/someType/index.d.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","./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] +{ + "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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12468 +} + + + +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 +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: 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 +/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/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/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] +{ + "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" + ], + "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": { + "../../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/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/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": {}, + "semanticDiagnosticsPerFile": [ + "../../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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12368 +} + + + +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'. ======== +======== 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/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] +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]],"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] +{ + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10763 +} + + + +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]],"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] +{ + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 9487 +} + + + +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/sample1/initial-build/persistResolutions.js b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js new file mode 100644 index 0000000000000..4968fe3cfa355 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/persistResolutions.js @@ -0,0 +1,2664 @@ +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, + "declaration": true, + "declarationMap": 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, + "persistResolutions": 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, + "persistResolutions": 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,"declaration":true,"declarationMap":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,"persistResolutions":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,"persistResolutions":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"; +//# 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"; +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; +//# 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"; +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","./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] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts", + "./anotherModule.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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./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": "LibFile" + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "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": "RootFile", + "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": "RootFile", + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } + }, + "version": "FakeTSVersion", + "size": 2509 +} + +//// [/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","../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] +{ + "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" + ], + "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": "-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": "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", + "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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": 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" + ], + "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": "../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": "Import", + "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": "Import", + "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", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "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": 3804 +} + +//// [/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","../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] +{ + "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" + ], + "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": "-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": "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", + "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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": 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" + ], + "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": "../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": "Import", + "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": "Import", + "file": "../logic/index.ts", + "index": 0 + }, + { + "kind": "Import", + "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", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "Import", + "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", + { + "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", + "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": 5301 +} + + + +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,"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 +/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,"persistResolutions":true,"configFilePath":"/src/logic/tsconfig.json"} +Program structureReused: Completely +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,"persistResolutions":true,"configFilePath":"/src/tests/tsconfig.json"} +Program structureReused: Completely +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 { +} +//# 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"; +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","./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] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts", + "./anotherModule.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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./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": "LibFile" + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "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": "RootFile", + "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": "RootFile", + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } + }, + "version": "FakeTSVersion", + "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",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] +{ + "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" + ], + "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": "-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": "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", + "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 + }, + "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" + ], + "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": "../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": "Import", + "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": "Import", + "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", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "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": 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",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] +{ + "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" + ], + "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": "-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": "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", + "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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": 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" + ], + "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": "../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": "Import", + "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": "Import", + "file": "../logic/index.ts", + "index": 0 + }, + { + "kind": "Import", + "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", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "Import", + "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", + { + "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", + "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": 5505 +} + + + +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,"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 +/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.d.ts.map] 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","./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] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts", + "./anotherModule.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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./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": "LibFile" + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "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": "RootFile", + "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": "RootFile", + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } + }, + "version": "FakeTSVersion", + "size": 2867 +} + + + +Change:: Clean resolutions +Input:: + + +Output:: +/lib/tsc --b /src/tests --cleanPersistedProgram +exitCode:: ExitStatus.Success + + +//// [/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]},"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","../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","../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"} + + + +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,"declaration":true,"declarationMap":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,"persistResolutions":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,"persistResolutions":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 { +} +//# 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"; +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","./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] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts", + "./anotherModule.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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "declarationMap": true, + "persistResolutions": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./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": "LibFile" + } + ] + }, + { + "fileName": "./anotherModule.ts", + "originalFileName": "./anotherModule.ts", + "path": "./anothermodule.ts", + "resolvedPath": "./anothermodule.ts", + "version": "-2676574883-export const World = \"hello\";\r\n", + "flags": 0, + "includeReasons": [ + { + "kind": "RootFile", + "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": "RootFile", + "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": "RootFile", + "index": 2 + } + ] + } + ], + "rootFileNames": [ + "./anotherModule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + } + }, + "version": "FakeTSVersion", + "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",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] +{ + "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" + ], + "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": "-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": "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", + "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 + }, + "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" + ], + "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": "../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": "Import", + "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": "Import", + "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", + { + "resolvedModule": { + "resolvedFileName": "../core/index.ts", + "extension": ".ts" + } + } + ], + [ + "../core/anotherModule", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "RootFile", + "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": 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",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] +{ + "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" + ], + "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": "-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": "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", + "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, + "configFilePath": "./tsconfig.json", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "persistResolutions": 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" + ], + "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": "../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": "Import", + "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": "Import", + "file": "../logic/index.ts", + "index": 0 + }, + { + "kind": "Import", + "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", + { + "resolvedModule": { + "resolvedFileName": "../core/anotherModule.ts", + "extension": ".ts" + } + } + ] + ], + "includeReasons": [ + { + "kind": "Import", + "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", + { + "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", + "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": 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 new file mode 100644 index 0000000000000..f911203ca598e --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -0,0 +1,10793 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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.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":[]},"version":"FakeTSVersion"} + + +/a/lib/tsc.js --b . -w --extendedDiagnostics +Output:: +[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'. +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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. + +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 +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/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10236 +} + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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: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? + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10270 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:22 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10783 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:32 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/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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10785 +} + + +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"; +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: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'. +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. +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 '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. +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. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:42 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/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 +/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 +/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10809 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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'. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:54 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 +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11319 +} + + +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: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'. +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 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/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 +/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} + +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/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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11603 +} + + +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: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:13 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 +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11284 +} + + +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:02:16 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 './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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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} + +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/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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11603 +} + + +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]],"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] +{ + "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", + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10226 +} + +//// [/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 + +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: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 +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/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'. +======== 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/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/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/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.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] +{"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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10535 +} + +//// [/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 new file mode 100644 index 0000000000000..c21a300c753fd --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -0,0 +1,11026 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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/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: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'. +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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. + +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 +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/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 +/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 +/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "exportedModulesMap": { + "./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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11106 +} + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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: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? + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11759 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:22 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12374 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:32 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/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/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12547 +} + + +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"; +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: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'. +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. +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 '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. +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. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:42 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12571 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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'. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:54 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,"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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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:: + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 13140 +} + + +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: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'. +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 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/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 +/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/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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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/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": {}, + "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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13010 +} + + +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: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:13 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,"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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13112 +} + + +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:02:16 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 './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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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/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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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/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": {}, + "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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13010 +} + + +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]],"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] +{ + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10555 +} + +//// [/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 + +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: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 +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/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'. +======== 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: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/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/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 + +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/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"}} + +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 new file mode 100644 index 0000000000000..d8225efe36b89 --- /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,9972 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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.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]],"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 +Output:: +[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? + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 +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/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 +/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 +/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} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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... + +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:59 AM] Found 6 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/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10270 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:13 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10783 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:23 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/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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10785 +} + + +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"; +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: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'. +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. +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 '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. +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. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:33 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/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 +/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 +/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10809 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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'. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:45 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 +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11319 +} + + +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: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'. +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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.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 +/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} + +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/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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11603 +} + + +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: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:04 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 +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11284 +} + + +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:02: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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} + +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/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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11603 +} + + +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]],"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] +{ + "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", + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10226 +} + +//// [/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 + +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: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 +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/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'. +======== 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/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/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/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.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] +{"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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10535 +} + +//// [/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 new file mode 100644 index 0000000000000..4d8d29894e451 --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -0,0 +1,10080 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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/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 +Output:: +[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? + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 +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/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 +/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 +/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/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} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/myproject/src: + {"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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... + +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:59 AM] Found 6 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11759 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:13 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12374 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:23 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/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/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12547 +} + + +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"; +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: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'. +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. +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 '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. +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. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:33 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12571 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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'. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:45 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,"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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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:: + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 13140 +} + + +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: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'. +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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.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 +/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/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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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/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": {}, + "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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13010 +} + + +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: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:04 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,"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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13112 +} + + +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:02: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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/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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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/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": {}, + "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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13010 +} + + +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]],"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] +{ + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10555 +} + +//// [/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 + +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: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 +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/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'. +======== 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: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/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/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 + +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/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"}} + +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 new file mode 100644 index 0000000000000..1ff6cc232ceed --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,10790 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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: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'. +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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: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 +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 +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/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10236 +} + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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: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? + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:02 AM] Found 6 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/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10270 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:16 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10783 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:26 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/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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10785 +} + + +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"; +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: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'. +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. +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 '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. +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. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:36 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/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 +/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 +/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10809 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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'. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:48 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 +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11319 +} + + +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: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'. +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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:58 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/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 +/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} + +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/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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11603 +} + + +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: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:07 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 +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11284 +} + + +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:02:10 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 './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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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} + +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/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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11603 +} + + +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]],"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] +{ + "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", + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10226 +} + +//// [/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 + +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: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 +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/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'. +======== 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/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/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/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.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] +{"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] +{ + "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" + ], + "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, + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10535 +} + +//// [/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 new file mode 100644 index 0000000000000..6c3b459fb4978 --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,11034 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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: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'. +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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: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 +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 +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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "exportedModulesMap": { + "./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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11106 +} + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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: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? + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:02 AM] Found 6 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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": { + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.ts", + "Full" + ], + [ + "./src/filepresent.ts", + "Full" + ], + [ + "./src/filewithref.ts", + "Full" + ], + [ + "./src/globalanotherfilewithsamereferenes.ts", + "Full" + ], + [ + "./src/globalfilepresent.ts", + "Full" + ], + [ + "./src/globalmain.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11759 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:16 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12374 +} + + +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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:26 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/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/main.ts +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12547 +} + + +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"; +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: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'. +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. +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 '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. +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. ======== +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:36 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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} + +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/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/types.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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": 2 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../externalThingNotPresent.js", + "../../../../externalThingNotPresent.jsx" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12571 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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: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'. +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. +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 '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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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'. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:48 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,"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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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:: + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./src/anotherfilereusingresolution.ts", + "Full" + ], + [ + "./src/externalthing.d.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 13140 +} + + +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: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'. +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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:58 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/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 +/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/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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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/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": {}, + "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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13010 +} + + +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: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'. +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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:07 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,"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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13112 +} + + +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:02:10 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 './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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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/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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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/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": {}, + "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.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" + ], + "affectedFilesPendingEmit": [ + [ + "./node_modules/@types/sometype/index.d.ts", + "Full" + ], + [ + "./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": 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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13010 +} + + +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]],"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] +{ + "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 + } + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10555 +} + +//// [/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 + +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: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 +Reusing resolution of module './filePresent' from '/user/username/projects/myproject/src/anotherFileReusingResolution.ts' of old program, it was successfully resolved to '/user/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'. +======== 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: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/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/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 + +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/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"}} + +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 new file mode 100644 index 0000000000000..0007300880eac --- /dev/null +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,15783 @@ +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/node_modules/@types/someType/index.d.ts] +export function someType(): number; + +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +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; } + +//// [/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"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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"]} + + + +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/src/project/src/globalFilePresent.ts +/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.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 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 globalMain() { } +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":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] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-882) +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() { } +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": 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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9929 +} + + + +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/src/project/src/globalFilePresent.ts +/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.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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/src/project/src/globalFilePresent.ts +/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.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/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] +====================================================================== +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/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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 9963 +} + + + +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 '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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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/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/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] +====================================================================== +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/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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10501 +} + + + +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 '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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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:: /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/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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": "-7686833800-/// \n/// \n/// \nfunction globalMain() { }\nglobalSomething();globalFoo();", + "affectsGlobalScope": true + }, + "./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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../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": 10576 +} + + + +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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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"} + + + +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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] +{"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 + + +Change:: Modify globalMain 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/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 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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] +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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +====================================================================== +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/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../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": 10612 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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. ======== +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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] +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", "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/anotherFileReusingResolution.ts","./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] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1127) +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", "src/filePresent"], function (require, exports, filePresent_1) { + "use strict"; + exports.__esModule = true; + filePresent_1.something(); +}); + +====================================================================== +====================================================================== +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": 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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../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 +} + + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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 './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. +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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(); +}); + + +//// [/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]],"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] +====================================================================== +File:: /src/project/outFile.js +---------------------------------------------------------------------- +text: (0-1346) +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(); +}); + +====================================================================== +====================================================================== +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": 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" + ], + "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": "6810735860-import { foo } from \"./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", + "module": 2, + "outFile": "./outFile.js", + "persistResolutions": true, + "project": "./", + "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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 11165 +} + + + +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 +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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:: /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/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./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" + ], + "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": { + "../../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/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": "6810735860-import { foo } from \"./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", + "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/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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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": 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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11473 +} + + + +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/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"} + + + +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' 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. +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. ======== +======== 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.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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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] +{"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 + + +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 --p 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. +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. ======== +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 +/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] +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] +{"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] +====================================================================== +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" { } + +====================================================================== + +//// [/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", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./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" + ], + "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": { + "../../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/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/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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11497 +} + + + +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 '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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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_OutputsGenerated +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 +/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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +====================================================================== +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/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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();" + }, + "./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/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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11154 +} + + + +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 +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: 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 +/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/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(); + 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":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] +====================================================================== +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" { } + +====================================================================== + +//// [/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", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.ts", + "./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" + ], + "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": { + "../../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/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/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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11497 +} + + + +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,"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 +/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(); +}); + + +//// [/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]],"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] +====================================================================== +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" { } + +====================================================================== + +//// [/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10488 +} + + + +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]],"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] +====================================================================== +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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10797 +} + + + +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]],"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] +====================================================================== +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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10436 +} + + + +Change:: Install another type +Input:: +//// [/src/project/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + + +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 '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. +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/someType/index.d.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/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] +{ + "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" + ], + "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;" + }, + "./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/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.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" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], + "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": { + "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/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "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 new file mode 100644 index 0000000000000..dab46c00a24d1 --- /dev/null +++ b/tests/baselines/reference/tsc/persistResolutions/initial-build/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,14858 @@ +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/node_modules/@types/someType/index.d.ts] +export function someType(): number; + +//// [/src/project/src/anotherFileReusingResolution.ts] +import { something } from "./filePresent"; +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; } + +//// [/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"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/src/project/src/types.ts] +interface SomeType {} + +//// [/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/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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/src/project/src/globalFilePresent.ts +/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 +/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/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] +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; + + +//// [/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/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 {}; + + +//// [/src/project/src/main.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; };", + "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/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": "-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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "exportedModulesMap": { + "./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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10327 +} + + + +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/src/project/src/globalFilePresent.ts +/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:: + + + + +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/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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/src/project/src/globalFilePresent.ts +/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 +/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/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 +//// [/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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; };", + "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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11002 +} + + + +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 '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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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 6 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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/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/globalAnotherFileWithSameReferenes.ts +/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 +//// [/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/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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; };", + "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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11613 +} + + + +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 '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. +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 '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. +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 './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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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/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/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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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": "-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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../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": 11826 +} + + + +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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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"} + + + +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 '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. +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. ======== +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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","./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 + + +Change:: Modify globalMain 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/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 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/node_modules/@types/someType/index.d.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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../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": 11862 +} + + + +Change:: Modify main file +Input:: +//// [/src/project/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +import { something2 } from "./fileNotFound"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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. ======== +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/node_modules/@types/someType/index.d.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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../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": 11886 +} + + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 '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. +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 '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. +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 './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. +======== 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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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(); +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + + +Found 4 errors. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +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 +/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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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": "6810735860-import { foo } from \"./newFile\";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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "module": 2, + "persistResolutions": true, + "project": "./", + "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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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" + ], + "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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 12450 +} + + + +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 +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. +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'. +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'. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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/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; + + +//// [/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/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] +{ + "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" + ], + "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": { + "../../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/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": "6810735860-import { foo } from \"./newFile\";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": { + "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/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": {}, + "semanticDiagnosticsPerFile": [ + "../../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.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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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": "6810735860-import { foo } from \"./newFile\";import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";something();", + "flags": 0, + "imports": [ + { + "kind": 10, + "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": 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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12315 +} + + + +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/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"} + + + +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' 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. +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. ======== +======== 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.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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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 +/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/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]],"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 + + +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 --p 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. +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. ======== +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 +/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/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","./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] +{ + "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" + ], + "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": { + "../../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/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/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": {}, + "semanticDiagnosticsPerFile": [ + "../../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.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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12339 +} + + + +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 '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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~ + +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_OutputsGenerated +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 +/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/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/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] +{ + "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" + ], + "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/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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 159, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean 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" + ], + "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/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/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": 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": "-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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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.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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12757 +} + + + +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 +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. +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'. +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. ======== +======== 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: 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 +/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/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] 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/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] +{ + "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" + ], + "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": { + "../../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/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/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": {}, + "semanticDiagnosticsPerFile": [ + "../../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.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": "../../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/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", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_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": 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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + } + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12339 +} + + + +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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10853 +} + + + +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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11201 +} + + + +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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 9577 +} + + + +Change:: Install another type +Input:: +//// [/src/project/node_modules/@types/someType2/index.d.ts] +export function someType2(): number; + + + +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 '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. +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/someType/index.d.ts +/src/project/node_modules/@types/someType2/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/src/project/node_modules/@types/someType2/index.d.ts + + +//// [/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","./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] +{ + "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" + ], + "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;" + }, + "./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/sometype/index.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/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.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" + ] + } + ], + [ + "someType2", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + ], + "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": { + "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/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "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 new file mode 100644 index 0000000000000..d0b91ea3e5bdd --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned-with-outFile.js @@ -0,0 +1,14657 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +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 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/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: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/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'. ======== +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 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. +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. ======== +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 +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 +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. +======== 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 +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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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: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 +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/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 +/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 +/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/globalfilenotfound.ts: + {"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/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]],"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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10707 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-859) +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() { } +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:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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 +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:13 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:23 AM] Found 6 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/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 +/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 +/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/globalfilenotfound.ts: + {"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/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; +}); + + +//// [/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]],"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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10741 +} + +//// [/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 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 +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: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/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. +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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:46 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/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/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:: +/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/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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11279 +} + +//// [/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 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 +[12:01: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.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. +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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[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/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 +/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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 11312 +} + +//// [/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"; +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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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"; +   ~~~~~~~~~~~~~~~~ + +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:24 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/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 +/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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 11336 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1078) +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(); +}); + +====================================================================== +====================================================================== +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:: 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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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:02: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/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 +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"; +   ~~~~~~~~~~~~~~~~ + +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:45 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","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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11865 +} + +//// [/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" { } + +====================================================================== + + +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:02: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/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'. +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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:04 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/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 +/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} + +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/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] +{"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12173 +} + +//// [/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 + +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 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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/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' 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 '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. +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? + +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:03:22 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","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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11865 +} + +//// [/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" { } + +====================================================================== + + +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: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/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'. +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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} + +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/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] +{"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12173 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10316 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10625 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10316 +} + +//// [/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]],"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] +{ + "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 + }, + "./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;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): 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 + }, + { + "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", + "./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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10932 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents + +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: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.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 './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'. +[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.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/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} +/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/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] +{ + "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" + ], + "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/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): 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/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", + "./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": { + "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/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "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 new file mode 100644 index 0000000000000..7690acf112ece --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-are-cleaned.js @@ -0,0 +1,14009 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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/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() { } + + +//// [/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"; + 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/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: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 +Synchronizing program +CreatingProgramWith:: + 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'. ======== +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 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. +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. ======== +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 +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 +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. +======== 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 +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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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: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 +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/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 +/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 +/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/globalfilenotfound.ts: + {"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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "exportedModulesMap": { + "./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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11105 +} + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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 +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:33 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:25 AM] Found 6 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/globalfilenotfound.ts: + {"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/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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11758 +} + + +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 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 +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: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/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. +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 +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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:31 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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:: +/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/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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12366 +} + +//// [/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 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 +[12:03: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/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. +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 +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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:39 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 12532 +} + +//// [/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"; +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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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"; +   ~~~~~~~~~~~~~~~~ + +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:55 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 12556 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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:05: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/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 +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 +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/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:05:17 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,"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 +/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/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/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} + +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/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]],"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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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" + ], + "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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 13118 +} + +//// [/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:05: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/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'. +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 +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 +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:43 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/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 +/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/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/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} + +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.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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.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": {}, + "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.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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12981 +} + +//// [/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 + +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 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: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/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'. ======== +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'. ======== +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. +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? + +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:06:04 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/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 +/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/fileNotFound.d.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} +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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": "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.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/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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12993 +} + + +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 +[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/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 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' 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/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/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/fileNotFound.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} + +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/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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13326 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10983 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11329 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10983 +} + + +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]],"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] +{ + "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 + }, + "./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;" + }, + "./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", + "./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 + }, + { + "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", + "./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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "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": 11569 +} + + +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: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.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'. +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'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[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.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/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} +/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/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] +{ + "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" + ], + "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/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", + "./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/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", + "./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": { + "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": 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 new file mode 100644 index 0000000000000..3507ecd4720ac --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file-with-outFile.js @@ -0,0 +1,14628 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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/anotherFileReusingResolution", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); +/// +function globalSomething() { return 10; } +/// +/// +function globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +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 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/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 +Output:: +[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/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 +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/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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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. + +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/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 +/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 +/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/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] 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]],"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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10707 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-859) +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() { } +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:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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 +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:10 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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. + + + +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 +/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 +/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/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 globalAnotherFileWithSameReferenes() { } +/// +/// +function globalMain() { } +globalSomething(); +define("src/main", ["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; +}); + + +//// [/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]],"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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10741 +} + +//// [/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: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/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. +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 +======== 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. +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. ======== +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. +======== 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 +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:43 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/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/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:: +/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/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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11279 +} + +//// [/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 +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: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/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. +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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:02:02 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/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 +/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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 11312 +} + +//// [/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"; +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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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"; +   ~~~~~~~~~~~~~~~~ + +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:21 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/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 +/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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 11336 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1078) +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(); +}); + +====================================================================== +====================================================================== +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:: 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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 +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 +[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/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 +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"; +   ~~~~~~~~~~~~~~~~ + +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:42 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","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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11865 +} + +//// [/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" { } + +====================================================================== + + +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 +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: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/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'. +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 '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'. +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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:01 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/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 +/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} + +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/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] +{"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12173 +} + +//// [/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 + +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 +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: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.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'. ======== +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 '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. +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? + +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:03:19 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","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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11865 +} + +//// [/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" { } + +====================================================================== + + +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 +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: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/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'. +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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} + +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/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] +{"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12173 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10316 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10625 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10316 +} + +//// [/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]],"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] +{ + "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 + }, + "./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;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): 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 + }, + { + "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", + "./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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10932 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents + +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: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.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 './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'. +[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.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/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/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/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] +{ + "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" + ], + "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/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): 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/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", + "./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": { + "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/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "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 new file mode 100644 index 0000000000000..c58df12817777 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/can-build-after-resolutions-have-been-saved-in-tsbuildinfo-file.js @@ -0,0 +1,13146 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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/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() { } + + +//// [/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"; + 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/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 +Output:: +[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 +Synchronizing program +CreatingProgramWith:: + 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 +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/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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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: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 + + +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 +/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 +/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} +/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/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 + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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 +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... + +Synchronizing program +CreatingProgramWith:: + 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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] 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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11758 +} + + +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: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/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. +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 +======== 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. +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. ======== +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. +======== 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 +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 +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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:22 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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:: +/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/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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12366 +} + +//// [/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 +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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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. +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 +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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:30 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 12532 +} + +//// [/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"; +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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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"; +   ~~~~~~~~~~~~~~~~ + +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:46 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 12556 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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 +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 +[12:04: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/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 +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 +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"; +   ~~~~~~~~~~~~~~~~ + +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:05:08 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,"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 +/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/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} +/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} + +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/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]],"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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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" + ], + "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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 13118 +} + +//// [/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 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: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/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'. +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 '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'. +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 +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 +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:34 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/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 +/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/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} +/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} + +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.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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.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": {}, + "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.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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12981 +} + +//// [/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 + +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 +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: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.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'. ======== +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'. ======== +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. +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? + +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: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.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 +/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/fileNotFound.d.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/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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": "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.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/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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12993 +} + + +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 +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: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/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 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' 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/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/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/fileNotFound.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} + +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/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]],"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 13326 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10983 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11329 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10983 +} + + +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]],"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] +{ + "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 + }, + "./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;" + }, + "./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", + "./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 + }, + { + "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", + "./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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "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": 11569 +} + + +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: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.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'. +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'. +error TS5055: Cannot write file '/user/username/projects/myproject/src/fileNotFound.d.ts' because it would overwrite input file. + +[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.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/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/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/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] +{ + "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" + ], + "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/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", + "./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/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", + "./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": { + "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": 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 new file mode 100644 index 0000000000000..eb0d7d32bb1d6 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program-with-outFile.js @@ -0,0 +1,14658 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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: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 +Synchronizing program +CreatingProgramWith:: + 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'. ======== +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 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. +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. ======== +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 +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 +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. +======== 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 +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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. + +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/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 +/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 +/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/globalfilenotfound.ts: + {"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/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() { } +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 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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10707 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-859) +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() { } +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:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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 +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:01 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:11 AM] Found 6 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/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 +/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 +/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/globalfilenotfound.ts: + {"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/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; +}); + + +//// [/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]],"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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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", + "./src/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10741 +} + +//// [/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 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 +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: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/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. +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"; +   ~~~~~~~~~~~~~~~~ + +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:34 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/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/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:: +/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/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/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] +{ + "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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "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/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/externalthing.d.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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11279 +} + +//// [/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 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 +[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/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. +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"; +   ~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:01:53 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/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 +/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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 11312 +} + +//// [/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"; +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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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"; +   ~~~~~~~~~~~~~~~~ + +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:12 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/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 +/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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "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" + ], + "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" + ] + ], + "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/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": { + "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/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" + ] + }, + "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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 11336 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] +====================================================================== +File:: /user/username/projects/myproject/outFile.js +---------------------------------------------------------------------- +text: (0-1078) +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(); +}); + +====================================================================== +====================================================================== +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:: 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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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:02: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/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 +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"; +   ~~~~~~~~~~~~~~~~ + +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:33 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","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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11865 +} + +//// [/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" { } + +====================================================================== + + +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:02: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.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'. +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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.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 +/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} + +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/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] +{"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12173 +} + +//// [/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 + +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 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: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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/projects/myproject/src/globalMain.ts","/user/username/projects/myproject/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' 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 '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. +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? + +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:03:10 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","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 +/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.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] +{ + "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" + ], + "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();" + }, + "./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/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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 11865 +} + +//// [/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" { } + +====================================================================== + + +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: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/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'. +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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +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: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/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 +/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} + +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/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] +{"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] +{ + "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" + ], + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12173 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10316 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10625 +} + +//// [/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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10316 +} + +//// [/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]],"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] +{ + "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 + }, + "./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;" + }, + "./node_modules/@types/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): 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 + }, + { + "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", + "./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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 10932 +} + +//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] file written with same contents + +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: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.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 './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'. +[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.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/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} +/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/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] +{ + "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" + ], + "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/sometype2/index.d.ts": { + "version": "5420646020-export function someType2(): 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/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", + "./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": { + "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/someType2/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType2/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "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 new file mode 100644 index 0000000000000..e765d8e24c727 --- /dev/null +++ b/tests/baselines/reference/tscWatch/persistResolutions/saves-resolution-and-uses-it-for-new-program.js @@ -0,0 +1,12892 @@ +Input:: +//// [/user/username/projects/myproject/src/main.ts] +import { something } from "./filePresent"; +import { something as something1 } from "./filePresent"; +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 { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent"; + +//// [/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/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/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"]} + +//// [/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: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 +Synchronizing program +CreatingProgramWith:: + 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'. ======== +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 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. +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. ======== +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 +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 +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. +======== 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 +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/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 +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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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: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 +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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/globalfilenotfound.ts: + {"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/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() { } + + +//// [/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"; + 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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "exportedModulesMap": { + "./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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.ts" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11105 +} + + +Change:: Modify globalMain file + +Input:: +//// [/user/username/projects/myproject/src/globalMain.ts] +/// +/// +function globalMain() { } +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 +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:27 AM] File change detected. Starting incremental compilation... + +Synchronizing program +CreatingProgramWith:: + 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:19 AM] Found 6 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/globalfilenotfound.ts: + {"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/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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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; }", + "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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/globalfilepresent.ts", + "./src/globalmain.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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 4 + } + ] + }, + { + "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": 6 + } + ] + }, + { + "fileName": "./src/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 11758 +} + + +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 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 +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: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/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. +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 +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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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 /// +   ~~~~~~~~~~~~~~~~~~~~~~~ + +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"; +   ~~~~~~~~~~~~~~~~ + +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:25 AM] Found 6 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/globalFilePresent.ts","/user/username/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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/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:: +/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/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/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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.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" + ], + "fileNamesList": [ + [ + "./src/filepresent.ts", + "./src/externalthing.d.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/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/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": "-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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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/globalnewfile.ts", + "./src/globalfilenotfound.ts" + ], + "./src/main.ts": [ + "./src/filepresent.ts", + "./src/externalthing.d.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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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/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 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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": 5 + }, + { + "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": 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": 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": "-25594406519-import { something } from \"./filePresent\";\nimport { something as something1 } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { externalThing2 } from \"externalThingNotPresent\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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 + }, + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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" + ] + }, + { + "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" + ] + }, + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 12366 +} + +//// [/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 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 +[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/filePresent.ts","/user/username/projects/myproject/src/fileWithRef.ts","/user/username/projects/myproject/src/globalAnotherFileWithSameReferenes.ts","/user/username/projects/myproject/src/globalFileNotFound.ts","/user/username/projects/myproject/src/globalFilePresent.ts","/user/username/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. +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 +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 +src/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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"; +   ~~~~~~~~~~~~~~~~~~~~~~~~~ + +[12:04:33 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.ts + +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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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\";", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 12532 +} + +//// [/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"; +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: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.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"; +   ~~~~~~~~~~~~~~~~ + +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:49 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/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 +/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 +/user/username/projects/myproject/node_modules/@types/someType/index.d.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/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} + +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/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/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./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" + ], + "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" + ] + ], + "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/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": { + "composite": true, + "configFilePath": "./tsconfig.json", + "extendedDiagnostics": true, + "module": 2, + "persistResolutions": true, + "project": "./", + "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" + ] + }, + "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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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": 127, + "length": 16, + "messageText": "Cannot find module './fileNotFound'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/main.ts", + "start": 224, + "length": 25, + "messageText": "Cannot find 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/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": 0 + }, + { + "kind": "Import", + "file": "./src/main.ts", + "index": 1 + } + ] + }, + { + "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": "-26029945158-import { something } from \"./filePresent\";\nimport { something2 } from \"./fileNotFound\";\nimport { externalThing1 } from \"externalThing\";\nimport { 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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 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": 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/main.ts", + "originalFileName": "./src/main.ts", + "path": "./src/main.ts", + "resolvedPath": "./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();", + "flags": 0, + "imports": [ + { + "kind": 10, + "text": "./filePresent" + }, + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ], + "resolvedTypeReferenceDirectives": [ + [ + "someType", + { + "resolvedTypeReferenceDirective": { + "primary": true, + "resolvedFileName": "./node_modules/@types/someType/index.d.ts", + "isExternalLibraryImport": true + }, + "failedLookupLocations": [ + "./node_modules/@types/someType/package.json" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.js", + "./src/externalThingNotPresent.jsx", + "./externalThingNotPresent.js", + "./externalThingNotPresent.jsx", + "../externalThingNotPresent.js", + "../externalThingNotPresent.jsx", + "../../externalThingNotPresent.js", + "../../externalThingNotPresent.jsx", + "../../../externalThingNotPresent.js", + "../../../externalThingNotPresent.jsx", + "../../../../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": 12556 +} + + +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"; +import { externalThing1 } from "externalThing"; +import { externalThing2 } from "externalThingNotPresent";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:04: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.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 +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 +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/anotherFileReusingResolution.ts:2:28 - error TS2792: Cannot find module './fileNotFound'. 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:05:11 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,"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 +/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/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/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} + +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/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]],"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] +{ + "program": { + "fileNames": [ + "../../../../a/lib/lib.d.ts", + "./src/filepresent.ts", + "./src/externalthing.d.ts", + "./src/anotherfilereusingresolution.ts", + "./src/types.ts", + "./src/filewithref.ts", + "./src/globalfilepresent.ts", + "./src/globalfilenotfound.ts", + "./src/globalanotherfilewithsamereferenes.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" + ], + "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" + }, + "./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/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", + "./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?", + "category": 1, + "code": 2792 + }, + { + "file": "./src/anotherfilereusingresolution.ts", + "start": 167, + "length": 25, + "messageText": "Cannot find 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" + ], + "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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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", + { + "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", + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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 + } + ] + }, + { + "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/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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "resolutions": [ + { + "resolvedModule": { + "resolvedFileName": "./src/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" + ] + }, + { + "failedLookupLocations": [ + "./src/externalThingNotPresent.ts", + "./src/externalThingNotPresent.tsx", + "./src/externalThingNotPresent.d.ts", + "./externalThingNotPresent.ts", + "./externalThingNotPresent.tsx", + "./externalThingNotPresent.d.ts", + "../externalThingNotPresent.ts", + "../externalThingNotPresent.tsx", + "../externalThingNotPresent.d.ts", + "../../externalThingNotPresent.ts", + "../../externalThingNotPresent.tsx", + "../../externalThingNotPresent.d.ts", + "../../../externalThingNotPresent.ts", + "../../../externalThingNotPresent.tsx", + "../../../externalThingNotPresent.d.ts", + "../../../../externalThingNotPresent.ts", + "../../../../externalThingNotPresent.tsx", + "../../../../externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/package.json", + "./src/node_modules/@types/externalThingNotPresent.d.ts", + "./src/node_modules/@types/externalThingNotPresent/index.d.ts", + "./node_modules/@types/externalThingNotPresent/package.json", + "./node_modules/@types/externalThingNotPresent.d.ts", + "./node_modules/@types/externalThingNotPresent/index.d.ts", + "../node_modules/@types/externalThingNotPresent/package.json", + "../node_modules/@types/externalThingNotPresent.d.ts", + "../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../node_modules/@types/externalThingNotPresent/package.json", + "../../node_modules/@types/externalThingNotPresent.d.ts", + "../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/package.json", + "../../../../node_modules/@types/externalThingNotPresent.d.ts", + "../../../../node_modules/@types/externalThingNotPresent/index.d.ts", + "./src/externalThingNotPresent.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": 13118 +} + +//// [/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: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/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'. +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 +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 +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:37 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/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 +/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/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/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} + +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.ts","./src/externalthing.d.ts","./src/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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.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": {}, + "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.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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12981 +} + +//// [/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 + +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 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: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.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'. ======== +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'. ======== +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. +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? + +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:58 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/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 +/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/fileNotFound.d.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} +/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} + +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/anotherfilereusingresolution.ts","./src/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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": "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.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/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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 12993 +} + + +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: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.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'. +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 +[12:06:24 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:: +/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} +/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/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","./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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10657 +} + +//// [/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: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/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'. +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. + +[12:06:36 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 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/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/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/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/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/types.ts","./src/filewithref.ts","./src/globalfilepresent.ts","./src/globalfilenotfound.ts","./src/globalanotherfilewithsamereferenes.ts","./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] +{ + "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" + ], + "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/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": "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/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.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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 11003 +} + +//// [/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: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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType" + ], + "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": 10657 +} + + +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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType", + "someType2" + ], + "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": 11246 +} + + +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]],"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] +{ + "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" + ] + } + ] + ], + "automaticTypeDirectiveNames": [ + "someType2" + ], + "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": 10665 +} + diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js index 469659de728ee..87c039154672a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js @@ -56,6 +56,7 @@ interface Array { length: number; [n: number]: T; } // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js index bc09ff4894de6..e21309d03318a 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js @@ -56,6 +56,7 @@ interface Array { length: number; [n: number]: T; } // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js index 7a5684c889a0f..31927ec2b89c3 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js @@ -56,6 +56,7 @@ interface Array { length: number; [n: number]: T; } // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js index e8a6ec3b5093f..f4a2a689b956c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js @@ -56,6 +56,7 @@ interface Array { length: number; [n: number]: T; } // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js index 601d1b230cada..c2784f7aa35f6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js @@ -56,6 +56,7 @@ interface Array { length: number; [n: number]: T; } // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js index 883622912912d..b54766531cc1c 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js +++ b/tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js @@ -56,6 +56,7 @@ interface Array { length: number; [n: number]: T; } // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "resolveJsonModule": true, /* Include modules imported with '.json' extension */ // "noResolve": true, /* Do not add triple-slash references or imported modules to the list of compiled files. */ + // "persistResolutions": true, /* Save module and type reference directive resolution information in '.tsbuildinfo' file. */ /* JavaScript Support */ // "allowJs": true, /* Allow javascript files to be compiled. */ 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..9cceafc08d1be --- /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,178 @@ +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": true, + "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": true, + "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": true, + "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'. ======== +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'. ======== +======== 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..f8675fa74f58e --- /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": true, + "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": true, + "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": true, + "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-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..473aac4fd4d28 --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/creates-new-resolutions-for-program-if-tsbuildinfo-is-not-present.js @@ -0,0 +1,2478 @@ +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/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, + "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/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 +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 +======== 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. +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 './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. +======== 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 +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 (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 + /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 + /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/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/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' + 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 (11) + +----------------------------------------------- +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 (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 +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/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/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":"-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"; + +{"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"} +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/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/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":"-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"; + +{"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 +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 '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. +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 (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 + /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 + /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/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/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' + 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) + +----------------------------------------------- +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/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/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":"-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"; + +{"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 +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 '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. +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 (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 + /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 + /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/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/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) + +----------------------------------------------- +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/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/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"; + +{"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"} +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 + +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/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"; + +{"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 +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 '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. +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 (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/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/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 (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/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: 7 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: + 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/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; + + +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 +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'. +======== 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 '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. +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 (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/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/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 (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/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: + 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/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; + + +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 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 './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: 10 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' + 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' + 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; + + +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 +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 './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: 11 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/src/externalThing.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' + 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' + 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 (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/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-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..9cceafc08d1be --- /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,178 @@ +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": true, + "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": true, + "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": true, + "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'. ======== +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'. ======== +======== 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..f8675fa74f58e --- /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": true, + "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": true, + "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": true, + "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.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..473aac4fd4d28 --- /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,2478 @@ +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/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, + "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/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 +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 +======== 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. +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 './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. +======== 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 +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 (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 + /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 + /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/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/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' + 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 (11) + +----------------------------------------------- +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 (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 +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/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/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":"-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"; + +{"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"} +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/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/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":"-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"; + +{"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 +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 '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. +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 (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 + /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 + /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/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/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' + 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) + +----------------------------------------------- +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/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/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":"-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"; + +{"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 +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 '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. +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 (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 + /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 + /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/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/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) + +----------------------------------------------- +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/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/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"; + +{"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"} +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 + +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/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"; + +{"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 +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 '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. +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 (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/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/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 (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/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: 7 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: + 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/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; + + +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 +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'. +======== 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 '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. +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 (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/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/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 (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/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: + 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/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; + + +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 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 './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: 10 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' + 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' + 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; + + +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 +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 './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: 11 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/src/externalThing.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' + 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' + 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 (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/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-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..b21a131486dbf --- /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,161 @@ +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": true, + "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": true, + "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": true, + "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 +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 +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:: SafeModules 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..32c54b49e1ed7 --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program-with-sample-project.js @@ -0,0 +1,173 @@ +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": true, + "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": true, + "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": true, + "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 +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 +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:: 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.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.js b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js new file mode 100644 index 0000000000000..d0a2f000356bb --- /dev/null +++ b/tests/baselines/reference/tsserver/persistResolutions/uses-saved-resolution-for-program.js @@ -0,0 +1,2466 @@ +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/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, + "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/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 +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 +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 (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 + /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 + /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/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/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' + 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 (11) + +----------------------------------------------- +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 (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 +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/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/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":"-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"; + +{"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"} +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/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/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":"-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"; + +{"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 +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 +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 '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. +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 +======== 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. +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 './filePresent' from '/user/username/projects/myproject/src/main.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/filePresent.ts'. +Reusing resolution of module './filePresent' from '/user/username/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. +======== 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 (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 + /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 + /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/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/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' + 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) + +----------------------------------------------- +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/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/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":"-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"; + +{"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 +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 '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. +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 (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 + /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 + /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/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/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) + +----------------------------------------------- +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/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/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"; + +{"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"} +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 + +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/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"; + +{"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 +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 '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. +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 (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/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/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 (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/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 +======== 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 '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'. +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 (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: + 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/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; + + +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 +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'. +======== 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 '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. +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 (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/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/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 (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/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: + 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/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; + + +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 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 './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: 10 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' + 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' + 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; + + +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 +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 './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: 11 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/src/externalThing.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' + 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' + 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 (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/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/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 +{ } +