diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 4b39fb05173..4ebb9e9f070 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -716,6 +716,12 @@ export interface PerDirectoryResolutionCache { * This updates the redirects map as well if needed so module resolutions are cached if they can across the projects */ update(options: CompilerOptions): void; + /** @internal */ setOldResolutionCache(cache: OldResolutionCache | undefined): void; +} + + /** @internal */ + export interface OldResolutionCache { + getResolved(name: string, mode: ResolutionMode, directory: Path, redirectedReference: ResolvedProjectReference | undefined): T | undefined; } export interface NonRelativeNameResolutionCache { @@ -729,6 +735,7 @@ export interface NonRelativeNameResolutionCache { * This updates the redirects map as well if needed so module resolutions are cached if they can across the projects */ update(options: CompilerOptions): void; + /** @internal */ setOldResolutionCache(cache: OldResolutionCache | undefined): void; } export interface PerNonRelativeNameCache { @@ -906,6 +913,7 @@ function getOrCreateCache(cacheWithRedirects: CacheWithRedirects, re function createPerDirectoryResolutionCache(currentDirectory: string, getCanonicalFileName: GetCanonicalFileName, options: CompilerOptions | undefined): PerDirectoryResolutionCache { const perDirectoryMap = createCacheWithRedirects>(options); + let oldResolutionCache: OldResolutionCache | undefined; return { perDirectoryMap, getFromDirectoryCache, @@ -913,9 +921,11 @@ function createPerDirectoryResolutionCache(currentDirectory: string, getCanon getOrCreateCacheForDirectoryWithPath, clear, update, + setOldResolutionCache: cache => oldResolutionCache = cache, }; function clear() { + oldResolutionCache = undefined; perDirectoryMap.clear(); } @@ -936,7 +946,11 @@ function createPerDirectoryResolutionCache(currentDirectory: string, getCanon } function getFromDirectoryCacheWithPath(name: string, mode: ResolutionMode, directory: Path, redirectedReference: ResolvedProjectReference | undefined) { - return perDirectoryMap.getMapOfCacheRedirects(redirectedReference)?.get(directory)?.get(name, mode); + let result = perDirectoryMap.getMapOfCacheRedirects(redirectedReference)?.get(directory)?.get(name, mode); + if (result) return result; + result = oldResolutionCache?.getResolved(name, mode, directory, redirectedReference); + if (result) getOrCreateCacheForDirectoryWithPath(directory, redirectedReference).set(name, mode, result); + return result; } } @@ -1019,6 +1033,7 @@ function createNonRelativeNameResolutionCache( getResolvedFileName: (result: T) => string | undefined, ): NonRelativeNameResolutionCache { const nonRelativeNameResolutionsMap = createCacheWithRedirects>(options); + let oldResolutionCache: OldResolutionCache | undefined; return { nonRelativeNameResolutionsMap, getFromNonRelativeNameCache, @@ -1026,9 +1041,11 @@ function createNonRelativeNameResolutionCache( getOrCreateCacheForNonRelativeName, clear, update, + setOldResolutionCache: cache => oldResolutionCache = cache, }; function clear() { + oldResolutionCache = undefined; nonRelativeNameResolutionsMap.clear(); } @@ -1037,13 +1054,16 @@ function createNonRelativeNameResolutionCache( } function getFromNonRelativeNameCache(nonRelativeModuleName: string, mode: ResolutionMode, directoryName: string, redirectedReference?: ResolvedProjectReference): T | undefined { - Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName)); - return nonRelativeNameResolutionsMap.getMapOfCacheRedirects(redirectedReference)?.get(createModeAwareCacheKey(nonRelativeModuleName, mode))?.get(directoryName); + return getFromNonRelativeNameCacheWithPath(nonRelativeModuleName, mode, toPath(directoryName, currentDirectory, getCanonicalFileName), redirectedReference); } function getFromNonRelativeNameCacheWithPath(nonRelativeModuleName: string, mode: ResolutionMode, dirPath: Path, redirectedReference?: ResolvedProjectReference): T | undefined { Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName)); - return nonRelativeNameResolutionsMap.getMapOfCacheRedirects(redirectedReference)?.get(createModeAwareCacheKey(nonRelativeModuleName, mode))?.getWithPath(dirPath); + let result = nonRelativeNameResolutionsMap.getMapOfCacheRedirects(redirectedReference)?.get(createModeAwareCacheKey(nonRelativeModuleName, mode))?.getWithPath(dirPath); + if (result) return result; + result = oldResolutionCache?.getResolved(nonRelativeModuleName, mode, dirPath, redirectedReference); + if (result) getOrCreateCacheForNonRelativeName(nonRelativeModuleName, mode, redirectedReference).setWithPath(dirPath, result, noop); + return result; } function getOrCreateCacheForNonRelativeName(nonRelativeModuleName: string, mode: ResolutionMode, redirectedReference?: ResolvedProjectReference): PerNonRelativeNameCache { @@ -1183,6 +1203,7 @@ function createModuleOrTypeReferenceResolutionCache( update, getPackageJsonInfoCache: () => packageJsonInfoCache!, clearAllExceptPackageJsonInfoCache, + setOldResolutionCache, }; function clear() { @@ -1199,6 +1220,11 @@ function createModuleOrTypeReferenceResolutionCache( perDirectory.update(options); perNonRelativeName.update(options); } + + function setOldResolutionCache(cache: OldResolutionCache | undefined) { + perDirectory.setOldResolutionCache(cache); + perNonRelativeName.setOldResolutionCache(cache); + } } export function createModuleResolutionCache( diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 97b2e3f9aad..18441f0f324 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1538,6 +1538,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg ); } + let typeReferenceDirectiveResolutionCache: TypeReferenceDirectiveResolutionCache | undefined; let actualResolveTypeReferenceDirectiveNamesWorker: ( typeDirectiveNames: T[], containingFile: string, @@ -1548,6 +1549,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg ) => readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; if (host.resolveTypeReferenceDirectiveReferences) { actualResolveTypeReferenceDirectiveNamesWorker = host.resolveTypeReferenceDirectiveReferences.bind(host); + typeReferenceDirectiveResolutionCache = host.getTypeReferenceDirectiveResolutionCache?.(); } else if (host.resolveTypeReferenceDirectives) { actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options, containingSourceFile) => @@ -1558,9 +1560,10 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg options, containingSourceFile?.impliedNodeFormat, ).map(resolvedTypeReferenceDirective => ({ resolvedTypeReferenceDirective })); + typeReferenceDirectiveResolutionCache = host.getTypeReferenceDirectiveResolutionCache?.(); } else { - const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache?.getPackageJsonInfoCache()); + typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache?.getPackageJsonInfoCache()); actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options, containingSourceFile) => loadWithModeAwareCache( typeDirectiveNames, @@ -1581,6 +1584,14 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg fileExists: fileName => host.fileExists(fileName), getCompilerOptions: () => options, }); + if (oldBuildInfoProgram) { + moduleResolutionCache?.setOldResolutionCache({ + getResolved: (name, mode, dirPath, redirectedReference) => oldBuildInfoProgram?.getResolvedModule(name, mode, dirPath, redirectedReference) + }); + typeReferenceDirectiveResolutionCache?.setOldResolutionCache({ + getResolved: (name, mode, dirPath, redirectedReference) => oldBuildInfoProgram?.getResolvedTypeReferenceDirective(name, mode, dirPath, redirectedReference) + }); + } } // Map from a stringified PackageId to the source file with that id. @@ -1773,6 +1784,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg getSourceFiles: () => files, getMissingFilePaths: () => missingFilePaths!, // TODO: GH#18217 getModuleResolutionCache: () => moduleResolutionCache, + getTypeReferenceDirectiveResolutionCache: () => typeReferenceDirectiveResolutionCache, getFilesByNameMap: () => filesByName, getCompilerOptions: () => options, getSyntacticDiagnostics, diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index c8aa802fc64..5363ba659bb 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -71,6 +71,7 @@ import { stringContains, StringLiteralLike, trace, + TypeReferenceDirectiveResolutionCache, updateResolutionField, WatchDirectoryFlags, } from "./_namespaces/ts"; @@ -123,6 +124,7 @@ export interface ResolutionCache { closeTypeRootsWatch(): void; getModuleResolutionCache(): ModuleResolutionCache; + getTypeReferenceDirectiveResolutionCache(): TypeReferenceDirectiveResolutionCache; clear(): void; } @@ -319,6 +321,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD return { getModuleResolutionCache: () => moduleResolutionCache, + getTypeReferenceDirectiveResolutionCache: () => typeReferenceDirectiveResolutionCache, startRecordingFilesWithChangedResolutions, finishRecordingFilesWithChangedResolutions, // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index d67b8bb3f2c..75f374c8987 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -433,6 +433,7 @@ function createSolutionBuilderState(watch: boolean, ho compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); compilerHost.getModuleResolutionCache = maybeBind(host, host.getModuleResolutionCache); + compilerHost.getTypeReferenceDirectiveResolutionCache = maybeBind(host, host.getTypeReferenceDirectiveResolutionCache); let moduleResolutionCache: ModuleResolutionCache | undefined, typeReferenceDirectiveResolutionCache: TypeReferenceDirectiveResolutionCache | undefined; if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) { moduleResolutionCache = createModuleResolutionCache(compilerHost.getCurrentDirectory(), compilerHost.getCanonicalFileName); @@ -462,6 +463,7 @@ function createSolutionBuilderState(watch: boolean, ho typeReferenceDirectiveResolutionCache, createTypeReferenceResolutionLoader, ); + compilerHost.getTypeReferenceDirectiveResolutionCache = () => typeReferenceDirectiveResolutionCache; } compilerHost.getBuildInfo = (fileName, configFilePath) => getBuildInfo(state, fileName, toResolvedConfigFilePath(state, configFilePath as ResolvedConfigFileName), /*modifiedTime*/ undefined); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 75db91d285f..d60a84097d9 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -16,6 +16,7 @@ import { ProgramBuildInfo, Push, SymlinkCache, + TypeReferenceDirectiveResolutionCache, } from "./_namespaces/ts"; // branded string type used to store absolute, normalized and canonicalized paths @@ -4444,6 +4445,8 @@ export interface Program extends ScriptReferenceHost { /** @internal */ getModuleResolutionCache(): ModuleResolutionCache | undefined; /** @internal */ + getTypeReferenceDirectiveResolutionCache(): TypeReferenceDirectiveResolutionCache | undefined; + /** @internal */ getFilesByNameMap(): Map; /** @@ -7367,6 +7370,7 @@ export interface CompilerHost extends ModuleResolutionHost { * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it */ getModuleResolutionCache?(): ModuleResolutionCache | undefined; + /** @internal */ getTypeReferenceDirectiveResolutionCache?(): TypeReferenceDirectiveResolutionCache | undefined; /** * @deprecated supply resolveTypeReferenceDirectiveReferences instead for resolution that can handle newer resolution modes like nodenext * diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 13c2add3368..9a8210a100c 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -82,6 +82,7 @@ import { sys, System, toPath, + TypeReferenceDirectiveResolutionCache, updateErrorForNoInputFiles, updateMissingFilePathsWatch, updateSharedExtendedConfigFileWatcher, @@ -242,6 +243,7 @@ export interface ProgramHost { * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it */ getModuleResolutionCache?(): ModuleResolutionCache | undefined; + /** @internal */ getTypeReferenceDirectiveResolutionCache?(): TypeReferenceDirectiveResolutionCache | undefined; } /** * Internal interface used to wire emit through same host @@ -505,6 +507,9 @@ export function createWatchProgram(host: WatchCompiler compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : (() => resolutionCache.getModuleResolutionCache()); + compilerHost.getTypeReferenceDirectiveResolutionCache = host.resolveTypeReferenceDirectiveReferences || host.resolveTypeReferenceDirectives ? + maybeBind(host, host.getTypeReferenceDirectiveResolutionCache) : + (() => resolutionCache.getTypeReferenceDirectiveResolutionCache()); const userProvidedResolution = !!host.resolveModuleNameLiterals || !!host.resolveTypeReferenceDirectiveReferences || !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives; // All resolutions are invalid if user provided resolutions and didnt supply hasInvalidatedResolutions diff --git a/src/server/project.ts b/src/server/project.ts index ab2a5252cd7..feceb8a207a 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -142,6 +142,7 @@ import { toPath, tracing, TypeAcquisition, + TypeReferenceDirectiveResolutionCache, updateErrorForNoInputFiles, updateMissingFilePathsWatch, WatchDirectoryFlags, @@ -684,6 +685,11 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo ); } + /** @internal */ + getTypeReferenceDirectiveResolutionCache(): TypeReferenceDirectiveResolutionCache | undefined { + return this.resolutionCache.getTypeReferenceDirectiveResolutionCache(); + } + directoryExists(path: string): boolean { return this.directoryStructureHost.directoryExists!(path); // TODO: GH#18217 } @@ -2519,6 +2525,11 @@ export class AutoImportProviderProject extends Project { getModuleResolutionCache() { return this.hostProject.getCurrentProgram()?.getModuleResolutionCache(); } + + /** @internal */ + getTypeReferenceDirectiveResolutionCache() { + return this.hostProject.getCurrentProgram()?.getTypeReferenceDirectiveResolutionCache(); + } } /** diff --git a/src/services/services.ts b/src/services/services.ts index 3175268d7a5..2f5a180545b 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1692,6 +1692,7 @@ export function createLanguageService( trace: maybeBind(host, host.trace), resolveModuleNames: maybeBind(host, host.resolveModuleNames), getModuleResolutionCache: maybeBind(host, host.getModuleResolutionCache), + getTypeReferenceDirectiveResolutionCache: maybeBind(host, host.getTypeReferenceDirectiveResolutionCache), createHash: maybeBind(host, host.createHash), resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives), resolveModuleNameLiterals: maybeBind(host, host.resolveModuleNameLiterals), diff --git a/src/services/types.ts b/src/services/types.ts index ff726ff0663..391a7280df3 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -38,6 +38,7 @@ import { textChanges, TextRange, TextSpan, + TypeReferenceDirectiveResolutionCache, UserPreferences, } from "./_namespaces/ts"; @@ -384,6 +385,7 @@ export interface LanguageServiceHost extends GetEffectiveTypeRootsHost, MinimalR /** @internal */ getSymlinkCache?(files?: readonly SourceFile[]): SymlinkCache; /* Lets the Program from a AutoImportProviderProject use its host project's ModuleResolutionCache */ /** @internal */ getModuleResolutionCache?(): ModuleResolutionCache | undefined; + /** @internal */ getTypeReferenceDirectiveResolutionCache?(): TypeReferenceDirectiveResolutionCache | undefined; /* * Required for full import and type reference completions. diff --git a/src/testRunner/unittests/tsbuild/cacheResolutions.ts b/src/testRunner/unittests/tsbuild/cacheResolutions.ts index 0e8198feb30..9c0b7c01c13 100644 --- a/src/testRunner/unittests/tsbuild/cacheResolutions.ts +++ b/src/testRunner/unittests/tsbuild/cacheResolutions.ts @@ -151,16 +151,10 @@ describe("unittests:: tsbuild:: cacheResolutions::", () => { { caption: "modify d/da/daa/daaa/x/y/z/randomFileForImport by adding import", edit: fs => prependText(fs, "/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.ts", `import type { ImportInterface0 } from "pkg0";\n`), - discrepancyExplanation: () => [ - `Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat)` - ] }, { caption: "modify e/ea/eaa/eaaa/x/y/z/randomFileForImport by adding import", edit: fs => prependText(fs, "/src/project/e/ea/eaa/eaaa/x/y/z/randomFileForImport.ts", `import type { ImportInterface0 } from "pkg0";\n`), - discrepancyExplanation: () => [ - `Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat)` - ] }, ] }); diff --git a/src/testRunner/unittests/tsc/cacheResolutions.ts b/src/testRunner/unittests/tsc/cacheResolutions.ts index e8c1f27d7e3..409edc0edf7 100644 --- a/src/testRunner/unittests/tsc/cacheResolutions.ts +++ b/src/testRunner/unittests/tsc/cacheResolutions.ts @@ -247,16 +247,10 @@ describe("unittests:: tsc:: cacheResolutions::", () => { { caption: "modify d/da/daa/daaa/x/y/z/randomFileForImport by adding import", edit: fs => prependText(fs, "/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.ts", `import type { ImportInterface0 } from "pkg0";\n`), - discrepancyExplanation: () => [ - `Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat)` - ] }, { caption: "modify e/ea/eaa/eaaa/x/y/z/randomFileForImport by adding import", edit: fs => prependText(fs, "/src/project/e/ea/eaa/eaaa/x/y/z/randomFileForImport.ts", `import type { ImportInterface0 } from "pkg0";\n`), - discrepancyExplanation: () => [ - `Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat)` - ] }, ] }); diff --git a/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places-discrepancies.js b/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places-discrepancies.js deleted file mode 100644 index 6848dca3f3f..00000000000 --- a/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places-discrepancies.js +++ /dev/null @@ -1,1204 +0,0 @@ -3:: modify d/da/daa/daaa/x/y/z/randomFileForImport by adding import -Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat) -TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "-10726455937-export const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "-10726455937-export const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} -4:: modify e/ea/eaa/eaaa/x/y/z/randomFileForImport by adding import -Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat) -TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 3 - ], - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places.js b/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places.js index d7c51600950..5a4f643add5 100644 --- a/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places.js +++ b/tests/baselines/reference/tsbuild/cacheResolutions/multiple-places.js @@ -2785,18 +2785,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. @@ -2953,8 +2942,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3021,7 +3010,7 @@ pkg0: { //// [/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[1]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3300,19 +3289,6 @@ pkg0: { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -3333,21 +3309,6 @@ pkg0: { "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -3419,10 +3380,10 @@ pkg0: { "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -3451,7 +3412,7 @@ pkg0: { } }, "version": "FakeTSVersion", - "size": 4072 + "size": 3993 } @@ -3488,18 +3449,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/e/ea/eaa/eaaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/eaaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/e/ea/eaa/eaaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== lib/lib.d.ts Default library for target 'es5' @@ -3721,15 +3671,15 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } //// [/src/project/e/ea/eaa/eaaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2],[1,3]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[3]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4011,32 +3961,6 @@ pkg0: { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -4057,36 +3981,6 @@ pkg0: { "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 3 - ], - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -4158,10 +4052,10 @@ pkg0: { "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4174,10 +4068,10 @@ pkg0: { "dir": "./e/ea/eaa/eaaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 3, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 3, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4190,6 +4084,6 @@ pkg0: { } }, "version": "FakeTSVersion", - "size": 4212 + "size": 4054 } diff --git a/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-already-built.js b/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-already-built.js index 0dec79a9b78..a21f5d3ff55 100644 --- a/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-already-built.js +++ b/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-already-built.js @@ -2895,18 +2895,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. @@ -3096,8 +3085,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3207,7 +3196,7 @@ exitCode:: ExitStatus.undefined //// [/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[1]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3486,19 +3475,6 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -3519,21 +3495,6 @@ exitCode:: ExitStatus.undefined "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -3605,10 +3566,10 @@ exitCode:: ExitStatus.undefined "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -3637,7 +3598,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3960 + "size": 3881 } @@ -3675,18 +3636,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/e/ea/eaa/eaaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/eaaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/e/ea/eaa/eaaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== ../../a/lib/lib.d.ts Default library for target 'es5' @@ -3871,8 +3821,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3881,8 +3831,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3891,8 +3841,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3901,8 +3851,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3941,8 +3891,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3992,7 +3942,7 @@ exitCode:: ExitStatus.undefined //// [/src/project/e/ea/eaa/eaaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2],[1,3]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[3]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4274,32 +4224,6 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -4320,36 +4244,6 @@ exitCode:: ExitStatus.undefined "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 3 - ], - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -4421,10 +4315,10 @@ exitCode:: ExitStatus.undefined "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4437,10 +4331,10 @@ exitCode:: ExitStatus.undefined "dir": "./e/ea/eaa/eaaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 3, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 3, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4453,6 +4347,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4100 + "size": 3942 } diff --git a/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-first-pass.js b/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-first-pass.js index 68fbc89510f..035c474a625 100644 --- a/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-first-pass.js +++ b/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places-first-pass.js @@ -741,18 +741,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. @@ -909,8 +898,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -975,8 +964,6 @@ pkg0: { } PolledWatches:: -/src/project/node_modules/pkg0/package.json: - {"pollingInterval":2000} FsWatches:: /src/project/tsconfig.json: @@ -1022,7 +1009,7 @@ exitCode:: ExitStatus.undefined //// [/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[10,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[1]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[10,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1292,19 +1279,6 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -1325,21 +1299,6 @@ exitCode:: ExitStatus.undefined "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -1411,10 +1370,10 @@ exitCode:: ExitStatus.undefined "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -1443,6 +1402,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3798 + "size": 3719 } diff --git a/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places.js b/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places.js index bd47664a0de..eaa061631da 100644 --- a/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places.js +++ b/tests/baselines/reference/tsbuildWatch/cacheResolutions/multiple-places.js @@ -3137,18 +3137,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. @@ -3451,7 +3440,7 @@ exitCode:: ExitStatus.undefined //// [/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[1]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3730,19 +3719,6 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -3763,21 +3739,6 @@ exitCode:: ExitStatus.undefined "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -3849,10 +3810,10 @@ exitCode:: ExitStatus.undefined "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -3881,7 +3842,7 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3960 + "size": 3881 } @@ -3919,18 +3880,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/e/ea/eaa/eaaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/eaaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/e/ea/eaa/eaaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== ../../a/lib/lib.d.ts Default library for target 'es5' @@ -4238,7 +4188,7 @@ exitCode:: ExitStatus.undefined //// [/src/project/e/ea/eaa/eaaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2],[1,3]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[3]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4520,32 +4470,6 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -4566,36 +4490,6 @@ exitCode:: ExitStatus.undefined "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 3 - ], - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -4667,10 +4561,10 @@ exitCode:: ExitStatus.undefined "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4683,10 +4577,10 @@ exitCode:: ExitStatus.undefined "dir": "./e/ea/eaa/eaaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 3, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 3, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4699,6 +4593,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 4100 + "size": 3942 } diff --git a/tests/baselines/reference/tsc/cacheResolutions/multiple-places-discrepancies.js b/tests/baselines/reference/tsc/cacheResolutions/multiple-places-discrepancies.js deleted file mode 100644 index 6848dca3f3f..00000000000 --- a/tests/baselines/reference/tsc/cacheResolutions/multiple-places-discrepancies.js +++ /dev/null @@ -1,1204 +0,0 @@ -3:: modify d/da/daa/daaa/x/y/z/randomFileForImport by adding import -Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat) -TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "-10726455937-export const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "-10726455937-export const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} -4:: modify e/ea/eaa/eaaa/x/y/z/randomFileForImport by adding import -Incremental is currently not reusing resolution so tsbuildinfo has two same resolutions instead of one TODO: (shkamat) -TsBuild info text without affectedFilesPendingEmit:: /src/project/tsconfig.tsbuildinfo.readable.baseline.txt:: -CleanBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} -IncrementalBuild: -{ - "program": { - "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 - }, - "./node_modules/pkg0/index.d.ts": { - "version": "769951468-export interface ImportInterface0 {}" - }, - "./filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./a/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/ba/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./b/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/ca/caa/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./c/ca/caa/caaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./c/cb/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - }, - "./d/da/daa/daaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/daa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./d/da/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/filewithimports.ts": { - "version": "7372004325-import type { ImportInterface0 } from \"pkg0\";\n" - }, - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": { - "version": "10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;" - } - }, - "options": { - "cacheResolutions": true, - "composite": true - }, - "referencedMap": { - "./a/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/ba/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./b/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/caaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/caa/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/ca/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./c/cb/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/daa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./d/da/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/eaa/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./e/ea/filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./filewithimports.ts": [ - "./node_modules/pkg0/index.d.ts" - ], - "./randomfileforimport.ts": [ - "./node_modules/pkg0/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./a/filewithimports.ts", - "./b/ba/filewithimports.ts", - "./b/randomfileforimport.ts", - "./c/ca/caa/caaa/filewithimports.ts", - "./c/ca/caa/randomfileforimport.ts", - "./c/ca/filewithimports.ts", - "./c/cb/filewithimports.ts", - "./d/da/daa/daaa/filewithimports.ts", - "./d/da/daa/daaa/x/y/z/randomfileforimport.ts", - "./d/da/daa/filewithimports.ts", - "./d/da/filewithimports.ts", - "./e/ea/eaa/eaaa/filewithimports.ts", - "./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts", - "./e/ea/eaa/filewithimports.ts", - "./e/ea/filewithimports.ts", - "./filewithimports.ts", - "./node_modules/pkg0/index.d.ts", - "./randomfileforimport.ts" - ], - "latestChangedDtsFile": "FakeFileName", - "cacheResolutions": { - "resolutions": [ - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - ], - "names": [ - "pkg0" - ], - "resolutionEntries": [ - { - "original": [ - 1, - 1 - ], - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 3 - ], - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ], - "modules": [ - { - "dir": "./a", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./b/ba", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/ca/caa/caaa", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./c/cb", - "resolutions": [ - { - "resolutionEntryId": 1, - "name": "pkg0", - "resolution": { - "resolutionId": 1, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./d/da/daa/daaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - }, - { - "dir": "./e/ea/eaa/eaaa/x/y/z", - "resolutions": [ - { - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} \ No newline at end of file diff --git a/tests/baselines/reference/tsc/cacheResolutions/multiple-places.js b/tests/baselines/reference/tsc/cacheResolutions/multiple-places.js index 8a71c765637..e0fe9d5fa86 100644 --- a/tests/baselines/reference/tsc/cacheResolutions/multiple-places.js +++ b/tests/baselines/reference/tsc/cacheResolutions/multiple-places.js @@ -2785,18 +2785,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. @@ -2953,8 +2942,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -3021,7 +3010,7 @@ pkg0: { //// [/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[1]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"-10726455937-export const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -3300,19 +3289,6 @@ pkg0: { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -3333,21 +3309,6 @@ pkg0: { "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -3419,10 +3380,10 @@ pkg0: { "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -3451,7 +3412,7 @@ pkg0: { } }, "version": "FakeTSVersion", - "size": 4072 + "size": 3993 } @@ -3488,18 +3449,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/e/ea/eaa/eaaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/e/ea/eaa/eaaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/eaaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/eaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/ea/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/e/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/e/ea/eaa/eaaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== lib/lib.d.ts Default library for target 'es5' @@ -3721,15 +3671,15 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } //// [/src/project/e/ea/eaa/eaaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2],[1,3]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[3]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa/x/y/z"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-4882119183-export {};\r\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6057683066-export declare const x = 10;\r\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[7,1],[10,1],[9,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[19,1],[17,1],[16,1],[3,1],[4,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -4011,32 +3961,6 @@ pkg0: { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -4057,36 +3981,6 @@ pkg0: { "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } - }, - { - "original": [ - 1, - 3 - ], - "resolutionEntryId": 3, - "name": "pkg0", - "resolution": { - "resolutionId": 3, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -4158,10 +4052,10 @@ pkg0: { "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4174,10 +4068,10 @@ pkg0: { "dir": "./e/ea/eaa/eaaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 3, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 3, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -4190,6 +4084,6 @@ pkg0: { } }, "version": "FakeTSVersion", - "size": 4212 + "size": 4054 } diff --git a/tests/baselines/reference/tscWatch/cacheResolutions/multiple-places-first-pass.js b/tests/baselines/reference/tscWatch/cacheResolutions/multiple-places-first-pass.js index a62d0526967..83614fdb14d 100644 --- a/tests/baselines/reference/tscWatch/cacheResolutions/multiple-places-first-pass.js +++ b/tests/baselines/reference/tscWatch/cacheResolutions/multiple-places-first-pass.js @@ -741,18 +741,7 @@ Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -File '/src/project/node_modules/pkg0/package.json' does not exist. -File '/src/project/node_modules/pkg0.ts' does not exist. -File '/src/project/node_modules/pkg0.tsx' does not exist. -File '/src/project/node_modules/pkg0.d.ts' does not exist. -File '/src/project/node_modules/pkg0/index.ts' does not exist. -File '/src/project/node_modules/pkg0/index.tsx' does not exist. -File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. +Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. @@ -909,8 +898,8 @@ resolvedModules: pkg0: { "resolvedModule": { "resolvedFileName": "/src/project/node_modules/pkg0/index.d.ts", - "extension": ".d.ts", - "isExternalLibraryImport": true + "isExternalLibraryImport": true, + "extension": ".d.ts" } } @@ -1026,7 +1015,7 @@ exitCode:: ExitStatus.undefined //// [/src/project/d/da/daa/daaa/x/y/z/randomFileForImport.js] file written with same contents //// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[10,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}},{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1],[1,2]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[2]],[25,[1]]]}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../a/lib/lib.d.ts","./node_modules/pkg0/index.d.ts","./filewithimports.ts","./randomfileforimport.ts","./a/filewithimports.ts","./b/ba/filewithimports.ts","./b/randomfileforimport.ts","./c/ca/filewithimports.ts","./c/ca/caa/randomfileforimport.ts","./c/ca/caa/caaa/filewithimports.ts","./c/cb/filewithimports.ts","./d/da/daa/daaa/x/y/z/randomfileforimport.ts","./d/da/daa/daaa/filewithimports.ts","./d/da/daa/filewithimports.ts","./d/da/filewithimports.ts","./e/ea/filewithimports.ts","./e/ea/eaa/filewithimports.ts","./e/ea/eaa/eaaa/filewithimports.ts","./e/ea/eaa/eaaa/x/y/z/randomfileforimport.ts","./a","./b/ba","./c/ca/caa/caaa","./c/cb","./d/da/daa/daaa/x/y/z","./e/ea/eaa/eaaa"],"fileInfos":[{"version":"-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }","affectsGlobalScope":true},"769951468-export interface ImportInterface0 {}",{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"10580737119-import type { ImportInterface0 } from \"pkg0\";\nexport const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"7372004325-import type { ImportInterface0 } from \"pkg0\";\n","signature":"-3531856636-export {};\n"},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"}],"options":{"cacheResolutions":true,"composite":true},"fileIdsList":[[2]],"referencedMap":[[5,1],[6,1],[10,1],[8,1],[11,1],[13,1],[12,1],[14,1],[15,1],[18,1],[17,1],[16,1],[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,5,6,7,10,9,8,11,13,12,14,15,18,19,17,16,3,2,4],"latestChangedDtsFile":"./e/ea/eaa/eaaa/x/y/z/randomFileForImport.d.ts","cacheResolutions":{"resolutions":[{"resolvedModule":{"resolvedFileName":2,"isExternalLibraryImport":true}}],"names":["pkg0"],"resolutionEntries":[[1,1]],"modules":[[20,[1]],[21,[1]],[22,[1]],[23,[1]],[24,[1]],[25,[1]]]}},"version":"FakeTSVersion"} //// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1296,19 +1285,6 @@ exitCode:: ExitStatus.undefined "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true } - }, - { - "original": { - "resolvedModule": { - "resolvedFileName": 2, - "isExternalLibraryImport": true - } - }, - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } } ], "names": [ @@ -1329,21 +1305,6 @@ exitCode:: ExitStatus.undefined "isExternalLibraryImport": true } } - }, - { - "original": [ - 1, - 2 - ], - "resolutionEntryId": 2, - "name": "pkg0", - "resolution": { - "resolutionId": 2, - "resolvedModule": { - "resolvedFileName": "./node_modules/pkg0/index.d.ts", - "isExternalLibraryImport": true - } - } } ], "modules": [ @@ -1415,10 +1376,10 @@ exitCode:: ExitStatus.undefined "dir": "./d/da/daa/daaa/x/y/z", "resolutions": [ { - "resolutionEntryId": 2, + "resolutionEntryId": 1, "name": "pkg0", "resolution": { - "resolutionId": 2, + "resolutionId": 1, "resolvedModule": { "resolvedFileName": "./node_modules/pkg0/index.d.ts", "isExternalLibraryImport": true @@ -1447,6 +1408,6 @@ exitCode:: ExitStatus.undefined } }, "version": "FakeTSVersion", - "size": 3798 + "size": 3719 } diff --git a/tests/baselines/reference/tsserver/cacheResolutions/multiple-places-first-pass.js b/tests/baselines/reference/tsserver/cacheResolutions/multiple-places-first-pass.js index 1e850e831c4..bee9fab3a29 100644 --- a/tests/baselines/reference/tsserver/cacheResolutions/multiple-places-first-pass.js +++ b/tests/baselines/reference/tsserver/cacheResolutions/multiple-places-first-pass.js @@ -718,31 +718,20 @@ Info 34 [00:03:29.000] Loading module 'pkg0' from 'node_modules' folder, targe Info 35 [00:03:30.000] Directory '/src/project/d/da/daa/daaa/x/y/z/node_modules' does not exist, skipping all lookups in it. Info 36 [00:03:31.000] Directory '/src/project/d/da/daa/daaa/x/y/node_modules' does not exist, skipping all lookups in it. Info 37 [00:03:32.000] Directory '/src/project/d/da/daa/daaa/x/node_modules' does not exist, skipping all lookups in it. -Info 38 [00:03:33.000] Directory '/src/project/d/da/daa/daaa/node_modules' does not exist, skipping all lookups in it. -Info 39 [00:03:34.000] Directory '/src/project/d/da/daa/node_modules' does not exist, skipping all lookups in it. -Info 40 [00:03:35.000] Directory '/src/project/d/da/node_modules' does not exist, skipping all lookups in it. -Info 41 [00:03:36.000] Directory '/src/project/d/node_modules' does not exist, skipping all lookups in it. -Info 42 [00:03:37.000] File '/src/project/node_modules/pkg0/package.json' does not exist. -Info 43 [00:03:38.000] File '/src/project/node_modules/pkg0.ts' does not exist. -Info 44 [00:03:39.000] File '/src/project/node_modules/pkg0.tsx' does not exist. -Info 45 [00:03:40.000] File '/src/project/node_modules/pkg0.d.ts' does not exist. -Info 46 [00:03:41.000] File '/src/project/node_modules/pkg0/index.ts' does not exist. -Info 47 [00:03:42.000] File '/src/project/node_modules/pkg0/index.tsx' does not exist. -Info 48 [00:03:43.000] File '/src/project/node_modules/pkg0/index.d.ts' exist - use it as a name resolution result. -Info 49 [00:03:44.000] Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/src/project/node_modules/pkg0/index.d.ts'. -Info 50 [00:03:45.000] ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== -Info 51 [00:03:46.000] Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. -Info 52 [00:03:47.000] Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. -Info 53 [00:03:48.000] Reusing resolution of module 'pkg0' from '/src/project/d/da/fileWithImports.ts' found in cache from location '/src/project/d/da', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. -Info 54 [00:03:49.000] Reusing resolution of module 'pkg0' from '/src/project/e/ea/fileWithImports.ts' found in cache from location '/src/project/e/ea', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. -Info 55 [00:03:50.000] Reusing resolution of module 'pkg0' from '/src/project/e/ea/eaa/fileWithImports.ts' found in cache from location '/src/project/e/ea/eaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. -Info 56 [00:03:51.000] Reusing resolution of module 'pkg0' from '/src/project/e/ea/eaa/eaaa/fileWithImports.ts' found in cache from location '/src/project/e/ea/eaa/eaaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. -Info 57 [00:03:52.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info 58 [00:03:53.000] DirectoryWatcher:: Added:: WatchInfo: /src/project/node_modules/@types 1 undefined Project: /src/project/tsconfig.json WatchType: Type roots -Info 59 [00:03:54.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/project/node_modules/@types 1 undefined Project: /src/project/tsconfig.json WatchType: Type roots -Info 60 [00:03:55.000] Finishing updateGraphWorker: Project: /src/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: SafeModuleCache Elapsed:: *ms -Info 61 [00:03:56.000] Project '/src/project/tsconfig.json' (Configured) -Info 62 [00:03:57.000] Files (19) +Info 38 [00:03:33.000] Resolution for module 'pkg0' was found in cache from location '/src/project/d/da/daa/daaa'. +Info 39 [00:03:34.000] ======== Module name 'pkg0' was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. ======== +Info 40 [00:03:35.000] Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/daaa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa/daaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. +Info 41 [00:03:36.000] Reusing resolution of module 'pkg0' from '/src/project/d/da/daa/fileWithImports.ts' found in cache from location '/src/project/d/da/daa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. +Info 42 [00:03:37.000] Reusing resolution of module 'pkg0' from '/src/project/d/da/fileWithImports.ts' found in cache from location '/src/project/d/da', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. +Info 43 [00:03:38.000] Reusing resolution of module 'pkg0' from '/src/project/e/ea/fileWithImports.ts' found in cache from location '/src/project/e/ea', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. +Info 44 [00:03:39.000] Reusing resolution of module 'pkg0' from '/src/project/e/ea/eaa/fileWithImports.ts' found in cache from location '/src/project/e/ea/eaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. +Info 45 [00:03:40.000] Reusing resolution of module 'pkg0' from '/src/project/e/ea/eaa/eaaa/fileWithImports.ts' found in cache from location '/src/project/e/ea/eaa/eaaa', it was successfully resolved to '/src/project/node_modules/pkg0/index.d.ts'. +Info 46 [00:03:41.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info 47 [00:03:42.000] DirectoryWatcher:: Added:: WatchInfo: /src/project/node_modules/@types 1 undefined Project: /src/project/tsconfig.json WatchType: Type roots +Info 48 [00:03:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/project/node_modules/@types 1 undefined Project: /src/project/tsconfig.json WatchType: Type roots +Info 49 [00:03:44.000] Finishing updateGraphWorker: Project: /src/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: SafeModuleCache Elapsed:: *ms +Info 50 [00:03:45.000] Project '/src/project/tsconfig.json' (Configured) +Info 51 [00:03:46.000] Files (19) /a/lib/lib.d.ts /src/project/node_modules/pkg0/index.d.ts /src/project/fileWithImports.ts @@ -815,16 +804,16 @@ Info 62 [00:03:57.000] Files (19) e/ea/eaa/eaaa/x/y/z/randomFileForImport.ts Part of 'files' list in tsconfig.json -Info 63 [00:03:58.000] ----------------------------------------------- -Info 64 [00:03:59.000] Search path: /src/project -Info 65 [00:04:00.000] For info: /src/project/tsconfig.json :: No config files found. -Info 66 [00:04:01.000] Project '/src/project/tsconfig.json' (Configured) -Info 66 [00:04:02.000] Files (19) +Info 52 [00:03:47.000] ----------------------------------------------- +Info 53 [00:03:48.000] Search path: /src/project +Info 54 [00:03:49.000] For info: /src/project/tsconfig.json :: No config files found. +Info 55 [00:03:50.000] Project '/src/project/tsconfig.json' (Configured) +Info 55 [00:03:51.000] Files (19) -Info 66 [00:04:03.000] ----------------------------------------------- -Info 66 [00:04:04.000] Open files: -Info 66 [00:04:05.000] FileName: /src/project/randomFileForImport.ts ProjectRootPath: undefined -Info 66 [00:04:06.000] Projects: /src/project/tsconfig.json +Info 55 [00:03:52.000] ----------------------------------------------- +Info 55 [00:03:53.000] Open files: +Info 55 [00:03:54.000] FileName: /src/project/randomFileForImport.ts ProjectRootPath: undefined +Info 55 [00:03:55.000] Projects: /src/project/tsconfig.json After request PolledWatches:: @@ -873,7 +862,7 @@ FsWatchesRecursive:: /src/project/node_modules: {} -Info 66 [00:04:07.000] response: +Info 55 [00:03:56.000] response: { "responseRequired": false } \ No newline at end of file