From a9f7e9adde571b082fc4bfa4ac0e04362f9e9849 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 7 Aug 2025 10:34:17 -0700 Subject: [PATCH 01/12] Port --traceResolution --- internal/checker/checker_test.go | 6 +- internal/compiler/fileloader.go | 47 ++- internal/compiler/filesparser.go | 23 +- internal/compiler/host.go | 8 +- internal/compiler/program_test.go | 6 +- .../compiler/projectreferencedtsfakinghost.go | 5 - internal/execute/tsc.go | 10 +- internal/execute/watcher.go | 4 +- internal/module/resolver.go | 336 ++++++++++-------- internal/module/resolver_test.go | 4 +- internal/module/types.go | 1 - internal/project/ata.go | 2 +- internal/testrunner/compiler_runner.go | 44 +++ internal/testutil/harnessutil/harnessutil.go | 12 +- .../tsbaseline/module_resolution_baseline.go | 18 + .../configDir-template-with-commandline.js | 44 +++ .../tsc/extends/configDir-template.js | 44 +++ 17 files changed, 412 insertions(+), 202 deletions(-) create mode 100644 internal/testutil/tsbaseline/module_resolution_baseline.go diff --git a/internal/checker/checker_test.go b/internal/checker/checker_test.go index 2acdbb62da..3b05f932b7 100644 --- a/internal/checker/checker_test.go +++ b/internal/checker/checker_test.go @@ -36,7 +36,7 @@ foo.bar;` fs = bundled.WrapFS(fs) cd := "/" - host := compiler.NewCompilerHost(cd, fs, bundled.LibPath(), nil) + host := compiler.NewCompilerHost(cd, fs, bundled.LibPath(), nil, func(msg string) {}) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile("/tsconfig.json", &core.CompilerOptions{}, host, nil) assert.Equal(t, len(errors), 0, "Expected no errors in parsed command line") @@ -70,7 +70,7 @@ func TestCheckSrcCompiler(t *testing.T) { rootPath := tspath.CombinePaths(tspath.NormalizeSlashes(repo.TypeScriptSubmodulePath), "src", "compiler") - host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil) + host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, func(msg string) {}) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile(tspath.CombinePaths(rootPath, "tsconfig.json"), &core.CompilerOptions{}, host, nil) assert.Equal(t, len(errors), 0, "Expected no errors in parsed command line") p := compiler.NewProgram(compiler.ProgramOptions{ @@ -87,7 +87,7 @@ func BenchmarkNewChecker(b *testing.B) { rootPath := tspath.CombinePaths(tspath.NormalizeSlashes(repo.TypeScriptSubmodulePath), "src", "compiler") - host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil) + host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, func(msg string) {}) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile(tspath.CombinePaths(rootPath, "tsconfig.json"), &core.CompilerOptions{}, host, nil) assert.Equal(b, len(errors), 0, "Expected no errors in parsed command line") p := compiler.NewProgram(compiler.ProgramOptions{ diff --git a/internal/compiler/fileloader.go b/internal/compiler/fileloader.go index fbb96adf93..f9841bd00a 100644 --- a/internal/compiler/fileloader.go +++ b/internal/compiler/fileloader.go @@ -15,6 +15,12 @@ import ( "github.com/microsoft/typescript-go/internal/tspath" ) +type libResolution struct { + libraryName string + resolution *module.ResolvedModule + trace []string +} + type fileLoader struct { opts ProgramOptions resolver *module.Resolver @@ -35,7 +41,7 @@ type fileLoader struct { dtsDirectories collections.Set[tspath.Path] pathForLibFileCache collections.SyncMap[string, string] - pathForLibFileResolutions collections.SyncMap[tspath.Path, module.ModeAwareCache[*module.ResolvedModule]] + pathForLibFileResolutions collections.SyncMap[tspath.Path, *libResolution] } type processedFiles struct { @@ -200,12 +206,15 @@ func processAllProgramFiles( } } - loader.pathForLibFileResolutions.Range(func(key tspath.Path, value module.ModeAwareCache[*module.ResolvedModule]) bool { - resolvedModules[key] = value - for _, resolvedModule := range value { - for _, diag := range resolvedModule.ResolutionDiagnostics { - fileLoadDiagnostics.Add(diag) - } + loader.pathForLibFileResolutions.Range(func(key tspath.Path, value *libResolution) bool { + resolvedModules[key] = module.ModeAwareCache[*module.ResolvedModule]{ + module.ModeAwareCacheKey{Name: value.libraryName, Mode: core.ModuleKindCommonJS}: value.resolution, + } + for _, trace := range value.trace { + opts.Host.Trace(trace) + } + for _, diag := range value.resolution.ResolutionDiagnostics { + fileLoadDiagnostics.Add(diag) } return true }) @@ -255,6 +264,7 @@ func (p *fileLoader) addAutomaticTypeDirectiveTasks() { func (p *fileLoader) resolveAutomaticTypeDirectives(containingFileName string) ( toParse []resolvedRef, typeResolutionsInFile module.ModeAwareCache[*module.ResolvedTypeReferenceDirective], + typeResolutionsTrace []string, ) { automaticTypeDirectiveNames := module.GetAutomaticTypeDirectiveNames(p.opts.Config.CompilerOptions(), p.opts.Host) if len(automaticTypeDirectiveNames) != 0 { @@ -262,8 +272,9 @@ func (p *fileLoader) resolveAutomaticTypeDirectives(containingFileName string) ( typeResolutionsInFile = make(module.ModeAwareCache[*module.ResolvedTypeReferenceDirective], len(automaticTypeDirectiveNames)) for _, name := range automaticTypeDirectiveNames { resolutionMode := core.ModuleKindNodeNext - resolved := p.resolver.ResolveTypeReferenceDirective(name, containingFileName, resolutionMode, nil) + resolved, trace := p.resolver.ResolveTypeReferenceDirective(name, containingFileName, resolutionMode, nil) typeResolutionsInFile[module.ModeAwareCacheKey{Name: name, Mode: resolutionMode}] = resolved + typeResolutionsTrace = append(typeResolutionsTrace, trace...) if resolved.IsResolved() { toParse = append(toParse, resolvedRef{ fileName: resolved.ResolvedFileName, @@ -273,7 +284,7 @@ func (p *fileLoader) resolveAutomaticTypeDirectives(containingFileName string) ( } } } - return toParse, typeResolutionsInFile + return toParse, typeResolutionsInFile, typeResolutionsTrace } func (p *fileLoader) addProjectReferenceTasks(singleThreaded bool) { @@ -393,11 +404,13 @@ func (p *fileLoader) resolveTypeReferenceDirectives(t *parseTask) { meta := t.metadata typeResolutionsInFile := make(module.ModeAwareCache[*module.ResolvedTypeReferenceDirective], len(file.TypeReferenceDirectives)) + var typeResolutionsTrace []string for _, ref := range file.TypeReferenceDirectives { redirect := p.projectReferenceFileMapper.getRedirectForResolution(file) resolutionMode := getModeForTypeReferenceDirectiveInFile(ref, file, meta, module.GetCompilerOptionsWithRedirect(p.opts.Config.CompilerOptions(), redirect)) - resolved := p.resolver.ResolveTypeReferenceDirective(ref.FileName, file.FileName(), resolutionMode, redirect) + resolved, trace := p.resolver.ResolveTypeReferenceDirective(ref.FileName, file.FileName(), resolutionMode, redirect) typeResolutionsInFile[module.ModeAwareCacheKey{Name: ref.FileName, Mode: resolutionMode}] = resolved + typeResolutionsTrace = append(typeResolutionsTrace, trace...) if resolved.IsResolved() { t.addSubTask(resolvedRef{ @@ -410,6 +423,7 @@ func (p *fileLoader) resolveTypeReferenceDirectives(t *parseTask) { } t.typeResolutionsInFile = typeResolutionsInFile + t.typeResolutionsTrace = typeResolutionsTrace } const externalHelpersModuleNameText = "tslib" // TODO(jakebailey): dedupe @@ -455,6 +469,7 @@ func (p *fileLoader) resolveImportsAndModuleAugmentations(t *parseTask) { if len(moduleNames) != 0 { resolutionsInFile := make(module.ModeAwareCache[*module.ResolvedModule], len(moduleNames)) + var resolutionsTrace []string for index, entry := range moduleNames { moduleName := entry.Text() @@ -463,8 +478,9 @@ func (p *fileLoader) resolveImportsAndModuleAugmentations(t *parseTask) { } mode := getModeForUsageLocation(file.FileName(), meta, entry, optionsForFile) - resolvedModule := p.resolver.ResolveModuleName(moduleName, file.FileName(), mode, redirect) + resolvedModule, trace := p.resolver.ResolveModuleName(moduleName, file.FileName(), mode, redirect) resolutionsInFile[module.ModeAwareCacheKey{Name: moduleName, Mode: mode}] = resolvedModule + resolutionsTrace = append(resolutionsTrace, trace...) if !resolvedModule.IsResolved() { continue @@ -501,6 +517,7 @@ func (p *fileLoader) resolveImportsAndModuleAugmentations(t *parseTask) { } t.resolutionsInFile = resolutionsInFile + t.resolutionsTrace = resolutionsTrace } } @@ -526,11 +543,13 @@ func (p *fileLoader) pathForLibFile(name string) string { if p.opts.Config.CompilerOptions().LibReplacement.IsTrue() { libraryName := getLibraryNameFromLibFileName(name) resolveFrom := getInferredLibraryNameResolveFrom(p.opts.Config.CompilerOptions(), p.opts.Host.GetCurrentDirectory(), name) - resolution := p.resolver.ResolveModuleName(libraryName, resolveFrom, core.ModuleKindCommonJS, nil) + resolution, trace := p.resolver.ResolveModuleName(libraryName, resolveFrom, core.ModuleKindCommonJS, nil) if resolution.IsResolved() { path = resolution.ResolvedFileName - p.pathForLibFileResolutions.LoadOrStore(p.toPath(resolveFrom), module.ModeAwareCache[*module.ResolvedModule]{ - module.ModeAwareCacheKey{Name: libraryName, Mode: core.ModuleKindCommonJS}: resolution, + p.pathForLibFileResolutions.LoadOrStore(p.toPath(resolveFrom), &libResolution{ + libraryName: libraryName, + resolution: resolution, + trace: trace, }) } } diff --git a/internal/compiler/filesparser.go b/internal/compiler/filesparser.go index de3f2994c3..36ce3910b5 100644 --- a/internal/compiler/filesparser.go +++ b/internal/compiler/filesparser.go @@ -25,7 +25,9 @@ type parseTask struct { metadata ast.SourceFileMetaData resolutionsInFile module.ModeAwareCache[*module.ResolvedModule] + resolutionsTrace []string typeResolutionsInFile module.ModeAwareCache[*module.ResolvedTypeReferenceDirective] + typeResolutionsTrace []string resolutionDiagnostics []*ast.Diagnostic importHelpersImportSpecifier *ast.Node jsxRuntimeImportSpecifier *jsxRuntimeImportSpecifier @@ -98,8 +100,9 @@ func (t *parseTask) redirect(loader *fileLoader, fileName string) { } func (t *parseTask) loadAutomaticTypeDirectives(loader *fileLoader) { - toParseTypeRefs, typeResolutionsInFile := loader.resolveAutomaticTypeDirectives(t.normalizedFilePath) + toParseTypeRefs, typeResolutionsInFile, typeResolutionsTrace := loader.resolveAutomaticTypeDirectives(t.normalizedFilePath) t.typeResolutionsInFile = typeResolutionsInFile + t.typeResolutionsTrace = typeResolutionsTrace for _, typeResolution := range toParseTypeRefs { t.addSubTask(typeResolution, false) } @@ -193,7 +196,7 @@ func (w *filesParser) start(loader *fileLoader, tasks []*parseTask, depth int, i } } -func (w *filesParser) collect(loader *fileLoader, tasks []*parseTask, iterate func(*parseTask)) []tspath.Path { +func (w *filesParser) collect(loader *fileLoader, tasks []*parseTask, iterate func(*parseTask)) { // Mark all tasks we saw as external after the fact. w.tasksByFileName.Range(func(key string, value *queuedParseTask) bool { if value.fromExternalLibrary { @@ -201,22 +204,24 @@ func (w *filesParser) collect(loader *fileLoader, tasks []*parseTask, iterate fu } return true }) - return w.collectWorker(loader, tasks, iterate, collections.Set[*parseTask]{}) + w.collectWorker(loader, tasks, iterate, collections.Set[*parseTask]{}) } -func (w *filesParser) collectWorker(loader *fileLoader, tasks []*parseTask, iterate func(*parseTask), seen collections.Set[*parseTask]) []tspath.Path { - var results []tspath.Path +func (w *filesParser) collectWorker(loader *fileLoader, tasks []*parseTask, iterate func(*parseTask), seen collections.Set[*parseTask]) { for _, task := range tasks { // ensure we only walk each task once - if !task.loaded || seen.Has(task) { + if !task.loaded || !seen.AddIfAbsent(task) { continue } - seen.Add(task) + for _, trace := range task.typeResolutionsTrace { + loader.opts.Host.Trace(trace) + } + for _, trace := range task.resolutionsTrace { + loader.opts.Host.Trace(trace) + } if subTasks := task.subTasks; len(subTasks) > 0 { w.collectWorker(loader, subTasks, iterate, seen) } iterate(task) - results = append(results, loader.toPath(task.FileName())) } - return results } diff --git a/internal/compiler/host.go b/internal/compiler/host.go index d4968bd760..191c4602d4 100644 --- a/internal/compiler/host.go +++ b/internal/compiler/host.go @@ -30,6 +30,7 @@ type compilerHost struct { defaultLibraryPath string extendedConfigCache *collections.SyncMap[tspath.Path, *tsoptions.ExtendedConfigCacheEntry] extendedConfigCacheOnce sync.Once + trace func(msg string) } func NewCachedFSCompilerHost( @@ -37,8 +38,9 @@ func NewCachedFSCompilerHost( fs vfs.FS, defaultLibraryPath string, extendedConfigCache *collections.SyncMap[tspath.Path, *tsoptions.ExtendedConfigCacheEntry], + trace func(msg string), ) CompilerHost { - return NewCompilerHost(currentDirectory, cachedvfs.From(fs), defaultLibraryPath, extendedConfigCache) + return NewCompilerHost(currentDirectory, cachedvfs.From(fs), defaultLibraryPath, extendedConfigCache, trace) } func NewCompilerHost( @@ -46,12 +48,14 @@ func NewCompilerHost( fs vfs.FS, defaultLibraryPath string, extendedConfigCache *collections.SyncMap[tspath.Path, *tsoptions.ExtendedConfigCacheEntry], + trace func(msg string), ) CompilerHost { return &compilerHost{ currentDirectory: currentDirectory, fs: fs, defaultLibraryPath: defaultLibraryPath, extendedConfigCache: extendedConfigCache, + trace: trace, } } @@ -68,7 +72,7 @@ func (h *compilerHost) GetCurrentDirectory() string { } func (h *compilerHost) Trace(msg string) { - //!!! TODO: implement + h.trace(msg) } func (h *compilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast.SourceFile { diff --git a/internal/compiler/program_test.go b/internal/compiler/program_test.go index e6350e8375..113725363d 100644 --- a/internal/compiler/program_test.go +++ b/internal/compiler/program_test.go @@ -240,7 +240,7 @@ func TestProgram(t *testing.T) { CompilerOptions: &opts, }, }, - Host: NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil), + Host: NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil, func(msg string) {}), }) actualFiles := []string{} @@ -277,7 +277,7 @@ func BenchmarkNewProgram(b *testing.B) { CompilerOptions: &opts, }, }, - Host: NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil), + Host: NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil, func(msg string) {}), } for b.Loop() { @@ -294,7 +294,7 @@ func BenchmarkNewProgram(b *testing.B) { fs := osvfs.FS() fs = bundled.WrapFS(fs) - host := NewCompilerHost(rootPath, fs, bundled.LibPath(), nil) + host := NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, func(msg string) {}) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile(tspath.CombinePaths(rootPath, "tsconfig.json"), nil, host, nil) assert.Equal(b, len(errors), 0, "Expected no errors in parsed command line") diff --git a/internal/compiler/projectreferencedtsfakinghost.go b/internal/compiler/projectreferencedtsfakinghost.go index 9c03e8414f..3bac411dad 100644 --- a/internal/compiler/projectreferencedtsfakinghost.go +++ b/internal/compiler/projectreferencedtsfakinghost.go @@ -41,11 +41,6 @@ func (h *projectReferenceDtsFakingHost) GetCurrentDirectory() string { return h.host.GetCurrentDirectory() } -// Trace implements module.ResolutionHost. -func (h *projectReferenceDtsFakingHost) Trace(msg string) { - h.host.Trace(msg) -} - type projectReferenceDtsFakingVfs struct { projectReferenceFileMapper *projectReferenceFileMapper dtsDirectories collections.Set[tspath.Path] diff --git a/internal/execute/tsc.go b/internal/execute/tsc.go index af97431c32..8d486f7604 100644 --- a/internal/execute/tsc.go +++ b/internal/execute/tsc.go @@ -223,6 +223,12 @@ func findConfigFile(searchPath string, fileExists func(string) bool, configName return result } +func getTraceFromSys(sys System) func(msg string) { + return func(msg string) { + fmt.Fprintln(sys.Writer(), msg) + } +} + func performIncrementalCompilation( sys System, config *tsoptions.ParsedCommandLine, @@ -231,7 +237,7 @@ func performIncrementalCompilation( configTime time.Duration, testing bool, ) CommandLineResult { - host := compiler.NewCachedFSCompilerHost(sys.GetCurrentDirectory(), sys.FS(), sys.DefaultLibraryPath(), extendedConfigCache) + host := compiler.NewCachedFSCompilerHost(sys.GetCurrentDirectory(), sys.FS(), sys.DefaultLibraryPath(), extendedConfigCache, getTraceFromSys(sys)) buildInfoReadStart := sys.Now() oldProgram := incremental.ReadBuildInfoProgram(config, incremental.NewBuildInfoReader(host)) buildInfoReadTime := sys.Now().Sub(buildInfoReadStart) @@ -270,7 +276,7 @@ func performCompilation( extendedConfigCache *collections.SyncMap[tspath.Path, *tsoptions.ExtendedConfigCacheEntry], configTime time.Duration, ) CommandLineResult { - host := compiler.NewCachedFSCompilerHost(sys.GetCurrentDirectory(), sys.FS(), sys.DefaultLibraryPath(), extendedConfigCache) + host := compiler.NewCachedFSCompilerHost(sys.GetCurrentDirectory(), sys.FS(), sys.DefaultLibraryPath(), extendedConfigCache, getTraceFromSys(sys)) // todo: cache, statistics, tracing parseStart := sys.Now() program := compiler.NewProgram(compiler.ProgramOptions{ diff --git a/internal/execute/watcher.go b/internal/execute/watcher.go index 223bdc73fc..9190a599f1 100644 --- a/internal/execute/watcher.go +++ b/internal/execute/watcher.go @@ -42,7 +42,7 @@ func createWatcher(sys System, configParseResult *tsoptions.ParsedCommandLine, r } func (w *Watcher) start() { - w.host = compiler.NewCompilerHost(w.sys.GetCurrentDirectory(), w.sys.FS(), w.sys.DefaultLibraryPath(), nil) + w.host = compiler.NewCompilerHost(w.sys.GetCurrentDirectory(), w.sys.FS(), w.sys.DefaultLibraryPath(), nil, getTraceFromSys(w.sys)) w.program = incremental.ReadBuildInfoProgram(w.options, incremental.NewBuildInfoReader(w.host)) if !w.testing { @@ -109,7 +109,7 @@ func (w *Watcher) hasErrorsInTsConfig() bool { w.configModified = true } w.options = configParseResult - w.host = compiler.NewCompilerHost(w.sys.GetCurrentDirectory(), w.sys.FS(), w.sys.DefaultLibraryPath(), &extendedConfigCache) + w.host = compiler.NewCompilerHost(w.sys.GetCurrentDirectory(), w.sys.FS(), w.sys.DefaultLibraryPath(), &extendedConfigCache, getTraceFromSys(w.sys)) } return false } diff --git a/internal/module/resolver.go b/internal/module/resolver.go index 6071d8535a..45f8a8523c 100644 --- a/internal/module/resolver.go +++ b/internal/module/resolver.go @@ -40,8 +40,26 @@ func unresolved() *resolved { type resolutionKindSpecificLoader = func(extensions extensions, candidate string, onlyRecordFailures bool) *resolved +type tracer struct { + traces []string +} + +func (t *tracer) write(msg string) { + if t != nil { + t.traces = append(t.traces, msg) + } +} + +func (t *tracer) getTraces() []string { + if t != nil { + return t.traces + } + return nil +} + type resolutionState struct { resolver *Resolver + tracer *tracer // request fields name string @@ -69,12 +87,14 @@ func newResolutionState( compilerOptions *core.CompilerOptions, redirectedReference ResolvedProjectReference, resolver *Resolver, + traceBuilder *tracer, ) *resolutionState { state := &resolutionState{ name: name, containingDirectory: containingDirectory, compilerOptions: GetCompilerOptionsWithRedirect(compilerOptions, redirectedReference), resolver: resolver, + tracer: traceBuilder, } if isTypeReferenceDirective { @@ -139,8 +159,11 @@ func NewResolver( } } -func (r *Resolver) traceEnabled() bool { - return r.compilerOptions.TraceResolution == core.TSTrue +func (r *Resolver) newTraceBuilder() *tracer { + if r.compilerOptions.TraceResolution == core.TSTrue { + return &tracer{} + } + return nil } func (r *Resolver) GetPackageScopeForPath(directory string) *packagejson.InfoCacheEntry { @@ -160,9 +183,9 @@ func (r *Resolver) GetPackageJsonScopeIfApplicable(path string) *packagejson.Inf return nil } -func (r *Resolver) traceResolutionUsingProjectReference(redirectedReference ResolvedProjectReference) { +func (r *tracer) traceResolutionUsingProjectReference(redirectedReference ResolvedProjectReference) { if redirectedReference != nil && redirectedReference.CompilerOptions() != nil { - r.host.Trace(diagnostics.Using_compiler_options_of_project_reference_redirect_0.Format(redirectedReference.ConfigName())) + r.write(diagnostics.Using_compiler_options_of_project_reference_redirect_0.Format(redirectedReference.ConfigName())) } } @@ -171,73 +194,73 @@ func (r *Resolver) ResolveTypeReferenceDirective( containingFile string, resolutionMode core.ResolutionMode, redirectedReference ResolvedProjectReference, -) *ResolvedTypeReferenceDirective { - traceEnabled := r.traceEnabled() +) (*ResolvedTypeReferenceDirective, []string) { + traceBuilder := r.newTraceBuilder() compilerOptions := GetCompilerOptionsWithRedirect(r.compilerOptions, redirectedReference) containingDirectory := tspath.GetDirectoryPath(containingFile) typeRoots, fromConfig := compilerOptions.GetEffectiveTypeRoots(r.host.GetCurrentDirectory()) - if traceEnabled { - r.host.Trace(diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2.Format(typeReferenceDirectiveName, containingFile, strings.Join(typeRoots, ","))) - r.traceResolutionUsingProjectReference(redirectedReference) + if traceBuilder != nil { + traceBuilder.write(diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2.Format(typeReferenceDirectiveName, containingFile, strings.Join(typeRoots, ","))) + traceBuilder.traceResolutionUsingProjectReference(redirectedReference) } - state := newResolutionState(typeReferenceDirectiveName, containingDirectory, true /*isTypeReferenceDirective*/, resolutionMode, compilerOptions, redirectedReference, r) + state := newResolutionState(typeReferenceDirectiveName, containingDirectory, true /*isTypeReferenceDirective*/, resolutionMode, compilerOptions, redirectedReference, r, traceBuilder) result := state.resolveTypeReferenceDirective(typeRoots, fromConfig, strings.HasSuffix(containingFile, InferredTypesContainingFile)) - if traceEnabled { - r.traceTypeReferenceDirectiveResult(typeReferenceDirectiveName, result) + if traceBuilder != nil { + traceBuilder.traceTypeReferenceDirectiveResult(typeReferenceDirectiveName, result) } - return result + return result, traceBuilder.getTraces() } -func (r *Resolver) ResolveModuleName(moduleName string, containingFile string, resolutionMode core.ResolutionMode, redirectedReference ResolvedProjectReference) *ResolvedModule { - traceEnabled := r.traceEnabled() +func (r *Resolver) ResolveModuleName(moduleName string, containingFile string, resolutionMode core.ResolutionMode, redirectedReference ResolvedProjectReference) (*ResolvedModule, []string) { + traceBuilder := r.newTraceBuilder() compilerOptions := GetCompilerOptionsWithRedirect(r.compilerOptions, redirectedReference) - if traceEnabled { - r.host.Trace(diagnostics.Resolving_module_0_from_1.Format(moduleName, containingFile)) - r.traceResolutionUsingProjectReference(redirectedReference) + if traceBuilder != nil { + traceBuilder.write(diagnostics.Resolving_module_0_from_1.Format(moduleName, containingFile)) + traceBuilder.traceResolutionUsingProjectReference(redirectedReference) } containingDirectory := tspath.GetDirectoryPath(containingFile) moduleResolution := compilerOptions.ModuleResolution if moduleResolution == core.ModuleResolutionKindUnknown { moduleResolution = compilerOptions.GetModuleResolutionKind() - if traceEnabled { - r.host.Trace(diagnostics.Module_resolution_kind_is_not_specified_using_0.Format(moduleResolution.String())) + if traceBuilder != nil { + traceBuilder.write(diagnostics.Module_resolution_kind_is_not_specified_using_0.Format(moduleResolution.String())) } } else { - if traceEnabled { - r.host.Trace(diagnostics.Explicitly_specified_module_resolution_kind_Colon_0.Format(moduleResolution.String())) + if traceBuilder != nil { + traceBuilder.write(diagnostics.Explicitly_specified_module_resolution_kind_Colon_0.Format(moduleResolution.String())) } } var result *ResolvedModule switch moduleResolution { case core.ModuleResolutionKindNode16, core.ModuleResolutionKindNodeNext, core.ModuleResolutionKindBundler: - state := newResolutionState(moduleName, containingDirectory, false /*isTypeReferenceDirective*/, resolutionMode, compilerOptions, redirectedReference, r) + state := newResolutionState(moduleName, containingDirectory, false /*isTypeReferenceDirective*/, resolutionMode, compilerOptions, redirectedReference, r, traceBuilder) result = state.resolveNodeLike() default: panic(fmt.Sprintf("Unexpected moduleResolution: %d", moduleResolution)) } - if traceEnabled { + if traceBuilder != nil { if result.IsResolved() { if result.PackageId.Name != "" { - r.host.Trace(diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2.Format(moduleName, result.ResolvedFileName, result.PackageId.String())) + traceBuilder.write(diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2.Format(moduleName, result.ResolvedFileName, result.PackageId.String())) } else { - r.host.Trace(diagnostics.Module_name_0_was_successfully_resolved_to_1.Format(moduleName, result.ResolvedFileName)) + traceBuilder.write(diagnostics.Module_name_0_was_successfully_resolved_to_1.Format(moduleName, result.ResolvedFileName)) } } else { - r.host.Trace(diagnostics.Module_name_0_was_not_resolved.Format(moduleName)) + traceBuilder.write(diagnostics.Module_name_0_was_not_resolved.Format(moduleName)) } } - return r.tryResolveFromTypingsLocation(moduleName, containingDirectory, result) + return r.tryResolveFromTypingsLocation(moduleName, containingDirectory, result, traceBuilder), traceBuilder.getTraces() } -func (r *Resolver) tryResolveFromTypingsLocation(moduleName string, containingDirectory string, originalResult *ResolvedModule) *ResolvedModule { +func (r *Resolver) tryResolveFromTypingsLocation(moduleName string, containingDirectory string, originalResult *ResolvedModule, traceBuilder *tracer) *ResolvedModule { if r.typingsLocation == "" || tspath.IsExternalModuleNameRelative(moduleName) || (originalResult.ResolvedFileName != "" && tspath.ExtensionIsOneOf(originalResult.Extension, tspath.SupportedTSExtensionsWithJsonFlat)) { @@ -252,9 +275,10 @@ func (r *Resolver) tryResolveFromTypingsLocation(moduleName string, containingDi r.compilerOptions, nil, // redirectedReference, r, + traceBuilder, ) - if r.traceEnabled() { - r.host.Trace(diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2.Format(r.projectName, moduleName, r.typingsLocation)) + if traceBuilder != nil { + traceBuilder.write(diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2.Format(r.projectName, moduleName, r.typingsLocation)) } globalResolved := state.loadModuleFromImmediateNodeModulesDirectory(extensionsDeclaration, r.typingsLocation, false) if globalResolved == nil { @@ -269,24 +293,24 @@ func (r *Resolver) tryResolveFromTypingsLocation(moduleName string, containingDi func (r *Resolver) resolveConfig(moduleName string, containingFile string) *ResolvedModule { containingDirectory := tspath.GetDirectoryPath(containingFile) - state := newResolutionState(moduleName, containingDirectory, false /*isTypeReferenceDirective*/, core.ModuleKindCommonJS, r.compilerOptions, nil, r) + state := newResolutionState(moduleName, containingDirectory, false /*isTypeReferenceDirective*/, core.ModuleKindCommonJS, r.compilerOptions, nil, r, nil) state.isConfigLookup = true state.extensions = extensionsJson return state.resolveNodeLike() } -func (r *Resolver) traceTypeReferenceDirectiveResult(typeReferenceDirectiveName string, result *ResolvedTypeReferenceDirective) { +func (r *tracer) traceTypeReferenceDirectiveResult(typeReferenceDirectiveName string, result *ResolvedTypeReferenceDirective) { if !result.IsResolved() { - r.host.Trace(diagnostics.Type_reference_directive_0_was_not_resolved.Format(typeReferenceDirectiveName)) + r.write(diagnostics.Type_reference_directive_0_was_not_resolved.Format(typeReferenceDirectiveName)) } else if result.PackageId.Name != "" { - r.host.Trace(diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3.Format( + r.write(diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3.Format( typeReferenceDirectiveName, result.ResolvedFileName, result.PackageId.String(), result.Primary, )) } else { - r.host.Trace(diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2.Format( + r.write(diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2.Format( typeReferenceDirectiveName, result.ResolvedFileName, result.Primary, @@ -297,14 +321,14 @@ func (r *Resolver) traceTypeReferenceDirectiveResult(typeReferenceDirectiveName func (r *resolutionState) resolveTypeReferenceDirective(typeRoots []string, fromConfig bool, fromInferredTypesContainingFile bool) *ResolvedTypeReferenceDirective { // Primary lookup if len(typeRoots) > 0 { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Resolving_with_primary_search_path_0.Format(strings.Join(typeRoots, ", "))) + if r.tracer != nil { + r.tracer.write(diagnostics.Resolving_with_primary_search_path_0.Format(strings.Join(typeRoots, ", "))) } for _, typeRoot := range typeRoots { candidate := r.getCandidateFromTypeRoot(typeRoot) directoryExists := r.resolver.host.FS().DirectoryExists(candidate) - if !directoryExists && r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(typeRoot)) + if !directoryExists && r.tracer != nil { + r.tracer.write(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(typeRoot)) } if fromConfig { // Custom typeRoots resolve as file or directory just like we do modules @@ -320,15 +344,15 @@ func (r *resolutionState) resolveTypeReferenceDirective(typeRoots []string, from return r.createResolvedTypeReferenceDirective(resolvedFromDirectory, true /*primary*/) } } - } else if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths.Format()) + } else if r.tracer != nil { + r.tracer.write(diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths.Format()) } // Secondary lookup var resolved *resolved if !fromConfig || !fromInferredTypesContainingFile { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Looking_up_in_node_modules_folder_initial_location_0.Format(r.containingDirectory)) + if r.tracer != nil { + r.tracer.write(diagnostics.Looking_up_in_node_modules_folder_initial_location_0.Format(r.containingDirectory)) } if !tspath.IsExternalModuleNameRelative(r.name) { resolved = r.loadModuleFromNearestNodeModulesDirectory(false /*typesScopeOnly*/) @@ -336,8 +360,8 @@ func (r *resolutionState) resolveTypeReferenceDirective(typeRoots []string, from candidate := normalizePathForCJSResolution(r.containingDirectory, r.name) resolved = r.nodeLoadModuleByRelativeName(extensionsDeclaration, candidate, false /*onlyRecordFailures*/, true /*considerPackageJson*/) } - } else if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder.Format()) + } else if r.tracer != nil { + r.tracer.write(diagnostics.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder.Format()) } return r.createResolvedTypeReferenceDirective(resolved, false /*primary*/) } @@ -352,8 +376,8 @@ func (r *resolutionState) getCandidateFromTypeRoot(typeRoot string) string { func (r *resolutionState) mangleScopedPackageName(name string) string { mangled := MangleScopedPackageName(name) - if r.resolver.traceEnabled() && mangled != name { - r.resolver.host.Trace(diagnostics.Scoped_package_detected_looking_in_0.Format(mangled)) + if r.tracer != nil && mangled != name { + r.tracer.write(diagnostics.Scoped_package_detected_looking_in_0.Format(mangled)) } return mangled } @@ -373,12 +397,12 @@ func (r *resolutionState) getPackageScopeForPath(directory string) *packagejson. } func (r *resolutionState) resolveNodeLike() *ResolvedModule { - if r.resolver.traceEnabled() { + if r.tracer != nil { conditions := strings.Join(core.Map(r.conditions, func(c string) string { return `'` + c + `'` }), ", ") if r.esmMode { - r.resolver.host.Trace(diagnostics.Resolving_in_0_mode_with_conditions_1.Format("ESM", conditions)) + r.tracer.write(diagnostics.Resolving_in_0_mode_with_conditions_1.Format("ESM", conditions)) } else { - r.resolver.host.Trace(diagnostics.Resolving_in_0_mode_with_conditions_1.Format("CJS", conditions)) + r.tracer.write(diagnostics.Resolving_in_0_mode_with_conditions_1.Format("CJS", conditions)) } } result := r.resolveNodeLikeWorker() @@ -391,8 +415,8 @@ func (r *resolutionState) resolveNodeLike() *ResolvedModule { result.IsExternalLibraryImport && !extensionIsOk(extensionsTypeScript|extensionsDeclaration, result.Extension) && slices.Contains(r.conditions, "import") { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update.Format()) + if r.tracer != nil { + r.tracer.write(diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update.Format()) } r.features = r.features & ^NodeResolutionFeaturesExports r.extensions = r.extensions & (extensionsTypeScript | extensionsDeclaration) @@ -422,13 +446,13 @@ func (r *resolutionState) resolveNodeLikeWorker() *ResolvedModule { } } if strings.Contains(r.name, ":") { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1.Format(r.name, r.extensions.String())) + if r.tracer != nil { + r.tracer.write(diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1.Format(r.name, r.extensions.String())) } return r.createResolvedModule(nil, false) } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1.Format(r.name, r.extensions.String())) + if r.tracer != nil { + r.tracer.write(diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1.Format(r.name, r.extensions.String())) } if resolved := r.loadModuleFromNearestNodeModulesDirectory(false /*typesScopeOnly*/); !resolved.shouldContinueSearching() { return r.createResolvedModuleHandlingSymlink(resolved) @@ -499,24 +523,24 @@ func (r *resolutionState) loadModuleFromSelfNameReference() *resolved { func (r *resolutionState) loadModuleFromImports() *resolved { if r.name == "#" || strings.HasPrefix(r.name, "#/") { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions.Format(r.name)) + if r.tracer != nil { + r.tracer.write(diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions.Format(r.name)) } return continueSearching() } directoryPath := tspath.GetNormalizedAbsolutePath(r.containingDirectory, r.resolver.host.GetCurrentDirectory()) scope := r.getPackageScopeForPath(directoryPath) if !scope.Exists() { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve.Format(directoryPath)) + if r.tracer != nil { + r.tracer.write(diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve.Format(directoryPath)) } return continueSearching() } if scope.Contents.Imports.Type != packagejson.JSONValueTypeObject { // !!! Old compiler only checks for undefined, but then assumes `imports` is an object if present. // Maybe should have a new diagnostic for imports of an invalid type. Also, array should be handled? - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_no_imports_defined.Format(scope.PackageDirectory)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_no_imports_defined.Format(scope.PackageDirectory)) } return continueSearching() } @@ -525,8 +549,8 @@ func (r *resolutionState) loadModuleFromImports() *resolved { return result } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1.Format(r.name, scope.PackageDirectory)) + if r.tracer != nil { + r.tracer.write(diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1.Format(r.name, scope.PackageDirectory)) } return continueSearching() } @@ -558,8 +582,8 @@ func (r *resolutionState) loadModuleFromExports(packageInfo *packagejson.InfoCac } } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1.Format(subpath, packageInfo.PackageDirectory)) + if r.tracer != nil { + r.tracer.write(diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1.Format(subpath, packageInfo.PackageDirectory)) } return continueSearching() } @@ -610,8 +634,8 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio case packagejson.JSONValueTypeString: targetString, _ := target.Value.(string) if !isPattern && len(subpath) > 0 && !strings.HasSuffix(targetString, "/") { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } @@ -621,9 +645,9 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio if isPattern { combinedLookup = strings.ReplaceAll(targetString, "*", subpath) } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Using_0_subpath_1_with_target_2.Format("imports", key, combinedLookup)) - r.resolver.host.Trace(diagnostics.Resolving_module_0_from_1.Format(combinedLookup, scope.PackageDirectory+"/")) + if r.tracer != nil { + r.tracer.write(diagnostics.Using_0_subpath_1_with_target_2.Format("imports", key, combinedLookup)) + r.tracer.write(diagnostics.Resolving_module_0_from_1.Format(combinedLookup, scope.PackageDirectory+"/")) } name, containingDirectory := r.name, r.containingDirectory r.name, r.containingDirectory = combinedLookup, scope.PackageDirectory+"/" @@ -641,8 +665,8 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio } return continueSearching() } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } @@ -654,8 +678,8 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio } partsAfterFirst := parts[1:] if slices.Contains(partsAfterFirst, "..") || slices.Contains(partsAfterFirst, ".") || slices.Contains(partsAfterFirst, "node_modules") { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } @@ -664,20 +688,20 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio // to be in the business of validating everyone's import and export map correctness. subpathParts := tspath.GetPathComponents(subpath, "") if slices.Contains(subpathParts, "..") || slices.Contains(subpathParts, ".") || slices.Contains(subpathParts, "node_modules") { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } - if r.resolver.traceEnabled() { + if r.tracer != nil { var messageTarget string if isPattern { messageTarget = strings.ReplaceAll(targetString, "*", subpath) } else { messageTarget = targetString + subpath } - r.resolver.host.Trace(diagnostics.Using_0_subpath_1_with_target_2.Format(core.IfElse(isImports, "imports", "exports"), key, messageTarget)) + r.tracer.write(diagnostics.Using_0_subpath_1_with_target_2.Format(core.IfElse(isImports, "imports", "exports"), key, messageTarget)) } var finalPath string if isPattern { @@ -695,40 +719,40 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio return continueSearching() case packagejson.JSONValueTypeObject: - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Entering_conditional_exports.Format()) + if r.tracer != nil { + r.tracer.write(diagnostics.Entering_conditional_exports.Format()) } for condition := range target.AsObject().Keys() { if r.conditionMatches(condition) { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Matched_0_condition_1.Format(core.IfElse(isImports, "imports", "exports"), condition)) + if r.tracer != nil { + r.tracer.write(diagnostics.Matched_0_condition_1.Format(core.IfElse(isImports, "imports", "exports"), condition)) } subTarget, _ := target.AsObject().Get(condition) if result := r.loadModuleFromTargetExportOrImport(extensions, moduleName, scope, isImports, subTarget, subpath, isPattern, key); !result.shouldContinueSearching() { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Resolved_under_condition_0.Format(condition)) + if r.tracer != nil { + r.tracer.write(diagnostics.Resolved_under_condition_0.Format(condition)) } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Exiting_conditional_exports.Format()) + if r.tracer != nil { + r.tracer.write(diagnostics.Exiting_conditional_exports.Format()) } return result - } else if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Failed_to_resolve_under_condition_0.Format(condition)) + } else if r.tracer != nil { + r.tracer.write(diagnostics.Failed_to_resolve_under_condition_0.Format(condition)) } } else { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Saw_non_matching_condition_0.Format(condition)) + if r.tracer != nil { + r.tracer.write(diagnostics.Saw_non_matching_condition_0.Format(condition)) } } } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Exiting_conditional_exports.Format()) + if r.tracer != nil { + r.tracer.write(diagnostics.Exiting_conditional_exports.Format()) } return continueSearching() case packagejson.JSONValueTypeArray: if len(target.AsArray()) == 0 { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } @@ -739,14 +763,14 @@ func (r *resolutionState) loadModuleFromTargetExportOrImport(extensions extensio } case packagejson.JSONValueTypeNull: - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_explicitly_maps_specifier_1_to_null.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_explicitly_maps_specifier_1_to_null.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_scope_0_has_invalid_type_for_target_of_specifier_1.Format(scope.PackageDirectory, moduleName)) } return continueSearching() } @@ -865,8 +889,8 @@ func (r *resolutionState) loadModuleFromNearestNodeModulesDirectory(typesScopeOn secondaryExtensions := r.extensions & ^(extensionsTypeScript | extensionsDeclaration) // (1) if priorityExtensions != 0 { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0.Format(priorityExtensions.String())) + if r.tracer != nil { + r.tracer.write(diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0.Format(priorityExtensions.String())) } if result := r.loadModuleFromNearestNodeModulesDirectoryWorker(priorityExtensions, mode, typesScopeOnly); !result.shouldContinueSearching() { return result @@ -874,8 +898,8 @@ func (r *resolutionState) loadModuleFromNearestNodeModulesDirectory(typesScopeOn } // (2) if secondaryExtensions != 0 && !typesScopeOnly { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0.Format(secondaryExtensions.String())) + if r.tracer != nil { + r.tracer.write(diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0.Format(secondaryExtensions.String())) } return r.loadModuleFromNearestNodeModulesDirectoryWorker(secondaryExtensions, mode, typesScopeOnly) } @@ -900,8 +924,8 @@ func (r *resolutionState) loadModuleFromNearestNodeModulesDirectoryWorker(ext ex func (r *resolutionState) loadModuleFromImmediateNodeModulesDirectory(extensions extensions, directory string, typesScopeOnly bool) *resolved { nodeModulesFolder := tspath.CombinePaths(directory, "node_modules") nodeModulesFolderExists := r.resolver.host.FS().DirectoryExists(nodeModulesFolder) - if !nodeModulesFolderExists && r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(nodeModulesFolder)) + if !nodeModulesFolderExists && r.tracer != nil { + r.tracer.write(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(nodeModulesFolder)) } if !typesScopeOnly { @@ -913,8 +937,8 @@ func (r *resolutionState) loadModuleFromImmediateNodeModulesDirectory(extensions if extensions&extensionsDeclaration != 0 { nodeModulesAtTypes := tspath.CombinePaths(nodeModulesFolder, "@types") nodeModulesAtTypesExists := nodeModulesFolderExists && r.resolver.host.FS().DirectoryExists(nodeModulesAtTypes) - if !nodeModulesAtTypesExists && r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(nodeModulesAtTypes)) + if !nodeModulesAtTypesExists && r.tracer != nil { + r.tracer.write(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(nodeModulesAtTypes)) } return r.loadModuleFromSpecificNodeModulesDirectory(extensionsDeclaration, r.mangleScopedPackageName(r.name), nodeModulesAtTypes, nodeModulesAtTypesExists) } @@ -990,8 +1014,8 @@ func (r *resolutionState) loadModuleFromSpecificNodeModulesDirectory(ext extensi if rest != "" { versionPaths := packageInfo.Contents.GetVersionPaths(r.getTraceFunc()) if versionPaths.Exists() { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2.Format(versionPaths.Version, core.Version(), rest)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2.Format(versionPaths.Version, core.Version(), rest)) } packageDirectoryExists := nodeModulesDirectoryExists && r.resolver.host.FS().DirectoryExists(packageDirectory) pathPatterns := TryParsePatterns(versionPaths.GetPaths()) @@ -1086,8 +1110,8 @@ func (r *resolutionState) tryLoadModuleUsingOptionalResolutionSettings() *resolv func (r *resolutionState) tryLoadModuleUsingPathsIfEligible() *resolved { if r.compilerOptions.Paths.Size() > 0 && !tspath.PathIsRelative(r.name) { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0.Format(r.name)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0.Format(r.name)) } } else { return continueSearching() @@ -1110,14 +1134,14 @@ func (r *resolutionState) tryLoadModuleUsingPathsIfEligible() *resolved { func (r *resolutionState) tryLoadModuleUsingPaths(extensions extensions, moduleName string, containingDirectory string, paths *collections.OrderedMap[string, []string], pathPatterns *ParsedPatterns, loader resolutionKindSpecificLoader, onlyRecordFailures bool) *resolved { if matchedPattern := MatchPatternOrExact(pathPatterns, moduleName); matchedPattern.IsValid() { matchedStar := matchedPattern.MatchedText(moduleName) - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Module_name_0_matched_pattern_1.Format(moduleName, matchedPattern.Text)) + if r.tracer != nil { + r.tracer.write(diagnostics.Module_name_0_matched_pattern_1.Format(moduleName, matchedPattern.Text)) } for _, subst := range paths.GetOrZero(matchedPattern.Text) { path := strings.Replace(subst, "*", matchedStar, 1) candidate := tspath.NormalizePath(tspath.CombinePaths(containingDirectory, path)) - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Trying_substitution_0_candidate_module_location_Colon_1.Format(subst, path)) + if r.tracer != nil { + r.tracer.write(diagnostics.Trying_substitution_0_candidate_module_location_Colon_1.Format(subst, path)) } // A path mapping may have an extension if extension := tspath.TryGetExtensionFromPath(subst); extension != "" { @@ -1137,15 +1161,15 @@ func (r *resolutionState) tryLoadModuleUsingPaths(extensions extensions, moduleN } func (r *resolutionState) nodeLoadModuleByRelativeName(extensions extensions, candidate string, onlyRecordFailures bool, considerPackageJson bool) *resolved { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1.Format(candidate, extensions.String())) + if r.tracer != nil { + r.tracer.write(diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1.Format(candidate, extensions.String())) } if !tspath.HasTrailingDirectorySeparator(candidate) { if !onlyRecordFailures { parentOfCandidate := tspath.GetDirectoryPath(candidate) if !r.resolver.host.FS().DirectoryExists(parentOfCandidate) { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(parentOfCandidate)) + if r.tracer != nil { + r.tracer.write(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(parentOfCandidate)) } onlyRecordFailures = true } @@ -1163,8 +1187,8 @@ func (r *resolutionState) nodeLoadModuleByRelativeName(extensions extensions, ca if !onlyRecordFailures { candidateExists := r.resolver.host.FS().DirectoryExists(candidate) if !candidateExists { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(candidate)) + if r.tracer != nil { + r.tracer.write(diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it.Format(candidate)) } onlyRecordFailures = true } @@ -1205,8 +1229,8 @@ func (r *resolutionState) loadModuleFromFileNoImplicitExtensions(extensions exte } extension := candidate[len(extensionless):] - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.File_name_0_has_a_1_extension_stripping_it.Format(candidate, extension)) + if r.tracer != nil { + r.tracer.write(diagnostics.File_name_0_has_a_1_extension_stripping_it.Format(candidate, extension)) } return r.tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures) } @@ -1359,12 +1383,12 @@ func (r *resolutionState) tryFile(fileName string, onlyRecordFailures bool) (str func (r *resolutionState) tryFileLookup(fileName string, onlyRecordFailures bool) bool { if !onlyRecordFailures { if r.resolver.host.FS().FileExists(fileName) { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.File_0_exists_use_it_as_a_name_resolution_result.Format(fileName)) + if r.tracer != nil { + r.tracer.write(diagnostics.File_0_exists_use_it_as_a_name_resolution_result.Format(fileName)) } return true - } else if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.File_0_does_not_exist.Format(fileName)) + } else if r.tracer != nil { + r.tracer.write(diagnostics.File_0_does_not_exist.Format(fileName)) } } r.failedLookupLocations = append(r.failedLookupLocations, fileName) @@ -1435,8 +1459,8 @@ func (r *resolutionState) loadNodeModuleFromDirectoryWorker(ext extensions, cand } else { moduleName = tspath.GetRelativePathFromDirectory(candidate, indexPath, tspath.ComparePathsOptions{}) } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2.Format(versionPaths.Version, core.Version(), moduleName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2.Format(versionPaths.Version, core.Version(), moduleName)) } pathPatterns := TryParsePatterns(versionPaths.GetPaths()) if result := r.tryLoadModuleUsingPaths(ext, moduleName, candidate, versionPaths.GetPaths(), pathPatterns, loader, onlyRecordFailuresForPackageFile); !result.shouldContinueSearching() { @@ -1523,8 +1547,8 @@ func (r *resolutionState) getPackageJsonInfo(packageDirectory string, onlyRecord if existing := r.resolver.packageJsonInfoCache.Get(packageJsonPath); existing != nil { if existing.Contents != nil { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.File_0_exists_according_to_earlier_cached_lookups.Format(packageJsonPath)) + if r.tracer != nil { + r.tracer.write(diagnostics.File_0_exists_according_to_earlier_cached_lookups.Format(packageJsonPath)) } r.affectingLocations = append(r.affectingLocations, packageJsonPath) if existing.PackageDirectory == packageDirectory { @@ -1537,8 +1561,8 @@ func (r *resolutionState) getPackageJsonInfo(packageDirectory string, onlyRecord Contents: existing.Contents, } } else { - if existing.DirectoryExists && r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups.Format(packageJsonPath)) + if existing.DirectoryExists && r.tracer != nil { + r.tracer.write(diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups.Format(packageJsonPath)) } r.failedLookupLocations = append(r.failedLookupLocations, packageJsonPath) return nil @@ -1550,8 +1574,8 @@ func (r *resolutionState) getPackageJsonInfo(packageDirectory string, onlyRecord // Ignore error contents, _ := r.resolver.host.FS().ReadFile(packageJsonPath) packageJsonContent, _ := packagejson.Parse([]byte(contents)) - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Found_package_json_at_0.Format(packageJsonPath)) + if r.tracer != nil { + r.tracer.write(diagnostics.Found_package_json_at_0.Format(packageJsonPath)) } result := &packagejson.InfoCacheEntry{ PackageDirectory: packageDirectory, @@ -1566,8 +1590,8 @@ func (r *resolutionState) getPackageJsonInfo(packageDirectory string, onlyRecord r.affectingLocations = append(r.affectingLocations, packageJsonPath) return result } else { - if directoryExists && r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.File_0_does_not_exist.Format(packageJsonPath)) + if directoryExists && r.tracer != nil { + r.tracer.write(diagnostics.File_0_does_not_exist.Format(packageJsonPath)) } if !r.resolver.packageJsonInfoCache.IsReadonly { r.resolver.packageJsonInfoCache.Set(packageJsonPath, &packagejson.InfoCacheEntry{ @@ -1607,8 +1631,8 @@ func (r *resolutionState) readPackageJsonPeerDependencies(packageJsonInfo *packa if !ok || len(peerDependencies.Value) == 0 { return "" } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_has_a_peerDependencies_field.Message()) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_has_a_peerDependencies_field.Message()) } packageDirectory := r.realPath(packageJsonInfo.PackageDirectory) nodeModules := packageDirectory[:strings.LastIndex(packageDirectory, "/node_modules")+len("/node_modules")] + "/" @@ -1621,11 +1645,11 @@ func (r *resolutionState) readPackageJsonPeerDependencies(packageJsonInfo *packa builder.WriteString(name) builder.WriteString("@") builder.WriteString(version) - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Found_peerDependency_0_with_1_version.Format(name, version)) + if r.tracer != nil { + r.tracer.write(diagnostics.Found_peerDependency_0_with_1_version.Format(name, version)) } - } else if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Failed_to_find_peerDependency_0.Format(name)) + } else if r.tracer != nil { + r.tracer.write(diagnostics.Failed_to_find_peerDependency_0.Format(name)) } } return builder.String() @@ -1633,8 +1657,8 @@ func (r *resolutionState) readPackageJsonPeerDependencies(packageJsonInfo *packa func (r *resolutionState) realPath(path string) string { rp := tspath.NormalizePath(r.resolver.host.FS().Realpath(path)) - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Resolving_real_path_for_0_result_1.Format(path, rp)) + if r.tracer != nil { + r.tracer.write(diagnostics.Resolving_real_path_for_0_result_1.Format(path, rp)) } return rp } @@ -1644,12 +1668,12 @@ func (r *resolutionState) validatePackageJSONField(fieldName string, field packa if field.IsValid() { return true } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2.Format(fieldName, field.ExpectedJSONType(), field.ActualJSONType())) + if r.tracer != nil { + r.tracer.write(diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2.Format(fieldName, field.ExpectedJSONType(), field.ActualJSONType())) } } - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_does_not_have_a_0_field.Format(fieldName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_does_not_have_a_0_field.Format(fieldName)) } return false } @@ -1659,14 +1683,14 @@ func (r *resolutionState) getPackageJSONPathField(fieldName string, field *packa return "", false } if field.Value == "" { - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_had_a_falsy_0_field.Format(fieldName)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_had_a_falsy_0_field.Format(fieldName)) } return "", false } path := tspath.NormalizePath(tspath.CombinePaths(directory, field.Value)) - if r.resolver.traceEnabled() { - r.resolver.host.Trace(diagnostics.X_package_json_has_0_field_1_that_references_2.Format(fieldName, field.Value, path)) + if r.tracer != nil { + r.tracer.write(diagnostics.X_package_json_has_0_field_1_that_references_2.Format(fieldName, field.Value, path)) } return path, true } @@ -1688,8 +1712,8 @@ func (r *resolutionState) conditionMatches(condition string) bool { } func (r *resolutionState) getTraceFunc() func(string) { - if r.resolver.traceEnabled() { - return r.resolver.host.Trace + if r.tracer != nil { + return r.tracer.write } return nil } diff --git a/internal/module/resolver_test.go b/internal/module/resolver_test.go index 1c5456d635..eb777c8e33 100644 --- a/internal/module/resolver_test.go +++ b/internal/module/resolver_test.go @@ -265,7 +265,7 @@ func doCall(t *testing.T, resolver *module.Resolver, call functionCall, skipLoca errorMessageArgs := []any{call.args.Name, call.args.ContainingFile} if call.call == "resolveModuleName" { - resolved := resolver.ResolveModuleName(call.args.Name, call.args.ContainingFile, core.ModuleKind(call.args.ResolutionMode), redirectedReference) + resolved, _ := resolver.ResolveModuleName(call.args.Name, call.args.ContainingFile, core.ModuleKind(call.args.ResolutionMode), redirectedReference) assert.Check(t, resolved != nil, "ResolveModuleName should not return nil", errorMessageArgs) if expectedResolvedModule, ok := call.returnValue["resolvedModule"].(map[string]any); ok { assert.Check(t, resolved.IsResolved(), errorMessageArgs) @@ -277,7 +277,7 @@ func doCall(t *testing.T, resolver *module.Resolver, call functionCall, skipLoca assert.Check(t, !resolved.IsResolved(), errorMessageArgs) } } else { - resolved := resolver.ResolveTypeReferenceDirective(call.args.Name, call.args.ContainingFile, core.ModuleKind(call.args.ResolutionMode), redirectedReference) + resolved, _ := resolver.ResolveTypeReferenceDirective(call.args.Name, call.args.ContainingFile, core.ModuleKind(call.args.ResolutionMode), redirectedReference) assert.Check(t, resolved != nil, "ResolveTypeReferenceDirective should not return nil", errorMessageArgs) if expectedResolvedTypeReferenceDirective, ok := call.returnValue["resolvedTypeReferenceDirective"].(map[string]any); ok { assert.Check(t, resolved.IsResolved(), errorMessageArgs) diff --git a/internal/module/types.go b/internal/module/types.go index f3c78cc715..7dbc899f31 100644 --- a/internal/module/types.go +++ b/internal/module/types.go @@ -14,7 +14,6 @@ import ( type ResolutionHost interface { FS() vfs.FS GetCurrentDirectory() string - Trace(msg string) } type ModeAwareCacheKey struct { diff --git a/internal/project/ata.go b/internal/project/ata.go index c457a62b80..659bec2e99 100644 --- a/internal/project/ata.go +++ b/internal/project/ata.go @@ -565,7 +565,7 @@ func (ti *TypingsInstaller) ensureTypingsLocationExists(p *Project) { } func (ti *TypingsInstaller) typingToFileName(resolver *module.Resolver, packageName string) string { - result := resolver.ResolveModuleName(packageName, tspath.CombinePaths(ti.TypingsLocation, "index.d.ts"), core.ModuleKindNone, nil) + result, _ := resolver.ResolveModuleName(packageName, tspath.CombinePaths(ti.TypingsLocation, "index.d.ts"), core.ModuleKindNone, nil) return result.ResolvedFileName } diff --git a/internal/testrunner/compiler_runner.go b/internal/testrunner/compiler_runner.go index 9b1891d081..6090c1ed6b 100644 --- a/internal/testrunner/compiler_runner.go +++ b/internal/testrunner/compiler_runner.go @@ -192,6 +192,7 @@ func (r *CompilerBaselineRunner) runSingleConfigTest(t *testing.T, testName stri compilerTest.verifySourceMapOutput(t, r.testSuitName, r.isSubmodule) compilerTest.verifySourceMapRecord(t, r.testSuitName, r.isSubmodule) compilerTest.verifyTypesAndSymbols(t, r.testSuitName, r.isSubmodule) + compilerTest.verifyModuleResolution(t, r.testSuitName, r.isSubmodule) // !!! Verify all baselines compilerTest.verifyUnionOrdering(t) @@ -510,6 +511,49 @@ func (c *compilerTest) verifyTypesAndSymbols(t *testing.T, suiteName string, isS ) } +func (c *compilerTest) verifyModuleResolution(t *testing.T, suiteName string, isSubmodule bool) { + if !c.options.TraceResolution.IsTrue() { + return + } + + t.Run("module resolution", func(t *testing.T) { + defer testutil.RecoverAndFail(t, "Panic on creating module resolution baseline for test "+c.filename) + tsbaseline.DoModuleResolutionBaseline(t, c.configuredName, c.result.Trace, baseline.Options{ + Subfolder: suiteName, + IsSubmodule: isSubmodule, + DiffFixupOld: func(old string) string { + var sb strings.Builder + sb.Grow(len(old)) + + removeLibReplacement := c.options.LibReplacement == core.TSUnknown + inLibResolution := false + for line := range strings.SplitSeq(old, "\n") { + if line == "[" || line == "]" { + continue + } + fixedLine := strings.TrimSuffix(strings.TrimPrefix(line, ` "`), `",`) + if removeLibReplacement { + if inLibResolution { + if strings.HasPrefix(fixedLine, `======== Module name '@typescript/lib-`) { + inLibResolution = false + } + continue + } + if strings.HasPrefix(fixedLine, `======== Resolving module '@typescript/lib-`) { + inLibResolution = true + continue + } + } + sb.WriteString(fixedLine) + sb.WriteString("\n") + } + + return sb.String()[:sb.Len()-1] + }, + }) + }) +} + func createHarnessTestFile(unit *testUnit, currentDirectory string) *harnessutil.TestFile { return &harnessutil.TestFile{ UnitName: tspath.GetNormalizedAbsolutePath(unit.name, currentDirectory), diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index 0d0db4dec9..284ca39206 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -221,6 +221,7 @@ func CompileFilesEx( Errors: errors, }, harnessOptions) result.Symlinks = symlinks + result.Trace = host.tracer.String() result.Repeat = func(testConfig TestConfiguration) *CompilationResult { newHarnessOptions := *harnessOptions newCompilerOptions := compilerOptions.Clone() @@ -460,6 +461,7 @@ func getOptionValue(t *testing.T, option *tsoptions.CommandLineOption, value str type cachedCompilerHost struct { compiler.CompilerHost + tracer *strings.Builder } var sourceFileCache collections.SyncMap[SourceFileCacheKey, *ast.SourceFile] @@ -500,9 +502,14 @@ func (h *cachedCompilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast return result } -func createCompilerHost(fs vfs.FS, defaultLibraryPath string, currentDirectory string) compiler.CompilerHost { +func createCompilerHost(fs vfs.FS, defaultLibraryPath string, currentDirectory string) *cachedCompilerHost { + var tracer strings.Builder + trace := func(msg string) { + fmt.Fprintln(&tracer, msg) + } return &cachedCompilerHost{ - CompilerHost: compiler.NewCompilerHost(currentDirectory, fs, defaultLibraryPath, nil), + CompilerHost: compiler.NewCompilerHost(currentDirectory, fs, defaultLibraryPath, nil, trace), + tracer: &tracer, } } @@ -598,6 +605,7 @@ type CompilationResult struct { outputs []*TestFile inputs []*TestFile inputsAndOutputs collections.OrderedMap[string, *CompilationOutput] + Trace string } type CompilationOutput struct { diff --git a/internal/testutil/tsbaseline/module_resolution_baseline.go b/internal/testutil/tsbaseline/module_resolution_baseline.go new file mode 100644 index 0000000000..c2a4a74201 --- /dev/null +++ b/internal/testutil/tsbaseline/module_resolution_baseline.go @@ -0,0 +1,18 @@ +package tsbaseline + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/testutil/baseline" +) + +func DoModuleResolutionBaseline(t *testing.T, baselinePath string, trace string, opts baseline.Options) { + baselinePath = tsExtension.ReplaceAllString(baselinePath, ".trace.json") + var errorBaseline string + if trace != "" { + errorBaseline = trace + } else { + errorBaseline = baseline.NoContent + } + baseline.Run(t, baselinePath, errorBaseline, opts) +} diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js index 816c9654de..d6c4cd5960 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js @@ -51,6 +51,50 @@ export const x = 10; tsgo --explainFiles --outDir ${configDir}/outDir ExitStatus:: DiagnosticsPresent_OutputsGenerated Output:: +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +======== Resolving module 'other/sometype2' from '/home/src/projects/myproject/src/secondary.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'other/sometype2'. +Module name 'other/sometype2', matched pattern 'other/*'. +Trying substitution 'other/*', candidate module location: 'other/sometype2'. +Loading module as file / folder, candidate module location '/home/src/projects/configs/second/other/sometype2', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/src/package.json' does not exist. +File '/home/src/projects/myproject/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'other/sometype2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/home/src/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'other/sometype2' was not resolved. ======== tsconfig.json:3:5 - error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? 3 "compilerOptions": { diff --git a/testdata/baselines/reference/tsc/extends/configDir-template.js b/testdata/baselines/reference/tsc/extends/configDir-template.js index 084f1836b3..4ea0c2d01d 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template.js @@ -51,6 +51,50 @@ export const x = 10; tsgo --explainFiles ExitStatus:: DiagnosticsPresent_OutputsGenerated Output:: +======== Resolving module '@myscope/sometype' from '/home/src/projects/myproject/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@myscope/sometype'. +Module name '@myscope/sometype', matched pattern '@myscope/*'. +Trying substitution '/home/src/projects/myproject/types/*', candidate module location: '/home/src/projects/myproject/types/sometype'. +Loading module as file / folder, candidate module location '/home/src/projects/myproject/types/sometype', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/types/sometype.ts' exists - use it as a name resolution result. +======== Module name '@myscope/sometype' was successfully resolved to '/home/src/projects/myproject/types/sometype.ts'. ======== +======== Resolving module 'other/sometype2' from '/home/src/projects/myproject/src/secondary.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'other/sometype2'. +Module name 'other/sometype2', matched pattern 'other/*'. +Trying substitution 'other/*', candidate module location: 'other/sometype2'. +Loading module as file / folder, candidate module location '/home/src/projects/configs/second/other/sometype2', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/home/src/projects/myproject/src/package.json' does not exist. +File '/home/src/projects/myproject/package.json' does not exist. +File '/home/src/projects/package.json' does not exist. +File '/home/src/package.json' does not exist. +File '/home/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'other/sometype2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/home/src/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/home/src/projects/myproject/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/myproject/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/projects/node_modules' does not exist, skipping all lookups in it. +Directory '/home/src/node_modules' does not exist, skipping all lookups in it. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'other/sometype2' was not resolved. ======== tsconfig.json:3:5 - error TS5090: Non-relative paths are not allowed. Did you forget a leading './'? 3 "compilerOptions": { From 2b7119ac3c1f2ed40ae0db10f89993429a028f64 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 7 Aug 2025 13:35:36 -0700 Subject: [PATCH 02/12] Baselines --- .../allowJsCrossMonorepoPackage.trace.json | 78 ++ ...llowJsCrossMonorepoPackage.trace.json.diff | 50 + .../cachedModuleResolution1.trace.json | 38 + .../cachedModuleResolution1.trace.json.diff | 50 + .../cachedModuleResolution2.trace.json | 38 + .../cachedModuleResolution2.trace.json.diff | 50 + .../cachedModuleResolution3.trace.json | 54 + .../cachedModuleResolution3.trace.json.diff | 74 ++ .../cachedModuleResolution4.trace.json | 54 + .../cachedModuleResolution4.trace.json.diff | 74 ++ .../cachedModuleResolution5.trace.json | 35 + .../cachedModuleResolution5.trace.json.diff | 47 + .../cachedModuleResolution6.trace.json | 54 + .../cachedModuleResolution6.trace.json.diff | 63 + .../cachedModuleResolution7.trace.json | 54 + .../cachedModuleResolution7.trace.json.diff | 65 ++ .../cachedModuleResolution8.trace.json | 54 + .../cachedModuleResolution8.trace.json.diff | 97 ++ .../cachedModuleResolution9.trace.json | 54 + .../cachedModuleResolution9.trace.json.diff | 91 ++ ...age_relativeImportWithinPackage.trace.json | 61 + ...elativeImportWithinPackage.trace.json.diff | 70 ++ ...ativeImportWithinPackage_scoped.trace.json | 61 + ...ImportWithinPackage_scoped.trace.json.diff | 70 ++ .../importWithTrailingSlash.trace.json | 28 + .../importWithTrailingSlash.trace.json.diff | 41 + ...portWithTrailingSlash_noResolve.trace.json | 6 + ...ithTrailingSlash_noResolve.trace.json.diff | 13 + ...ment(libreplacement=false).trace.json.diff | 5 + ...ement(libreplacement=true).trace.json.diff | 1018 +++++++++++++++++ .../libTypeScriptOverrideSimple.trace.json | 19 + ...ibTypeScriptOverrideSimple.trace.json.diff | 103 ++ ...bTypeScriptOverrideSimpleConfig.trace.json | 16 + ...ScriptOverrideSimpleConfig.trace.json.diff | 98 ++ .../libTypeScriptSubfileResolving.trace.json | 35 + ...TypeScriptSubfileResolving.trace.json.diff | 135 +++ ...ypeScriptSubfileResolvingConfig.trace.json | 29 + ...riptSubfileResolvingConfig.trace.json.diff | 127 ++ ...NodeModuleJsDepthDefaultsToZero.trace.json | 21 + ...oduleJsDepthDefaultsToZero.trace.json.diff | 23 + .../compiler/modulePreserve2.trace.json | 36 + .../compiler/modulePreserve2.trace.json.diff | 7 + .../compiler/modulePreserve3.trace.json | 24 + .../compiler/modulePreserve3.trace.json.diff | 29 + ...olutionAsTypeReferenceDirective.trace.json | 11 + ...onAsTypeReferenceDirective.trace.json.diff | 34 + ...AsTypeReferenceDirectiveAmbient.trace.json | 11 + ...eReferenceDirectiveAmbient.trace.json.diff | 34 + ...nAsTypeReferenceDirectiveScoped.trace.json | 72 ++ ...peReferenceDirectiveScoped.trace.json.diff | 140 +++ ...geIdWithRelativeAndAbsolutePath.trace.json | 80 ++ ...ithRelativeAndAbsolutePath.trace.json.diff | 120 ++ ...tionWithExtensions_notSupported.trace.json | 26 + ...ithExtensions_notSupported.trace.json.diff | 39 + ...ionWithExtensions_notSupported2.trace.json | 10 + ...thExtensions_notSupported2.trace.json.diff | 17 + ...ionWithExtensions_notSupported3.trace.json | 10 + ...thExtensions_notSupported3.trace.json.diff | 17 + ...lutionWithExtensions_unexpected.trace.json | 45 + ...nWithExtensions_unexpected.trace.json.diff | 61 + ...utionWithExtensions_unexpected2.trace.json | 38 + ...WithExtensions_unexpected2.trace.json.diff | 53 + ...thExtensions_withAmbientPresent.trace.json | 21 + ...ensions_withAmbientPresent.trace.json.diff | 23 + ...olutionWithExtensions_withPaths.trace.json | 44 + ...onWithExtensions_withPaths.trace.json.diff | 60 + ...eResolutionWithRequireAndImport.trace.json | 6 + ...lutionWithRequireAndImport.trace.json.diff | 11 + ...uleResolutionWithSuffixes_empty.trace.json | 6 + ...solutionWithSuffixes_empty.trace.json.diff | 11 + ...lutionWithSuffixes_notSpecified.trace.json | 6 + ...nWithSuffixes_notSpecified.trace.json.diff | 11 + ...oduleResolutionWithSuffixes_one.trace.json | 6 + ...ResolutionWithSuffixes_one.trace.json.diff | 11 + ...ResolutionWithSuffixes_oneBlank.trace.json | 6 + ...utionWithSuffixes_oneBlank.trace.json.diff | 11 + ...olutionWithSuffixes_oneNotFound.trace.json | 11 + ...onWithSuffixes_oneNotFound.trace.json.diff | 17 + ...Suffixes_one_dirModuleWithIndex.trace.json | 12 + ...xes_one_dirModuleWithIndex.trace.json.diff | 17 + ...WithSuffixes_one_externalModule.trace.json | 15 + ...uffixes_one_externalModule.trace.json.diff | 20 + ...Suffixes_one_externalModulePath.trace.json | 12 + ...xes_one_externalModulePath.trace.json.diff | 20 + ...es_one_externalModule_withPaths.trace.json | 45 + ...e_externalModule_withPaths.trace.json.diff | 61 + ...thSuffixes_one_externalTSModule.trace.json | 13 + ...fixes_one_externalTSModule.trace.json.diff | 20 + ...lutionWithSuffixes_one_jsModule.trace.json | 10 + ...nWithSuffixes_one_jsModule.trace.json.diff | 21 + ...tionWithSuffixes_one_jsonModule.trace.json | 8 + ...ithSuffixes_one_jsonModule.trace.json.diff | 19 + ...nWithSuffixes_threeLastIsBlank1.trace.json | 6 + ...Suffixes_threeLastIsBlank1.trace.json.diff | 11 + ...nWithSuffixes_threeLastIsBlank2.trace.json | 7 + ...Suffixes_threeLastIsBlank2.trace.json.diff | 12 + ...nWithSuffixes_threeLastIsBlank3.trace.json | 8 + ...Suffixes_threeLastIsBlank3.trace.json.diff | 12 + ...nWithSuffixes_threeLastIsBlank4.trace.json | 21 + ...Suffixes_threeLastIsBlank4.trace.json.diff | 21 + .../moduleResolutionWithSymlinks.trace.json | 43 + ...duleResolutionWithSymlinks.trace.json.diff | 59 + ...onWithSymlinks_notInNodeModules.trace.json | 12 + ...hSymlinks_notInNodeModules.trace.json.diff | 23 + ...onWithSymlinks_preserveSymlinks.trace.json | 47 + ...hSymlinks_preserveSymlinks.trace.json.diff | 102 ++ ...tionWithSymlinks_referenceTypes.trace.json | 34 + ...ithSymlinks_referenceTypes.trace.json.diff | 33 + ...solutionWithSymlinks_withOutDir.trace.json | 43 + ...ionWithSymlinks_withOutDir.trace.json.diff | 59 + ...on_packageJson_notAtPackageRoot.trace.json | 17 + ...ckageJson_notAtPackageRoot.trace.json.diff | 21 + ...AtPackageRoot_fakeScopedPackage.trace.json | 17 + ...kageRoot_fakeScopedPackage.trace.json.diff | 21 + ...ution_packageJson_scopedPackage.trace.json | 16 + ..._packageJson_scopedPackage.trace.json.diff | 18 + ...on_packageJson_yesAtPackageRoot.trace.json | 25 + ...ckageJson_yesAtPackageRoot.trace.json.diff | 41 + ...AtPackageRoot_fakeScopedPackage.trace.json | 25 + ...kageRoot_fakeScopedPackage.trace.json.diff | 41 + ...ageRoot_mainFieldInSubDirectory.trace.json | 21 + ...ot_mainFieldInSubDirectory.trace.json.diff | 24 + .../nodeColonModuleResolution.trace.json | 39 + .../nodeColonModuleResolution.trace.json.diff | 50 + .../nodeColonModuleResolution2.trace.json | 18 + ...nodeColonModuleResolution2.trace.json.diff | 29 + .../nodeNextModuleResolution1.trace.json | 24 + .../nodeNextModuleResolution1.trace.json.diff | 45 + .../nodeNextModuleResolution2.trace.json | 24 + .../nodeNextModuleResolution2.trace.json.diff | 38 + ...pingBasedModuleResolution3_node.trace.json | 44 + ...asedModuleResolution3_node.trace.json.diff | 67 ++ ...pingBasedModuleResolution4_node.trace.json | 44 + ...asedModuleResolution4_node.trace.json.diff | 65 ++ ...pingBasedModuleResolution5_node.trace.json | 70 ++ ...asedModuleResolution5_node.trace.json.diff | 90 ++ ...pingBasedModuleResolution6_node.trace.json | 6 + ...asedModuleResolution6_node.trace.json.diff | 44 + ...pingBasedModuleResolution7_node.trace.json | 41 + ...asedModuleResolution7_node.trace.json.diff | 120 ++ ...pingBasedModuleResolution8_node.trace.json | 8 + ...asedModuleResolution8_node.trace.json.diff | 11 + ...lution_rootImport_aliasWithRoot.trace.json | 21 + ...n_rootImport_aliasWithRoot.trace.json.diff | 41 + ...liasWithRoot_differentRootTypes.trace.json | 189 +++ ...ithRoot_differentRootTypes.trace.json.diff | 333 ++++++ ...t_aliasWithRoot_multipleAliases.trace.json | 21 + ...asWithRoot_multipleAliases.trace.json.diff | 38 + ...port_aliasWithRoot_realRootFile.trace.json | 23 + ...aliasWithRoot_realRootFile.trace.json.diff | 41 + ...tion_rootImport_noAliasWithRoot.trace.json | 21 + ...rootImport_noAliasWithRoot.trace.json.diff | 41 + ...rt_noAliasWithRoot_realRootFile.trace.json | 23 + ...AliasWithRoot_realRootFile.trace.json.diff | 41 + ...dModuleResolution_withExtension.trace.json | 16 + ...leResolution_withExtension.trace.json.diff | 21 + ...eResolution_withExtensionInName.trace.json | 46 + ...lution_withExtensionInName.trace.json.diff | 53 + ...ithExtension_MapedToNodeModules.trace.json | 15 + ...tension_MapedToNodeModules.trace.json.diff | 53 + ...tion_withExtension_failedLookup.trace.json | 17 + ...withExtension_failedLookup.trace.json.diff | 33 + .../compiler/pathsValidation4.trace.json | 20 + .../compiler/pathsValidation4.trace.json.diff | 42 + .../compiler/pathsValidation5.trace.json | 20 + .../compiler/pathsValidation5.trace.json.diff | 27 + .../reactJsxReactResolvedNodeNext.trace.json | 39 + ...ctJsxReactResolvedNodeNext.trace.json.diff | 225 ++++ ...eactJsxReactResolvedNodeNextEsm.trace.json | 40 + ...sxReactResolvedNodeNextEsm.trace.json.diff | 226 ++++ ...ResolveJsonModuleAndPathMapping.trace.json | 34 + ...veJsonModuleAndPathMapping.trace.json.diff | 49 + .../requireOfJsonFile_PathMapping.trace.json | 13 + ...uireOfJsonFile_PathMapping.trace.json.diff | 47 + ...tiveScopedPackageCustomTypeRoot.trace.json | 19 + ...copedPackageCustomTypeRoot.trace.json.diff | 70 ++ ...tiveWithFailedFromTypeRoot.trace.json.diff | 9 + ...nceDirectiveWithTypeAsFile.trace.json.diff | 14 + .../typeReferenceDirectives1.trace.json | 8 + .../typeReferenceDirectives1.trace.json.diff | 21 + .../typeReferenceDirectives10.trace.json | 16 + .../typeReferenceDirectives10.trace.json.diff | 31 + .../typeReferenceDirectives11.trace.json | 6 + .../typeReferenceDirectives11.trace.json.diff | 18 + .../typeReferenceDirectives12.trace.json | 32 + .../typeReferenceDirectives12.trace.json.diff | 52 + .../typeReferenceDirectives13.trace.json | 16 + .../typeReferenceDirectives13.trace.json.diff | 31 + .../typeReferenceDirectives2.trace.json.diff | 11 + .../typeReferenceDirectives3.trace.json | 8 + .../typeReferenceDirectives3.trace.json.diff | 21 + .../typeReferenceDirectives4.trace.json | 8 + .../typeReferenceDirectives4.trace.json.diff | 21 + .../typeReferenceDirectives5.trace.json | 16 + .../typeReferenceDirectives5.trace.json.diff | 31 + .../typeReferenceDirectives6.trace.json | 8 + .../typeReferenceDirectives6.trace.json.diff | 21 + .../typeReferenceDirectives7.trace.json | 8 + .../typeReferenceDirectives7.trace.json.diff | 21 + .../typeReferenceDirectives8.trace.json | 6 + .../typeReferenceDirectives8.trace.json.diff | 18 + .../typeReferenceDirectives9.trace.json | 32 + .../typeReferenceDirectives9.trace.json.diff | 52 + ...mMultipleNodeModulesDirectories.trace.json | 97 ++ ...ipleNodeModulesDirectories.trace.json.diff | 107 ++ ...romNodeModulesInParentDirectory.trace.json | 25 + ...deModulesInParentDirectory.trace.json.diff | 32 + ...ionsExcludesNode(module=esnext).trace.json | 20 + ...xcludesNode(module=esnext).trace.json.diff | 22 + ...nsExcludesNode(module=preserve).trace.json | 20 + ...ludesNode(module=preserve).trace.json.diff | 22 + ...ode18,moduleresolution=bundler).trace.json | 19 + ...,moduleresolution=bundler).trace.json.diff | 10 + ...de18,moduleresolution=nodenext).trace.json | 19 + ...moduleresolution=nodenext).trace.json.diff | 140 +++ ...enext,moduleresolution=bundler).trace.json | 19 + ...,moduleresolution=bundler).trace.json.diff | 10 + ...next,moduleresolution=nodenext).trace.json | 19 + ...moduleresolution=nodenext).trace.json.diff | 182 +++ ...sextensions=false,noemit=false).trace.json | 128 +++ ...nsions=false,noemit=false).trace.json.diff | 37 + ...tsextensions=false,noemit=true).trace.json | 128 +++ ...ensions=false,noemit=true).trace.json.diff | 37 + ...tsextensions=true,noemit=false).trace.json | 128 +++ ...ensions=true,noemit=false).trace.json.diff | 37 + ...gtsextensions=true,noemit=true).trace.json | 128 +++ ...tensions=true,noemit=true).trace.json.diff | 37 + ...dlerNodeModules1(module=esnext).trace.json | 57 + ...odeModules1(module=esnext).trace.json.diff | 61 + ...erNodeModules1(module=preserve).trace.json | 57 + ...eModules1(module=preserve).trace.json.diff | 61 + ...bundlerRelative1(module=esnext).trace.json | 97 ++ ...erRelative1(module=esnext).trace.json.diff | 25 + ...ndlerRelative1(module=preserve).trace.json | 97 ++ ...Relative1(module=preserve).trace.json.diff | 25 + ...lback(moduleresolution=bundler).trace.json | 23 + ...(moduleresolution=bundler).trace.json.diff | 22 + ...llback(moduleresolution=node16).trace.json | 23 + ...k(moduleresolution=node16).trace.json.diff | 36 + ...back(moduleresolution=nodenext).trace.json | 23 + ...moduleresolution=nodenext).trace.json.diff | 36 + ...esolvepackagejsonexports=false).trace.json | 21 + ...epackagejsonexports=false).trace.json.diff | 24 + ...resolvepackagejsonexports=true).trace.json | 21 + ...vepackagejsonexports=true).trace.json.diff | 38 + .../library-reference-1.trace.json | 11 + .../library-reference-1.trace.json.diff | 28 + .../library-reference-10.trace.json | 11 + .../library-reference-10.trace.json.diff | 31 + .../library-reference-11.trace.json | 14 + .../library-reference-11.trace.json.diff | 15 + .../library-reference-12.trace.json | 15 + .../library-reference-12.trace.json.diff | 16 + .../library-reference-13.trace.json | 7 + .../library-reference-13.trace.json.diff | 2 + .../library-reference-14.trace.json.diff | 11 + .../library-reference-15.trace.json.diff | 11 + .../library-reference-2.trace.json | 9 + .../library-reference-2.trace.json.diff | 31 + .../library-reference-3.trace.json | 11 + .../library-reference-3.trace.json.diff | 10 + .../library-reference-4.trace.json | 52 + .../library-reference-4.trace.json.diff | 83 ++ .../library-reference-5.trace.json | 44 + .../library-reference-5.trace.json.diff | 75 ++ .../library-reference-6.trace.json | 12 + .../library-reference-6.trace.json.diff | 24 + .../library-reference-7.trace.json | 10 + .../library-reference-7.trace.json.diff | 10 + .../library-reference-8.trace.json | 22 + .../library-reference-8.trace.json.diff | 59 + ...brary-reference-scoped-packages.trace.json | 16 + ...-reference-scoped-packages.trace.json.diff | 33 + .../moduleResolutionWithExtensions.trace.json | 22 + ...leResolutionWithExtensions.trace.json.diff | 29 + ...irect(moduleresolution=bundler).trace.json | 17 + ...(moduleresolution=bundler).trace.json.diff | 17 + ...direct(moduleresolution=node16).trace.json | 17 + ...t(moduleresolution=node16).trace.json.diff | 36 + ...rect(moduleresolution=nodenext).trace.json | 17 + ...moduleresolution=nodenext).trace.json.diff | 36 + ...e10AlternateResult_noResolution.trace.json | 15 + ...ternateResult_noResolution.trace.json.diff | 47 + .../node10Alternateresult_noTypes.trace.json | 15 + ...e10Alternateresult_noTypes.trace.json.diff | 62 + .../conformance/node10IsNode_node.trace.json | 15 + .../node10IsNode_node.trace.json.diff | 36 + .../node10IsNode_node10.trace.json | 15 + .../node10IsNode_node10.trace.json.diff | 36 + .../nodeModulesAtTypesPriority.trace.json | 57 + ...nodeModulesAtTypesPriority.trace.json.diff | 182 +++ ...cksTypesVersions(module=node16).trace.json | 210 ++++ ...pesVersions(module=node16).trace.json.diff | 263 +++++ ...cksTypesVersions(module=node18).trace.json | 210 ++++ ...pesVersions(module=node18).trace.json.diff | 263 +++++ ...sTypesVersions(module=nodenext).trace.json | 210 ++++ ...sVersions(module=nodenext).trace.json.diff | 305 +++++ ...esPackageImports(module=node16).trace.json | 72 ++ ...kageImports(module=node16).trace.json.diff | 172 +++ ...esPackageImports(module=node18).trace.json | 72 ++ ...kageImports(module=node18).trace.json.diff | 172 +++ ...PackageImports(module=nodenext).trace.json | 72 ++ ...geImports(module=nodenext).trace.json.diff | 214 ++++ ...nExportsTrailers(module=node16).trace.json | 213 ++++ ...rtsTrailers(module=node16).trace.json.diff | 310 +++++ ...nExportsTrailers(module=node18).trace.json | 213 ++++ ...rtsTrailers(module=node18).trace.json.diff | 310 +++++ ...xportsTrailers(module=nodenext).trace.json | 213 ++++ ...sTrailers(module=nodenext).trace.json.diff | 352 ++++++ .../conformance/packageJsonMain.trace.json | 108 ++ .../packageJsonMain.trace.json.diff | 149 +++ .../packageJsonMain_isNonRecursive.trace.json | 38 + ...ageJsonMain_isNonRecursive.trace.json.diff | 54 + .../resolutionModeCache.trace.json | 38 + .../resolutionModeCache.trace.json.diff | 34 + ...stic1(moduleresolution=bundler).trace.json | 120 ++ ...(moduleresolution=bundler).trace.json.diff | 69 ++ ...ostic1(moduleresolution=node16).trace.json | 109 ++ ...1(moduleresolution=node16).trace.json.diff | 83 ++ .../conformance/scopedPackages.trace.json | 45 + .../scopedPackages.trace.json.diff | 64 ++ .../scopedPackagesClassic.trace.json | 19 + .../scopedPackagesClassic.trace.json.diff | 29 + .../selfNameModuleAugmentation.trace.json | 50 + ...selfNameModuleAugmentation.trace.json.diff | 36 + .../typesVersions.ambientModules.trace.json | 71 ++ ...pesVersions.ambientModules.trace.json.diff | 105 ++ .../typesVersions.emptyTypes.trace.json | 15 + .../typesVersions.emptyTypes.trace.json.diff | 38 + .../typesVersions.justIndex.trace.json | 15 + .../typesVersions.justIndex.trace.json.diff | 38 + .../typesVersions.multiFile.trace.json | 41 + .../typesVersions.multiFile.trace.json.diff | 54 + ...VersionsDeclarationEmit.ambient.trace.json | 71 ++ ...onsDeclarationEmit.ambient.trace.json.diff | 105 ++ ...rsionsDeclarationEmit.multiFile.trace.json | 41 + ...sDeclarationEmit.multiFile.trace.json.diff | 54 + ...it.multiFileBackReferenceToSelf.trace.json | 66 ++ ...ltiFileBackReferenceToSelf.trace.json.diff | 88 ++ ...ultiFileBackReferenceToUnmapped.trace.json | 49 + ...ileBackReferenceToUnmapped.trace.json.diff | 64 ++ .../conformance/typingsLookup1.trace.json | 12 + .../typingsLookup1.trace.json.diff | 24 + .../conformance/typingsLookup3.trace.json | 14 + .../typingsLookup3.trace.json.diff | 17 + .../conformance/typingsLookup4.trace.json | 110 ++ .../typingsLookup4.trace.json.diff | 127 ++ 347 files changed, 18456 insertions(+) create mode 100644 testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json create mode 100644 testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff create mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json create mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff diff --git a/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json new file mode 100644 index 0000000000..5ddc5147cd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json @@ -0,0 +1,78 @@ +======== Resolving module 'shared' from '/packages/main/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Found 'package.json' at '/packages/main/package.json'. +Loading module 'shared' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/packages/main/node_modules/shared/package.json'. +Using 'exports' subpath '.' with target './index.js'. +File name '/packages/main/node_modules/shared/index.js' has a '.js' extension - stripping it. +File '/packages/main/node_modules/shared/index.ts' does not exist. +File '/packages/main/node_modules/shared/index.tsx' does not exist. +File '/packages/main/node_modules/shared/index.d.ts' does not exist. +Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/shared.ts' does not exist. +File '/node_modules/shared.tsx' does not exist. +File '/node_modules/shared.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/packages/main/node_modules/shared/package.json' exists according to earlier cached lookups. +Using 'exports' subpath '.' with target './index.js'. +File name '/packages/main/node_modules/shared/index.js' has a '.js' extension - stripping it. +File '/packages/main/node_modules/shared/index.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/packages/main/package.json' exists according to earlier cached lookups. +Loading module 'shared' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/packages/main/node_modules/shared/package.json' exists according to earlier cached lookups. +File '/packages/main/node_modules/shared.ts' does not exist. +File '/packages/main/node_modules/shared.tsx' does not exist. +File '/packages/main/node_modules/shared.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' does not have a 'main' field. +File '/packages/main/node_modules/shared/index.ts' does not exist. +File '/packages/main/node_modules/shared/index.tsx' does not exist. +File '/packages/main/node_modules/shared/index.d.ts' does not exist. +Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/shared.ts' does not exist. +File '/node_modules/shared.tsx' does not exist. +File '/node_modules/shared.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared@1.0.0'. ======== +======== Resolving module './utils.js' from '/packages/shared/index.js'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/packages/shared/utils.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/packages/shared/utils.js' has a '.js' extension - stripping it. +File '/packages/shared/utils.ts' does not exist. +File '/packages/shared/utils.tsx' does not exist. +File '/packages/shared/utils.d.ts' does not exist. +File '/packages/shared/utils.js' exists - use it as a name resolution result. +======== Module name './utils.js' was successfully resolved to '/packages/shared/utils.js'. ======== +======== Resolving module 'pkg' from '/packages/shared/utils.js'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Found 'package.json' at '/packages/shared/package.json'. +Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/packages/shared/node_modules' does not exist, skipping all lookups in it. +Directory '/packages/shared/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/pkg/package.json' does not exist. +File '/node_modules/pkg.ts' does not exist. +File '/node_modules/pkg.tsx' does not exist. +File '/node_modules/pkg.d.ts' does not exist. +File '/node_modules/pkg/index.ts' does not exist. +File '/node_modules/pkg/index.tsx' does not exist. +File '/node_modules/pkg/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'. +======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff new file mode 100644 index 0000000000..54cc71ade1 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff @@ -0,0 +1,50 @@ +--- old.allowJsCrossMonorepoPackage.trace.json ++++ new.allowJsCrossMonorepoPackage.trace.json +@@= skipped -11, +11 lines =@@ + File '/packages/main/node_modules/shared/index.d.ts' does not exist. + Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/packages/node_modules' does not exist, skipping all lookups in it. ++Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/shared.ts' does not exist. + File '/node_modules/shared.tsx' does not exist. + File '/node_modules/shared.d.ts' does not exist. +@@= skipped -10, +11 lines =@@ + File name '/packages/main/node_modules/shared/index.js' has a '.js' extension - stripping it. + File '/packages/main/node_modules/shared/index.js' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/packages/main/package.json' exists according to earlier cached lookups. + Loading module 'shared' from 'node_modules' folder, target file types: TypeScript, Declaration. +@@= skipped -17, +18 lines =@@ + File '/packages/main/node_modules/shared/index.d.ts' does not exist. + Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/packages/node_modules' does not exist, skipping all lookups in it. ++Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/shared.ts' does not exist. + File '/node_modules/shared.tsx' does not exist. + File '/node_modules/shared.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'. +-======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared/index.js@1.0.0'. ======== ++======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared@1.0.0'. ======== + ======== Resolving module './utils.js' from '/packages/shared/index.js'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -23, +23 lines =@@ + Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/packages/shared/node_modules' does not exist, skipping all lookups in it. ++Directory '/packages/shared/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/packages/node_modules' does not exist, skipping all lookups in it. ++Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/pkg/package.json' does not exist. + File '/node_modules/pkg.ts' does not exist. + File '/node_modules/pkg.tsx' does not exist. +@@= skipped -10, +12 lines =@@ + File '/node_modules/pkg/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'. + ======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts'. ======== +-File '/node_modules/pkg/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json new file mode 100644 index 0000000000..a28869c97b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json @@ -0,0 +1,38 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +File '/a/b/node_modules/foo.ts' does not exist. +File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +File '/a/b/node_modules/foo.ts' does not exist. +File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff new file mode 100644 index 0000000000..50bed32f39 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff @@ -0,0 +1,50 @@ +--- old.cachedModuleResolution1.trace.json ++++ new.cachedModuleResolution1.trace.json +@@= skipped -0, +0 lines =@@ +-File '/a/b/node_modules/package.json' does not exist. +-File '/a/b/package.json' does not exist. +-File '/a/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + File '/a/b/node_modules/foo.ts' does not exist. + File '/a/b/node_modules/foo.tsx' does not exist. + File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++File '/a/b/node_modules/foo.ts' does not exist. ++File '/a/b/node_modules/foo.tsx' does not exist. ++File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json new file mode 100644 index 0000000000..83f20ce293 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json @@ -0,0 +1,38 @@ +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +File '/a/b/node_modules/foo.ts' does not exist. +File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +File '/a/b/node_modules/foo.ts' does not exist. +File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff new file mode 100644 index 0000000000..06e34b4358 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff @@ -0,0 +1,50 @@ +--- old.cachedModuleResolution2.trace.json ++++ new.cachedModuleResolution2.trace.json +@@= skipped -0, +0 lines =@@ +-File '/a/b/node_modules/package.json' does not exist. +-File '/a/b/package.json' does not exist. +-File '/a/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + File '/a/b/node_modules/foo.ts' does not exist. + File '/a/b/node_modules/foo.tsx' does not exist. + File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++File '/a/b/node_modules/foo.ts' does not exist. ++File '/a/b/node_modules/foo.tsx' does not exist. ++File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json new file mode 100644 index 0000000000..cf2d0cfbaa --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json @@ -0,0 +1,54 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff new file mode 100644 index 0000000000..eb6f039ed3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff @@ -0,0 +1,74 @@ +--- old.cachedModuleResolution3.trace.json ++++ new.cachedModuleResolution3.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-File '/a/b/c/d/e/foo.ts' does not exist. +-File '/a/b/c/d/e/foo.tsx' does not exist. +-File '/a/b/c/d/e/foo.d.ts' does not exist. +-File '/a/b/c/d/foo.ts' does not exist. +-File '/a/b/c/d/foo.tsx' does not exist. +-File '/a/b/c/d/foo.d.ts' does not exist. +-File '/a/b/c/foo.ts' does not exist. +-File '/a/b/c/foo.tsx' does not exist. +-File '/a/b/c/foo.d.ts' does not exist. +-File '/a/b/foo.ts' does not exist. +-File '/a/b/foo.tsx' does not exist. +-File '/a/b/foo.d.ts' exists - use it as a name resolution result. +-======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'foo' was not resolved. ======== + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. +-======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json new file mode 100644 index 0000000000..ce95b62ea7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json @@ -0,0 +1,54 @@ +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff new file mode 100644 index 0000000000..0ebd3232d8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff @@ -0,0 +1,74 @@ +--- old.cachedModuleResolution4.trace.json ++++ new.cachedModuleResolution4.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-File '/a/b/c/foo.ts' does not exist. +-File '/a/b/c/foo.tsx' does not exist. +-File '/a/b/c/foo.d.ts' does not exist. +-File '/a/b/foo.ts' does not exist. +-File '/a/b/foo.tsx' does not exist. +-File '/a/b/foo.d.ts' exists - use it as a name resolution result. +-======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'foo' was not resolved. ======== + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-File '/a/b/c/d/e/foo.ts' does not exist. +-File '/a/b/c/d/e/foo.tsx' does not exist. +-File '/a/b/c/d/e/foo.d.ts' does not exist. +-File '/a/b/c/d/foo.ts' does not exist. +-File '/a/b/c/d/foo.tsx' does not exist. +-File '/a/b/c/d/foo.d.ts' does not exist. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. +-======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json new file mode 100644 index 0000000000..e05c3cf00d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json @@ -0,0 +1,35 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +File '/a/b/node_modules/foo.ts' does not exist. +File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== +======== Resolving module 'foo' from '/a/b/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/a/b/node_modules/foo.ts' does not exist. +File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff new file mode 100644 index 0000000000..f453811c12 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff @@ -0,0 +1,47 @@ +--- old.cachedModuleResolution5.trace.json ++++ new.cachedModuleResolution5.trace.json +@@= skipped -0, +0 lines =@@ +-File '/a/b/node_modules/package.json' does not exist. +-File '/a/b/package.json' does not exist. +-File '/a/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + File '/a/b/node_modules/foo.ts' does not exist. + File '/a/b/node_modules/foo.tsx' does not exist. + File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== + ======== Resolving module 'foo' from '/a/b/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Resolution for module 'foo' was found in cache from location '/a/b'. ++File '/a/b/node_modules/foo.ts' does not exist. ++File '/a/b/node_modules/foo.tsx' does not exist. ++File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json new file mode 100644 index 0000000000..cf2d0cfbaa --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json @@ -0,0 +1,54 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff new file mode 100644 index 0000000000..ae6b6f57a2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff @@ -0,0 +1,63 @@ +--- old.cachedModuleResolution6.trace.json ++++ new.cachedModuleResolution6.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +@@= skipped -17, +29 lines =@@ + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json new file mode 100644 index 0000000000..ce95b62ea7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json @@ -0,0 +1,54 @@ +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff new file mode 100644 index 0000000000..0305c27cfb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff @@ -0,0 +1,65 @@ +--- old.cachedModuleResolution7.trace.json ++++ new.cachedModuleResolution7.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. + Directory '/a/node_modules' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json new file mode 100644 index 0000000000..cf2d0cfbaa --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json @@ -0,0 +1,54 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff new file mode 100644 index 0000000000..0d2a2e6ece --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff @@ -0,0 +1,97 @@ +--- old.cachedModuleResolution8.trace.json ++++ new.cachedModuleResolution8.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-File '/a/b/c/d/e/foo.ts' does not exist. +-File '/a/b/c/d/e/foo.tsx' does not exist. +-File '/a/b/c/d/e/foo.d.ts' does not exist. +-File '/a/b/c/d/foo.ts' does not exist. +-File '/a/b/c/d/foo.tsx' does not exist. +-File '/a/b/c/d/foo.d.ts' does not exist. +-File '/a/b/c/foo.ts' does not exist. +-File '/a/b/c/foo.tsx' does not exist. +-File '/a/b/c/foo.d.ts' does not exist. +-File '/a/b/foo.ts' does not exist. +-File '/a/b/foo.tsx' does not exist. +-File '/a/b/foo.d.ts' does not exist. +-File '/a/foo.ts' does not exist. +-File '/a/foo.tsx' does not exist. +-File '/a/foo.d.ts' does not exist. +-File '/foo.ts' does not exist. +-File '/foo.tsx' does not exist. +-File '/foo.d.ts' does not exist. +-Searching all ancestor node_modules directories for preferred extensions: Declaration. +-Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-File '/a/b/c/d/e/foo.js' does not exist. +-File '/a/b/c/d/e/foo.jsx' does not exist. +-File '/a/b/c/d/foo.js' does not exist. +-File '/a/b/c/d/foo.jsx' does not exist. +-File '/a/b/c/foo.js' does not exist. +-File '/a/b/c/foo.jsx' does not exist. +-File '/a/b/foo.js' does not exist. +-File '/a/b/foo.jsx' does not exist. +-File '/a/foo.js' does not exist. +-File '/a/foo.jsx' does not exist. +-File '/foo.js' does not exist. +-File '/foo.jsx' does not exist. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json new file mode 100644 index 0000000000..ce95b62ea7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json @@ -0,0 +1,54 @@ +======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff new file mode 100644 index 0000000000..2f0ca2e5cb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff @@ -0,0 +1,91 @@ +--- old.cachedModuleResolution9.trace.json ++++ new.cachedModuleResolution9.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-File '/a/b/c/foo.ts' does not exist. +-File '/a/b/c/foo.tsx' does not exist. +-File '/a/b/c/foo.d.ts' does not exist. +-File '/a/b/foo.ts' does not exist. +-File '/a/b/foo.tsx' does not exist. +-File '/a/b/foo.d.ts' does not exist. +-File '/a/foo.ts' does not exist. +-File '/a/foo.tsx' does not exist. +-File '/a/foo.d.ts' does not exist. +-File '/foo.ts' does not exist. +-File '/foo.tsx' does not exist. +-File '/foo.d.ts' does not exist. +-Searching all ancestor node_modules directories for preferred extensions: Declaration. +-Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +-Directory '/a/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-File '/a/b/c/foo.js' does not exist. +-File '/a/b/c/foo.jsx' does not exist. +-File '/a/b/foo.js' does not exist. +-File '/a/b/foo.jsx' does not exist. +-File '/a/foo.js' does not exist. +-File '/a/foo.jsx' does not exist. +-File '/foo.js' does not exist. +-File '/foo.jsx' does not exist. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-File '/a/b/c/d/e/foo.ts' does not exist. +-File '/a/b/c/d/e/foo.tsx' does not exist. +-File '/a/b/c/d/e/foo.d.ts' does not exist. +-File '/a/b/c/d/foo.ts' does not exist. +-File '/a/b/c/d/foo.tsx' does not exist. +-File '/a/b/c/d/foo.d.ts' does not exist. +-Resolution for module 'foo' was found in cache from location '/a/b/c'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/c/d/e/package.json' does not exist. ++File '/a/b/c/d/package.json' does not exist. ++File '/a/b/c/package.json' does not exist. ++File '/a/b/package.json' does not exist. ++File '/a/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json new file mode 100644 index 0000000000..da9dd1306f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json @@ -0,0 +1,61 @@ +======== Resolving module 'foo/use' from '/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/node_modules/foo/use.ts' does not exist. +File '/node_modules/foo/use.tsx' does not exist. +File '/node_modules/foo/use.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/foo/use.d.ts', result '/node_modules/foo/use.d.ts'. +======== Module name 'foo/use' was successfully resolved to '/node_modules/foo/use.d.ts' with Package ID 'foo@1.2.3'. ======== +======== Resolving module 'a' from '/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/a/package.json' does not exist. +File '/node_modules/a.ts' does not exist. +File '/node_modules/a.tsx' does not exist. +File '/node_modules/a.d.ts' does not exist. +File '/node_modules/a/index.ts' does not exist. +File '/node_modules/a/index.tsx' does not exist. +File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'. +======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== +======== Resolving module './index' from '/node_modules/foo/use.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/node_modules/foo/index.ts' does not exist. +File '/node_modules/foo/index.tsx' does not exist. +File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'peerDependencies' field. +======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo@1.2.3'. ======== +======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/node_modules/a/package.json' does not exist according to earlier cached lookups. +File '/node_modules/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'. +File '/node_modules/a/node_modules/foo.ts' does not exist. +File '/node_modules/a/node_modules/foo.tsx' does not exist. +File '/node_modules/a/node_modules/foo.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' does not have a 'main' field. +File '/node_modules/a/node_modules/foo/index.ts' does not exist. +File '/node_modules/a/node_modules/foo/index.tsx' does not exist. +File '/node_modules/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/a/node_modules/foo/index.d.ts', result '/node_modules/a/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/node_modules/a/node_modules/foo/index.d.ts' with Package ID 'foo@1.2.3'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff new file mode 100644 index 0000000000..f325a37bc6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff @@ -0,0 +1,70 @@ +--- old.duplicatePackage_relativeImportWithinPackage.trace.json ++++ new.duplicatePackage_relativeImportWithinPackage.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/use' from '/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/foo/package.json'. + 'package.json' does not have a 'typesVersions' field. +@@= skipped -8, +10 lines =@@ + File '/node_modules/foo/use.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/foo/use.d.ts', result '/node_modules/foo/use.d.ts'. +-======== Module name 'foo/use' was successfully resolved to '/node_modules/foo/use.d.ts' with Package ID 'foo/use.d.ts@1.2.3'. ======== ++======== Module name 'foo/use' was successfully resolved to '/node_modules/foo/use.d.ts' with Package ID 'foo@1.2.3'. ======== + ======== Resolving module 'a' from '/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/a/package.json' does not exist. + File '/node_modules/a.ts' does not exist. +@@= skipped -14, +16 lines =@@ + File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'. + ======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. + ======== Resolving module './index' from '/node_modules/foo/use.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/node_modules/foo/index.ts' does not exist. + File '/node_modules/foo/index.tsx' does not exist. + File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. + File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ======== +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-File '/node_modules/a/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. ++'package.json' does not have a 'peerDependencies' field. ++======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo@1.2.3'. ======== + ======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/node_modules/a/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'. + File '/node_modules/a/node_modules/foo.ts' does not exist. +@@= skipped -30, +31 lines =@@ + File '/node_modules/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/a/node_modules/foo/index.d.ts', result '/node_modules/a/node_modules/foo/index.d.ts'. +-======== Module name 'foo' was successfully resolved to '/node_modules/a/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ======== +-File '/node_modules/a/node_modules/foo/package.json' exists according to earlier cached lookups. ++======== Module name 'foo' was successfully resolved to '/node_modules/a/node_modules/foo/index.d.ts' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json new file mode 100644 index 0000000000..c6dc4bf056 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json @@ -0,0 +1,61 @@ +======== Resolving module '@foo/bar/use' from '/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/@foo/bar/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/node_modules/@foo/bar/use.ts' does not exist. +File '/node_modules/@foo/bar/use.tsx' does not exist. +File '/node_modules/@foo/bar/use.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/@foo/bar/use.d.ts', result '/node_modules/@foo/bar/use.d.ts'. +======== Module name '@foo/bar/use' was successfully resolved to '/node_modules/@foo/bar/use.d.ts' with Package ID '@foo/bar@1.2.3'. ======== +======== Resolving module 'a' from '/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/a/package.json' does not exist. +File '/node_modules/a.ts' does not exist. +File '/node_modules/a.tsx' does not exist. +File '/node_modules/a.d.ts' does not exist. +File '/node_modules/a/index.ts' does not exist. +File '/node_modules/a/index.tsx' does not exist. +File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'. +======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== +======== Resolving module './index' from '/node_modules/@foo/bar/use.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/node_modules/@foo/bar/index.ts' does not exist. +File '/node_modules/@foo/bar/index.tsx' does not exist. +File '/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result. +File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'peerDependencies' field. +======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar@1.2.3'. ======== +======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/node_modules/a/package.json' does not exist according to earlier cached lookups. +File '/node_modules/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'. +File '/node_modules/a/node_modules/@foo/bar.ts' does not exist. +File '/node_modules/a/node_modules/@foo/bar.tsx' does not exist. +File '/node_modules/a/node_modules/@foo/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' does not have a 'main' field. +File '/node_modules/a/node_modules/@foo/bar/index.ts' does not exist. +File '/node_modules/a/node_modules/@foo/bar/index.tsx' does not exist. +File '/node_modules/a/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/a/node_modules/@foo/bar/index.d.ts', result '/node_modules/a/node_modules/@foo/bar/index.d.ts'. +======== Module name '@foo/bar' was successfully resolved to '/node_modules/a/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar@1.2.3'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff new file mode 100644 index 0000000000..c0f3fd7f96 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff @@ -0,0 +1,70 @@ +--- old.duplicatePackage_relativeImportWithinPackage_scoped.trace.json ++++ new.duplicatePackage_relativeImportWithinPackage_scoped.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@foo/bar/use' from '/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/@foo/bar/package.json'. + 'package.json' does not have a 'typesVersions' field. +@@= skipped -8, +10 lines =@@ + File '/node_modules/@foo/bar/use.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/@foo/bar/use.d.ts', result '/node_modules/@foo/bar/use.d.ts'. +-======== Module name '@foo/bar/use' was successfully resolved to '/node_modules/@foo/bar/use.d.ts' with Package ID '@foo/bar/use.d.ts@1.2.3'. ======== ++======== Module name '@foo/bar/use' was successfully resolved to '/node_modules/@foo/bar/use.d.ts' with Package ID '@foo/bar@1.2.3'. ======== + ======== Resolving module 'a' from '/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/a/package.json' does not exist. + File '/node_modules/a.ts' does not exist. +@@= skipped -14, +16 lines =@@ + File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'. + ======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== +-File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. + ======== Resolving module './index' from '/node_modules/@foo/bar/use.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/node_modules/@foo/bar/index.ts' does not exist. + File '/node_modules/@foo/bar/index.tsx' does not exist. + File '/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result. + File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. +-======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ======== +-File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. +-File '/node_modules/a/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. ++'package.json' does not have a 'peerDependencies' field. ++======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar@1.2.3'. ======== + ======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/node_modules/a/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'. + File '/node_modules/a/node_modules/@foo/bar.ts' does not exist. +@@= skipped -30, +31 lines =@@ + File '/node_modules/a/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/a/node_modules/@foo/bar/index.d.ts', result '/node_modules/a/node_modules/@foo/bar/index.d.ts'. +-======== Module name '@foo/bar' was successfully resolved to '/node_modules/a/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ======== +-File '/node_modules/a/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. ++======== Module name '@foo/bar' was successfully resolved to '/node_modules/a/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json new file mode 100644 index 0000000000..d6bbd94cff --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json @@ -0,0 +1,28 @@ +======== Resolving module '.' from '/a/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/a/index.ts' exists - use it as a name resolution result. +======== Module name '.' was successfully resolved to '/a/index.ts'. ======== +======== Resolving module './' from '/a/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/a/index.ts' exists - use it as a name resolution result. +======== Module name './' was successfully resolved to '/a/index.ts'. ======== +======== Resolving module '..' from '/a/b/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/a/package.json' does not exist. +File '/a/index.ts' exists - use it as a name resolution result. +======== Module name '..' was successfully resolved to '/a/index.ts'. ======== +======== Resolving module '../' from '/a/b/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/a/index.ts' exists - use it as a name resolution result. +======== Module name '../' was successfully resolved to '/a/index.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff new file mode 100644 index 0000000000..c8d56f1160 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff @@ -0,0 +1,41 @@ +--- old.importWithTrailingSlash.trace.json ++++ new.importWithTrailingSlash.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '.' from '/a/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. +-File '/a/package.json' does not exist. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/a/package.json' does not exist according to earlier cached lookups. + File '/a/index.ts' exists - use it as a name resolution result. + ======== Module name '.' was successfully resolved to '/a/index.ts'. ======== + ======== Resolving module './' from '/a/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/a/package.json' does not exist according to earlier cached lookups. + File '/a/index.ts' exists - use it as a name resolution result. + ======== Module name './' was successfully resolved to '/a/index.ts'. ======== + ======== Resolving module '..' from '/a/b/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. +-File '/a/package.json' does not exist according to earlier cached lookups. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/a/package.json' does not exist. + File '/a/index.ts' exists - use it as a name resolution result. + ======== Module name '..' was successfully resolved to '/a/index.ts'. ======== + ======== Resolving module '../' from '/a/b/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/a/package.json' does not exist according to earlier cached lookups. + File '/a/index.ts' exists - use it as a name resolution result. + ======== Module name '../' was successfully resolved to '/a/index.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json new file mode 100644 index 0000000000..86124dfb52 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './foo/' from '/a.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, JavaScript, Declaration, JSON. +Directory '/foo/' does not exist, skipping all lookups in it. +======== Module name './foo/' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff new file mode 100644 index 0000000000..f5f1ce8973 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff @@ -0,0 +1,13 @@ +--- old.importWithTrailingSlash_noResolve.trace.json ++++ new.importWithTrailingSlash_noResolve.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo/' from '/a.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, Declaration. +-Directory '/foo/' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/foo/', target file types: JavaScript. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, JavaScript, Declaration, JSON. + Directory '/foo/' does not exist, skipping all lookups in it. + ======== Module name './foo/' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff b/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff new file mode 100644 index 0000000000..a484855b34 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff @@ -0,0 +1,5 @@ +--- old.libReplacement(libreplacement=false).trace.json ++++ new.libReplacement(libreplacement=false).trace.json +@@= skipped -0, +0 lines =@@ +-[] ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff b/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff new file mode 100644 index 0000000000..c02620ca25 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff @@ -0,0 +1,1018 @@ +--- old.libReplacement(libreplacement=true).trace.json ++++ new.libReplacement(libreplacement=true).trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext' +-Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024' from '/.src/__lib_node_modules_lookup_lib.es2024.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024' +-Loading module '@typescript/lib-es2024' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023' +-Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2023' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022' +-Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021' +-Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2021' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020' +-Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019' +-Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2019' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018' +-Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2018' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017' +-Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2016' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2016' +-Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2016' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015' +-Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015' was not resolved. ======== +-======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es5' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/core' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/core' +-Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/core' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/collection' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/collection' +-Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/collection' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/iterable' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/iterable' +-Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/iterable' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/symbol' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/symbol' +-Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/symbol' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/generator' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/generator' +-Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/generator' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/promise' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/promise' +-Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/promise' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/proxy' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/proxy' +-Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/proxy' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/reflect' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/reflect' +-Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/reflect' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/symbol-wellknown' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2015/symbol-wellknown' +-Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2016/array-include' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2016/array-include' +-Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2016/array-include' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2016/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2016/intl' +-Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2016/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/arraybuffer' from '/.src/__lib_node_modules_lookup_lib.es2017.arraybuffer.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/arraybuffer' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/arraybuffer' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/arraybuffer' +-Loading module '@typescript/lib-es2017/arraybuffer' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/arraybuffer' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/date' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/date' +-Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/date' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/intl' +-Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/object' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/object' +-Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/object' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/sharedmemory' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/sharedmemory' +-Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/string' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/string' +-Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/string' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/typedarrays' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2017/typedarrays' +-Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/asynciterable' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/asynciterable' +-Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/asyncgenerator' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/asyncgenerator' +-Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/promise' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/promise' +-Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2018/promise' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/regexp' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/regexp' +-Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2018/regexp' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2018/intl' +-Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2018/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/array' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/array' +-Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2019/array' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/object' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/object' +-Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2019/object' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/string' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/string' +-Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2019/string' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/symbol' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/symbol' +-Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2019/symbol' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2019/intl' +-Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2019/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/bigint' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/bigint' +-Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/bigint' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/intl' +-Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/date' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/date' +-Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/date' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/number' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/number' +-Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/number' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/promise' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/promise' +-Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/promise' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/sharedmemory' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/sharedmemory' +-Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/string' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/string' +-Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/string' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/symbol-wellknown' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2020/symbol-wellknown' +-Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/promise' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/promise' +-Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2021/promise' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/string' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/string' +-Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2021/string' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/weakref' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/weakref' +-Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2021/weakref' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2021/intl' +-Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2021/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/array' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/array' +-Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022/array' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/error' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/error' +-Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022/error' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/intl' +-Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/object' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/object' +-Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022/object' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/regexp' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/regexp' +-Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022/regexp' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/string' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2022/string' +-Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2022/string' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023/array' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023/array' +-Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2023/array' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023/collection' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023/collection' +-Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2023/collection' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2023/intl' +-Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2023/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/arraybuffer' from '/.src/__lib_node_modules_lookup_lib.es2024.arraybuffer.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/arraybuffer' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/arraybuffer' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/arraybuffer' +-Loading module '@typescript/lib-es2024/arraybuffer' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/arraybuffer' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/collection' from '/.src/__lib_node_modules_lookup_lib.es2024.collection.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/collection' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/collection' +-Loading module '@typescript/lib-es2024/collection' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/collection' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/object' from '/.src/__lib_node_modules_lookup_lib.es2024.object.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/object' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/object' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/object' +-Loading module '@typescript/lib-es2024/object' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/object' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/promise' from '/.src/__lib_node_modules_lookup_lib.es2024.promise.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/promise' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/promise' +-Loading module '@typescript/lib-es2024/promise' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/promise' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/regexp' from '/.src/__lib_node_modules_lookup_lib.es2024.regexp.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/regexp' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/regexp' +-Loading module '@typescript/lib-es2024/regexp' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/regexp' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2024.sharedmemory.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/sharedmemory' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/sharedmemory' +-Loading module '@typescript/lib-es2024/sharedmemory' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/sharedmemory' was not resolved. ======== +-======== Resolving module '@typescript/lib-es2024/string' from '/.src/__lib_node_modules_lookup_lib.es2024.string.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es2024/string' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/string' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es2024/string' +-Loading module '@typescript/lib-es2024/string' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es2024/string' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/intl' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/intl' +-Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/intl' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/decorators' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/decorators' +-Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/decorators' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/disposable' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/disposable' +-Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/disposable' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/collection' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/collection' +-Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/collection' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/array' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/array' +-Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/array' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/iterator' from '/.src/__lib_node_modules_lookup_lib.esnext.iterator.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/iterator' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/iterator' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/iterator' +-Loading module '@typescript/lib-esnext/iterator' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/iterator' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/promise' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/promise' +-Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/promise' was not resolved. ======== +-======== Resolving module '@typescript/lib-esnext/float16' from '/.src/__lib_node_modules_lookup_lib.esnext.float16.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-esnext/float16' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/float16' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-esnext/float16' +-Loading module '@typescript/lib-esnext/float16' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-esnext/float16' was not resolved. ========" ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json new file mode 100644 index 0000000000..b6e01e49bd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json @@ -0,0 +1,19 @@ +======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +File '/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/node_modules/@typescript/lib-dom.ts' does not exist. +File '/node_modules/@typescript/lib-dom.tsx' does not exist. +File '/node_modules/@typescript/lib-dom.d.ts' does not exist. +File '/node_modules/@typescript/lib-dom/index.ts' does not exist. +File '/node_modules/@typescript/lib-dom/index.tsx' does not exist. +File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff new file mode 100644 index 0000000000..3d165fceac --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff @@ -0,0 +1,103 @@ +--- old.libTypeScriptOverrideSimple.trace.json ++++ new.libTypeScriptOverrideSimple.trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@typescript/lib-dom/package.json' does not exist. +-File '/node_modules/@typescript/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + Scoped package detected, looking in 'typescript__lib-dom' +-File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@typescript/lib-dom/package.json' does not exist. + File '/node_modules/@typescript/lib-dom.ts' does not exist. + File '/node_modules/@typescript/lib-dom.tsx' does not exist. + File '/node_modules/@typescript/lib-dom.d.ts' does not exist. +@@= skipped -16, +16 lines =@@ + File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'. + ======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ======== +-======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-File '/node_modules/@typescript/lib-es5.ts' does not exist. +-File '/node_modules/@typescript/lib-es5.tsx' does not exist. +-File '/node_modules/@typescript/lib-es5.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-File '/node_modules/@typescript/lib-es5.js' does not exist. +-File '/node_modules/@typescript/lib-es5.jsx' does not exist. +-======== Module name '@typescript/lib-es5' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-File '/node_modules/@typescript/lib-decorators.ts' does not exist. +-File '/node_modules/@typescript/lib-decorators.tsx' does not exist. +-File '/node_modules/@typescript/lib-decorators.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-File '/node_modules/@typescript/lib-decorators.js' does not exist. +-File '/node_modules/@typescript/lib-decorators.jsx' does not exist. +-======== Module name '@typescript/lib-decorators' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== +-======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== +-======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-File '/node_modules/@typescript/lib-scripthost.ts' does not exist. +-File '/node_modules/@typescript/lib-scripthost.tsx' does not exist. +-File '/node_modules/@typescript/lib-scripthost.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-File '/node_modules/@typescript/lib-scripthost.js' does not exist. +-File '/node_modules/@typescript/lib-scripthost.jsx' does not exist. +-======== Module name '@typescript/lib-scripthost' was not resolved. ========" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json new file mode 100644 index 0000000000..baff5c90f6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json @@ -0,0 +1,16 @@ +======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/somepath/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom.tsx' does not exist. +File '/somepath/node_modules/@typescript/lib-dom.d.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/index.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/index.tsx' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff new file mode 100644 index 0000000000..ff7db98c44 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff @@ -0,0 +1,98 @@ +--- old.libTypeScriptOverrideSimpleConfig.trace.json ++++ new.libTypeScriptOverrideSimpleConfig.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/somepath/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. + File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist. +@@= skipped -10, +13 lines =@@ + File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. + ======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ======== +-File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +-File '/somepath/node_modules/@typescript/package.json' does not exist. +-File '/somepath/node_modules/package.json' does not exist. +-File '/somepath/package.json' does not exist. +-File '/package.json' does not exist. +-======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-es5.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-es5.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-es5.d.ts' does not exist. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/somepath/node_modules/@typescript/lib-es5.js' does not exist. +-File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es5' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-decorators.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-decorators.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-decorators.d.ts' does not exist. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/somepath/node_modules/@typescript/lib-decorators.js' does not exist. +-File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== +-======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== +-======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-scripthost.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-scripthost.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-scripthost.d.ts' does not exist. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist. +-File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-scripthost' was not resolved. ========" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json new file mode 100644 index 0000000000..379a5108ef --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json @@ -0,0 +1,35 @@ +======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +File '/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/node_modules/@typescript/lib-dom.ts' does not exist. +File '/node_modules/@typescript/lib-dom.tsx' does not exist. +File '/node_modules/@typescript/lib-dom.d.ts' does not exist. +File '/node_modules/@typescript/lib-dom/index.ts' does not exist. +File '/node_modules/@typescript/lib-dom/index.tsx' does not exist. +File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom/iterable' +File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@typescript/lib-dom/iterable.ts' does not exist. +File '/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. +File '/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@typescript/lib-dom/iterable.d.ts', result '/node_modules/@typescript/lib-dom/iterable.d.ts'. +======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff new file mode 100644 index 0000000000..2da7d08cd3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff @@ -0,0 +1,135 @@ +--- old.libTypeScriptSubfileResolving.trace.json ++++ new.libTypeScriptSubfileResolving.trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@typescript/lib-dom/package.json' does not exist. +-File '/node_modules/@typescript/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-dom/iterable' +-File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@typescript/lib-dom/iterable.ts' does not exist. +-File '/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. +-File '/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/@typescript/lib-dom/iterable.d.ts', result '/node_modules/@typescript/lib-dom/iterable.d.ts'. +-======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== +-======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-File '/node_modules/@typescript/lib-es5.ts' does not exist. +-File '/node_modules/@typescript/lib-es5.tsx' does not exist. +-File '/node_modules/@typescript/lib-es5.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-File '/node_modules/@typescript/lib-es5.js' does not exist. +-File '/node_modules/@typescript/lib-es5.jsx' does not exist. +-======== Module name '@typescript/lib-es5' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-File '/node_modules/@typescript/lib-decorators.ts' does not exist. +-File '/node_modules/@typescript/lib-decorators.tsx' does not exist. +-File '/node_modules/@typescript/lib-decorators.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-File '/node_modules/@typescript/lib-decorators.js' does not exist. +-File '/node_modules/@typescript/lib-decorators.jsx' does not exist. +-======== Module name '@typescript/lib-decorators' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== + ======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + Scoped package detected, looking in 'typescript__lib-dom' +-File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@typescript/lib-dom/package.json' does not exist. + File '/node_modules/@typescript/lib-dom.ts' does not exist. + File '/node_modules/@typescript/lib-dom.tsx' does not exist. + File '/node_modules/@typescript/lib-dom.d.ts' does not exist. +@@= skipped -78, +16 lines =@@ + File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'. + ======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ======== +-======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== +-======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-File '/node_modules/@typescript/lib-scripthost.ts' does not exist. +-File '/node_modules/@typescript/lib-scripthost.tsx' does not exist. +-File '/node_modules/@typescript/lib-scripthost.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/.src/node_modules' does not exist, skipping all lookups in it. +-File '/node_modules/@typescript/lib-scripthost.js' does not exist. +-File '/node_modules/@typescript/lib-scripthost.jsx' does not exist. +-======== Module name '@typescript/lib-scripthost' was not resolved. ========" ++======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/.src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Scoped package detected, looking in 'typescript__lib-dom/iterable' ++File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@typescript/lib-dom/iterable.ts' does not exist. ++File '/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. ++File '/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@typescript/lib-dom/iterable.d.ts', result '/node_modules/@typescript/lib-dom/iterable.d.ts'. ++======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json new file mode 100644 index 0000000000..e0a53d77b0 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json @@ -0,0 +1,29 @@ +======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/somepath/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. +File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom.tsx' does not exist. +File '/somepath/node_modules/@typescript/lib-dom.d.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/index.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/index.tsx' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom/iterable' from '/somepath/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/somepath/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +File '/somepath/node_modules/@typescript/lib-dom/iterable.ts' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. +File '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. +Resolving real path for '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts', result '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. +======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff new file mode 100644 index 0000000000..aec8cd6928 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff @@ -0,0 +1,127 @@ +--- old.libTypeScriptSubfileResolvingConfig.trace.json ++++ new.libTypeScriptSubfileResolvingConfig.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving module '@typescript/lib-dom/iterable' from '/somepath/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. +-File '/somepath/node_modules/@typescript/lib-dom/iterable.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts', result '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. +-======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== +-File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +-File '/somepath/node_modules/@typescript/package.json' does not exist. +-File '/somepath/node_modules/package.json' does not exist. +-File '/somepath/package.json' does not exist. +-File '/package.json' does not exist. +-======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-es5.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-es5.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-es5.d.ts' does not exist. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-es5' +-Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/somepath/node_modules/@typescript/lib-es5.js' does not exist. +-File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-es5' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-decorators.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-decorators.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-decorators.d.ts' does not exist. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators' +-Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/somepath/node_modules/@typescript/lib-decorators.js' does not exist. +-File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators' was not resolved. ======== +-======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-decorators/legacy' +-Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== + ======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/somepath/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. ++File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. + File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist. + File '/somepath/node_modules/@typescript/lib-dom.tsx' does not exist. + File '/somepath/node_modules/@typescript/lib-dom.d.ts' does not exist. +@@= skipped -71, +13 lines =@@ + File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. + ======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ======== +-File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. +-File '/somepath/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. +-File '/somepath/node_modules/package.json' does not exist according to earlier cached lookups. ++======== Resolving module '@typescript/lib-dom/iterable' from '/somepath/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + File '/somepath/package.json' does not exist according to earlier cached lookups. + File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-webworker/importscripts' +-Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== +-======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/somepath/node_modules/@typescript/lib-scripthost.ts' does not exist. +-File '/somepath/node_modules/@typescript/lib-scripthost.tsx' does not exist. +-File '/somepath/node_modules/@typescript/lib-scripthost.d.ts' does not exist. +-Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'typescript__lib-scripthost' +-Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist. +-File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-======== Module name '@typescript/lib-scripthost' was not resolved. ========" ++Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. ++File '/somepath/node_modules/@typescript/lib-dom/iterable.ts' does not exist. ++File '/somepath/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. ++File '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts', result '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ++======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json b/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json new file mode 100644 index 0000000000..00b638eedf --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json @@ -0,0 +1,21 @@ +======== Resolving module 'shortid' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/shortid/package.json' does not exist. +File '/node_modules/shortid.ts' does not exist. +File '/node_modules/shortid.tsx' does not exist. +File '/node_modules/shortid.d.ts' does not exist. +File '/node_modules/shortid/index.ts' does not exist. +File '/node_modules/shortid/index.tsx' does not exist. +File '/node_modules/shortid/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/shortid/package.json' does not exist according to earlier cached lookups. +File '/node_modules/shortid.js' does not exist. +File '/node_modules/shortid.jsx' does not exist. +File '/node_modules/shortid/index.js' exists - use it as a name resolution result. +Resolving real path for '/node_modules/shortid/index.js', result '/node_modules/shortid/index.js'. +======== Module name 'shortid' was successfully resolved to '/node_modules/shortid/index.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff b/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff new file mode 100644 index 0000000000..996b805c6b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff @@ -0,0 +1,23 @@ +--- old.maxNodeModuleJsDepthDefaultsToZero.trace.json ++++ new.maxNodeModuleJsDepthDefaultsToZero.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'shortid' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/shortid/package.json' does not exist. + File '/node_modules/shortid.ts' does not exist. +@@= skipped -9, +11 lines =@@ + File '/node_modules/shortid/index.tsx' does not exist. + File '/node_modules/shortid/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'shortid' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/shortid/package.json' does not exist according to earlier cached lookups. + File '/node_modules/shortid.js' does not exist. + File '/node_modules/shortid.jsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json b/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json new file mode 100644 index 0000000000..fdcda0f245 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json @@ -0,0 +1,36 @@ +======== Resolving module 'dep' from '/main.js'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/dep/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './import.mjs'. +File name '/node_modules/dep/import.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/dep/import.mts' does not exist. +File '/node_modules/dep/import.d.mts' exists - use it as a name resolution result. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/dep/import.d.mts', result '/node_modules/dep/import.d.mts'. +======== Module name 'dep' was successfully resolved to '/node_modules/dep/import.d.mts'. ======== +======== Resolving module 'dep' from '/main.js'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/dep/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'import'. +Matched 'exports' condition 'require'. +Using 'exports' subpath '.' with target './require.js'. +File name '/node_modules/dep/require.js' has a '.js' extension - stripping it. +File '/node_modules/dep/require.ts' does not exist. +File '/node_modules/dep/require.tsx' does not exist. +File '/node_modules/dep/require.d.ts' exists - use it as a name resolution result. +Resolved under condition 'require'. +Exiting conditional exports. +Resolving real path for '/node_modules/dep/require.d.ts', result '/node_modules/dep/require.d.ts'. +======== Module name 'dep' was successfully resolved to '/node_modules/dep/require.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff new file mode 100644 index 0000000000..327889abc1 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff @@ -0,0 +1,7 @@ +--- old.modulePreserve2.trace.json ++++ new.modulePreserve2.trace.json +@@= skipped -33, +33 lines =@@ + Exiting conditional exports. + Resolving real path for '/node_modules/dep/require.d.ts', result '/node_modules/dep/require.d.ts'. + ======== Module name 'dep' was successfully resolved to '/node_modules/dep/require.d.ts'. ======== +-File '/node_modules/dep/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json new file mode 100644 index 0000000000..baaaff51cd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json @@ -0,0 +1,24 @@ +======== Resolving module 'react/jsx-runtime' from '/index.tsx'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/react/jsx-runtime.d.ts', result '/node_modules/@types/react/jsx-runtime.d.ts'. +======== Module name 'react/jsx-runtime' was successfully resolved to '/node_modules/@types/react/jsx-runtime.d.ts'. ======== +======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/react/package.json' does not exist. +File '/node_modules/@types/react/index.d.ts' does not exist. +Looking up in 'node_modules' folder, initial location '/.src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/react.d.ts' does not exist. +File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/react.d.ts' does not exist. +File '/node_modules/@types/react/index.d.ts' does not exist. +======== Type reference directive 'react' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff new file mode 100644 index 0000000000..6393bc991a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff @@ -0,0 +1,29 @@ +--- old.modulePreserve3.trace.json ++++ new.modulePreserve3.trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@types/react/package.json' does not exist. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module 'react/jsx-runtime' from '/index.tsx'. ======== + Module resolution kind is not specified, using 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +-File '/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist. + Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. +@@= skipped -14, +10 lines =@@ + ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +-File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@types/react/package.json' does not exist. + File '/node_modules/@types/react/index.d.ts' does not exist. + Looking up in 'node_modules' folder, initial location '/.src'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/react.d.ts' does not exist. + File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. + File '/node_modules/@types/react.d.ts' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json new file mode 100644 index 0000000000..1014303d44 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json @@ -0,0 +1,11 @@ +======== Resolving module 'phaser' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'phaser' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff new file mode 100644 index 0000000000..176b22d78b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff @@ -0,0 +1,34 @@ +--- old.moduleResolutionAsTypeReferenceDirective.trace.json ++++ new.moduleResolutionAsTypeReferenceDirective.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'phaser' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. +-File '/typings/phaser.d.ts' does not exist. +-Found 'package.json' at '/typings/phaser/package.json'. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. +-File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. +-'package.json' does not have a 'peerDependencies' field. +-Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. +-======== Module name 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3'. ======== +-======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ======== +-Resolving with primary search path '/typings'. +-File '/typings/phaser.d.ts' does not exist. +-File '/typings/phaser/package.json' exists according to earlier cached lookups. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. +-File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. +-======== Type reference directive 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3', primary: true. ======== ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'phaser' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json new file mode 100644 index 0000000000..1014303d44 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json @@ -0,0 +1,11 @@ +======== Resolving module 'phaser' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'phaser' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff new file mode 100644 index 0000000000..a31f463da3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff @@ -0,0 +1,34 @@ +--- old.moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json ++++ new.moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'phaser' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. +-File '/typings/phaser.d.ts' does not exist. +-Found 'package.json' at '/typings/phaser/package.json'. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. +-File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. +-'package.json' does not have a 'peerDependencies' field. +-Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. +-======== Module name 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3'. ======== +-======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ======== +-Resolving with primary search path '/typings'. +-File '/typings/phaser.d.ts' does not exist. +-File '/typings/phaser/package.json' exists according to earlier cached lookups. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. +-File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. +-======== Type reference directive 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3', primary: true. ======== ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'phaser' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json new file mode 100644 index 0000000000..2b59104e4c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json @@ -0,0 +1,72 @@ +======== Resolving module '@scoped/typescache' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'scoped__typescache' +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@scoped/typescache' was not resolved. ======== +======== Resolving module '@mangled/typescache' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'mangled__typescache' +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@mangled/typescache' was not resolved. ======== +======== Resolving module '@scoped/nodemodulescache' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'scoped__nodemodulescache' +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@scoped/nodemodulescache' was not resolved. ======== +======== Resolving module '@mangled/nodemodulescache' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'mangled__nodemodulescache' +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@mangled/nodemodulescache' was not resolved. ======== +======== Resolving module '@scoped/attypescache' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'scoped__attypescache' +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@scoped/attypescache' was not resolved. ======== +======== Resolving module '@mangled/attypescache' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'mangled__attypescache' +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@mangled/attypescache' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff new file mode 100644 index 0000000000..751e379338 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff @@ -0,0 +1,140 @@ +--- old.moduleResolutionAsTypeReferenceDirectiveScoped.trace.json ++++ new.moduleResolutionAsTypeReferenceDirectiveScoped.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@scoped/typescache' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Scoped package detected, looking in 'scoped__typescache' +-File '/a/types/@scoped/typescache.d.ts' does not exist. +-File '/a/types/@scoped/typescache/package.json' does not exist. +-File '/a/types/@scoped/typescache/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/a/types/@scoped/typescache/index.d.ts', result '/a/types/@scoped/typescache/index.d.ts'. +-======== Module name '@scoped/typescache' was successfully resolved to '/a/types/@scoped/typescache/index.d.ts'. ======== ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name '@scoped/typescache' was not resolved. ======== + ======== Resolving module '@mangled/typescache' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'mangled__typescache' +-Scoped package detected, looking in 'mangled__typescache' +-File '/a/node_modules/@types/mangled__typescache.d.ts' does not exist. +-Loading module '@mangled/typescache' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Scoped package detected, looking in 'mangled__typescache' ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name '@mangled/typescache' was not resolved. ======== + ======== Resolving module '@scoped/nodemodulescache' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Scoped package detected, looking in 'scoped__nodemodulescache' +-File '/a/types/@scoped/nodemodulescache.d.ts' does not exist. +-File '/a/node_modules/@scoped/nodemodulescache.d.ts' does not exist. +-File '/a/node_modules/@scoped/nodemodulescache/package.json' does not exist. +-File '/a/node_modules/@scoped/nodemodulescache/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/a/node_modules/@scoped/nodemodulescache/index.d.ts', result '/a/node_modules/@scoped/nodemodulescache/index.d.ts'. +-======== Module name '@scoped/nodemodulescache' was successfully resolved to '/a/node_modules/@scoped/nodemodulescache/index.d.ts'. ======== ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name '@scoped/nodemodulescache' was not resolved. ======== + ======== Resolving module '@mangled/nodemodulescache' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'mangled__nodemodulescache' +-Scoped package detected, looking in 'mangled__nodemodulescache' +-File '/a/node_modules/@types/mangled__nodemodulescache.d.ts' does not exist. +-Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Scoped package detected, looking in 'mangled__nodemodulescache' ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name '@mangled/nodemodulescache' was not resolved. ======== + ======== Resolving module '@scoped/attypescache' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'scoped__attypescache' +-File '/a/types/@scoped/attypescache.d.ts' does not exist. +-File '/a/node_modules/@scoped/attypescache.d.ts' does not exist. +-Scoped package detected, looking in 'scoped__attypescache' +-File '/a/node_modules/@types/scoped__attypescache.d.ts' does not exist. +-Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Scoped package detected, looking in 'scoped__attypescache' ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name '@scoped/attypescache' was not resolved. ======== + ======== Resolving module '@mangled/attypescache' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Scoped package detected, looking in 'mangled__attypescache' +-Scoped package detected, looking in 'mangled__attypescache' +-File '/a/node_modules/@types/mangled__attypescache.d.ts' does not exist. +-File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist. +-File '/a/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/a/node_modules/@types/mangled__attypescache/index.d.ts', result '/a/node_modules/@types/mangled__attypescache/index.d.ts'. +-======== Module name '@mangled/attypescache' was successfully resolved to '/a/node_modules/@types/mangled__attypescache/index.d.ts'. ======== +-File '/a/node_modules/@scoped/nodemodulescache/package.json' does not exist according to earlier cached lookups. +-File '/a/node_modules/@scoped/package.json' does not exist. +-File '/a/node_modules/package.json' does not exist. +-File '/a/package.json' does not exist. +-File '/package.json' does not exist. +-File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups. +-File '/a/node_modules/@types/package.json' does not exist. +-File '/a/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/a/package.json' does not exist according to earlier cached lookups. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving type reference directive 'dummy', containing file '/__inferred type names__.ts', root directory '/a/types,/a/node_modules,/a/node_modules/@types'. ======== +-Resolving with primary search path '/a/types, /a/node_modules, /a/node_modules/@types'. +-File '/a/types/dummy.d.ts' does not exist. +-File '/a/types/dummy/package.json' does not exist. +-File '/a/types/dummy/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/a/types/dummy/index.d.ts', result '/a/types/dummy/index.d.ts'. +-======== Type reference directive 'dummy' was successfully resolved to '/a/types/dummy/index.d.ts', primary: true. ======== ++Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Scoped package detected, looking in 'mangled__attypescache' ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name '@mangled/attypescache' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json new file mode 100644 index 0000000000..bedfe22207 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json @@ -0,0 +1,80 @@ +======== Resolving module 'anotherLib' from '/project/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'anotherLib'. +File '/project/src/package.json' does not exist. +File '/project/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/project/src/node_modules' does not exist, skipping all lookups in it. +Directory '/project/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/project/node_modules/anotherLib/package.json' does not exist. +File '/project/node_modules/anotherLib.ts' does not exist. +File '/project/node_modules/anotherLib.tsx' does not exist. +File '/project/node_modules/anotherLib.d.ts' does not exist. +File '/project/node_modules/anotherLib/index.ts' does not exist. +File '/project/node_modules/anotherLib/index.tsx' does not exist. +File '/project/node_modules/anotherLib/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/project/node_modules/anotherLib/index.d.ts', result '/project/node_modules/anotherLib/index.d.ts'. +======== Module name 'anotherLib' was successfully resolved to '/project/node_modules/anotherLib/index.d.ts'. ======== +======== Resolving module '@shared/lib/app' from '/project/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@shared/lib/app'. +Module name '@shared/lib/app', matched pattern '@shared/*'. +Trying substitution '../shared/*', candidate module location: '../shared/lib/app'. +Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/shared/lib/app.ts' does not exist. +File '/shared/lib/app.tsx' does not exist. +File '/shared/lib/app.d.ts' exists - use it as a name resolution result. +======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ======== +======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'. +File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups. +File '/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/project/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/project/node_modules/anotherLib/node_modules' does not exist, skipping all lookups in it. +Directory '/project/node_modules/anotherLib/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/project/node_modules/troublesome-lib/lib/Compactable.ts' does not exist. +File '/project/node_modules/troublesome-lib/lib/Compactable.tsx' does not exist. +File '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/project/node_modules/troublesome-lib/lib/Compactable.d.ts', result '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. +======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== +======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist. +File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist. +File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. +File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'peerDependencies' field. +======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== +======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Option'. +File '/shared/lib/package.json' does not exist. +File '/shared/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/shared/lib/node_modules' does not exist, skipping all lookups in it. +Directory '/shared/lib/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/shared/node_modules/troublesome-lib/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/shared/node_modules/troublesome-lib/lib/Option.ts' does not exist. +File '/shared/node_modules/troublesome-lib/lib/Option.tsx' does not exist. +File '/shared/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/shared/node_modules/troublesome-lib/lib/Option.d.ts', result '/shared/node_modules/troublesome-lib/lib/Option.d.ts'. +======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff new file mode 100644 index 0000000000..c417d87fc9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff @@ -0,0 +1,120 @@ +--- old.moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json ++++ new.moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'anotherLib' from '/project/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'anotherLib'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'. +-Resolving module name 'anotherLib' relative to base url '/project' - '/project/anotherLib'. +-Loading module as file / folder, candidate module location '/project/anotherLib', target file types: TypeScript, Declaration. +-File '/project/anotherLib.ts' does not exist. +-File '/project/anotherLib.tsx' does not exist. +-File '/project/anotherLib.d.ts' does not exist. +-Directory '/project/anotherLib' does not exist, skipping all lookups in it. +-Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File '/project/src/package.json' does not exist. ++File '/project/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/project/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/project/src/node_modules/@types' does not exist, skipping all lookups in it. + File '/project/node_modules/anotherLib/package.json' does not exist. + File '/project/node_modules/anotherLib.ts' does not exist. + File '/project/node_modules/anotherLib.tsx' does not exist. +@@= skipped -21, +18 lines =@@ + Resolving real path for '/project/node_modules/anotherLib/index.d.ts', result '/project/node_modules/anotherLib/index.d.ts'. + ======== Module name 'anotherLib' was successfully resolved to '/project/node_modules/anotherLib/index.d.ts'. ======== + ======== Resolving module '@shared/lib/app' from '/project/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name '@shared/lib/app'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '@shared/lib/app'. + Module name '@shared/lib/app', matched pattern '@shared/*'. + Trying substitution '../shared/*', candidate module location: '../shared/lib/app'. +-Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/shared/lib/app.ts' does not exist. + File '/shared/lib/app.tsx' does not exist. + File '/shared/lib/app.d.ts' exists - use it as a name resolution result. + ======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ======== +-File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups. +-File '/project/node_modules/package.json' does not exist. +-File '/project/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'. +-Resolving module name 'troublesome-lib/lib/Compactable' relative to base url '/project' - '/project/troublesome-lib/lib/Compactable'. +-Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Compactable', target file types: TypeScript, Declaration. +-Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups. ++File '/project/node_modules/package.json' does not exist according to earlier cached lookups. ++File '/project/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/project/node_modules/anotherLib/node_modules' does not exist, skipping all lookups in it. ++Directory '/project/node_modules/anotherLib/node_modules/@types' does not exist, skipping all lookups in it. + Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'. + 'package.json' does not have a 'typesVersions' field. + File '/project/node_modules/troublesome-lib/lib/Compactable.ts' does not exist. +@@= skipped -31, +29 lines =@@ + File '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/project/node_modules/troublesome-lib/lib/Compactable.d.ts', result '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. +-======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib/lib/Compactable.d.ts@1.17.1'. ======== +-File '/project/node_modules/troublesome-lib/lib/package.json' does not exist. +-File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. ++======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== + ======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist. + File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist. + File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. + File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. +-======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ======== +-File '/project/node_modules/troublesome-lib/lib/package.json' does not exist according to earlier cached lookups. +-File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. ++'package.json' does not have a 'peerDependencies' field. ++======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== + ======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Option'. +-'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'. +-Resolving module name 'troublesome-lib/lib/Option' relative to base url '/project' - '/project/troublesome-lib/lib/Option'. +-Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Option', target file types: TypeScript, Declaration. +-Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File '/shared/lib/package.json' does not exist. ++File '/shared/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/shared/lib/node_modules' does not exist, skipping all lookups in it. ++Directory '/shared/lib/node_modules/@types' does not exist, skipping all lookups in it. + Found 'package.json' at '/shared/node_modules/troublesome-lib/package.json'. + 'package.json' does not have a 'typesVersions' field. + File '/shared/node_modules/troublesome-lib/lib/Option.ts' does not exist. +@@= skipped -30, +29 lines =@@ + File '/shared/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/shared/node_modules/troublesome-lib/lib/Option.d.ts', result '/shared/node_modules/troublesome-lib/lib/Option.d.ts'. +-======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ======== +-File '/shared/node_modules/troublesome-lib/lib/package.json' does not exist. +-File '/shared/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. ++======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json new file mode 100644 index 0000000000..31c2c229d2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json @@ -0,0 +1,26 @@ +======== Resolving module './tsx' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/tsx.ts' does not exist. +File '/tsx.tsx' exists - use it as a name resolution result. +======== Module name './tsx' was successfully resolved to '/tsx.tsx'. ======== +======== Resolving module './jsx' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/jsx.ts' does not exist. +File '/jsx.tsx' does not exist. +File '/jsx.d.ts' does not exist. +File '/jsx.js' does not exist. +File '/jsx.jsx' exists - use it as a name resolution result. +======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== +======== Resolving module './js' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/js', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/js.ts' does not exist. +File '/js.tsx' does not exist. +File '/js.d.ts' does not exist. +File '/js.js' exists - use it as a name resolution result. +======== Module name './js' was successfully resolved to '/js.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff new file mode 100644 index 0000000000..5daea0b904 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff @@ -0,0 +1,39 @@ +--- old.moduleResolutionWithExtensions_notSupported.trace.json ++++ new.moduleResolutionWithExtensions_notSupported.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './tsx' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/tsx.ts' does not exist. + File '/tsx.tsx' exists - use it as a name resolution result. + ======== Module name './tsx' was successfully resolved to '/tsx.tsx'. ======== + ======== Resolving module './jsx' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/jsx.ts' does not exist. + File '/jsx.tsx' does not exist. + File '/jsx.d.ts' does not exist. +-Directory '/jsx' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript. + File '/jsx.js' does not exist. + File '/jsx.jsx' exists - use it as a name resolution result. + ======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== + ======== Resolving module './js' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/js', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/js', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/js.ts' does not exist. + File '/js.tsx' does not exist. + File '/js.d.ts' does not exist. +-Directory '/js' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/js', target file types: JavaScript. + File '/js.js' exists - use it as a name resolution result. + ======== Module name './js' was successfully resolved to '/js.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json new file mode 100644 index 0000000000..e200b3fbe2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json @@ -0,0 +1,10 @@ +======== Resolving module './jsx' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/jsx.ts' does not exist. +File '/jsx.tsx' does not exist. +File '/jsx.d.ts' does not exist. +File '/jsx.js' does not exist. +File '/jsx.jsx' exists - use it as a name resolution result. +======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff new file mode 100644 index 0000000000..9b45d00a54 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff @@ -0,0 +1,17 @@ +--- old.moduleResolutionWithExtensions_notSupported2.trace.json ++++ new.moduleResolutionWithExtensions_notSupported2.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './jsx' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/jsx.ts' does not exist. + File '/jsx.tsx' does not exist. + File '/jsx.d.ts' does not exist. +-Directory '/jsx' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript. + File '/jsx.js' does not exist. + File '/jsx.jsx' exists - use it as a name resolution result. + ======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json new file mode 100644 index 0000000000..e200b3fbe2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json @@ -0,0 +1,10 @@ +======== Resolving module './jsx' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/jsx.ts' does not exist. +File '/jsx.tsx' does not exist. +File '/jsx.d.ts' does not exist. +File '/jsx.js' does not exist. +File '/jsx.jsx' exists - use it as a name resolution result. +======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff new file mode 100644 index 0000000000..80582d5fd6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff @@ -0,0 +1,17 @@ +--- old.moduleResolutionWithExtensions_notSupported3.trace.json ++++ new.moduleResolutionWithExtensions_notSupported3.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './jsx' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/jsx.ts' does not exist. + File '/jsx.tsx' does not exist. + File '/jsx.d.ts' does not exist. +-Directory '/jsx' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript. + File '/jsx.js' does not exist. + File '/jsx.jsx' exists - use it as a name resolution result. + ======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json new file mode 100644 index 0000000000..0f988ca942 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json @@ -0,0 +1,45 @@ +======== Resolving module 'normalize.css' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/normalize.css/package.json'. +File name '/node_modules/normalize.css' has a '.css' extension - stripping it. +File '/node_modules/normalize.d.css.ts' does not exist. +File '/node_modules/normalize.css.ts' does not exist. +File '/node_modules/normalize.css.tsx' does not exist. +File '/node_modules/normalize.css.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. +File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. +Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: TypeScript, Declaration. +File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. +File '/node_modules/normalize.css/normalize.css.ts' does not exist. +File '/node_modules/normalize.css/normalize.css.tsx' does not exist. +File '/node_modules/normalize.css/normalize.css.d.ts' does not exist. +Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it. +File '/node_modules/normalize.css/index.ts' does not exist. +File '/node_modules/normalize.css/index.tsx' does not exist. +File '/node_modules/normalize.css/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups. +File name '/node_modules/normalize.css' has a '.css' extension - stripping it. +File '/node_modules/normalize.css.js' does not exist. +File '/node_modules/normalize.css.jsx' does not exist. +'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. +File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript, JSON. +File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +File '/node_modules/normalize.css/normalize.css.js' does not exist. +File '/node_modules/normalize.css/normalize.css.jsx' does not exist. +Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it. +File '/node_modules/normalize.css/index.js' does not exist. +File '/node_modules/normalize.css/index.jsx' does not exist. +======== Module name 'normalize.css' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff new file mode 100644 index 0000000000..557d89bad5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff @@ -0,0 +1,61 @@ +--- old.moduleResolutionWithExtensions_unexpected.trace.json ++++ new.moduleResolutionWithExtensions_unexpected.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'normalize.css' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/normalize.css/package.json'. + File name '/node_modules/normalize.css' has a '.css' extension - stripping it. +@@= skipped -25, +27 lines =@@ + File '/node_modules/normalize.css/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. + File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it. +-Loading module 'normalize.css' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups. + File name '/node_modules/normalize.css' has a '.css' extension - stripping it. + File '/node_modules/normalize.css.js' does not exist. + File '/node_modules/normalize.css.jsx' does not exist. + 'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. + File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +-Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript. ++Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript, JSON. + File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. + File '/node_modules/normalize.css/normalize.css.js' does not exist. + File '/node_modules/normalize.css/normalize.css.jsx' does not exist. + Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it. + File '/node_modules/normalize.css/index.js' does not exist. + File '/node_modules/normalize.css/index.jsx' does not exist. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups. +-File name '/node_modules/normalize.css' has a '.css' extension - stripping it. +-File '/node_modules/normalize.d.css.ts' does not exist. +-File '/node_modules/normalize.css.ts' does not exist. +-File '/node_modules/normalize.css.tsx' does not exist. +-File '/node_modules/normalize.css.d.ts' does not exist. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. +-File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +-File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. +-Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: TypeScript, Declaration. +-File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. +-File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. +-File '/node_modules/normalize.css/normalize.css.ts' does not exist. +-File '/node_modules/normalize.css/normalize.css.tsx' does not exist. +-File '/node_modules/normalize.css/normalize.css.d.ts' does not exist. +-Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it. +-File '/node_modules/normalize.css/index.ts' does not exist. +-File '/node_modules/normalize.css/index.tsx' does not exist. +-File '/node_modules/normalize.css/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it. + ======== Module name 'normalize.css' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json new file mode 100644 index 0000000000..73cb649747 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json @@ -0,0 +1,38 @@ +======== Resolving module 'foo' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +File '/node_modules/foo.ts' does not exist. +File '/node_modules/foo.tsx' does not exist. +File '/node_modules/foo.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'foo.js' that references '/node_modules/foo/foo.js'. +File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. +File '/node_modules/foo/foo.ts' does not exist. +File '/node_modules/foo/foo.tsx' does not exist. +File '/node_modules/foo/foo.d.ts' does not exist. +Loading module as file / folder, candidate module location '/node_modules/foo/foo.js', target file types: TypeScript, Declaration. +File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. +File '/node_modules/foo/foo.ts' does not exist. +File '/node_modules/foo/foo.tsx' does not exist. +File '/node_modules/foo/foo.d.ts' does not exist. +File '/node_modules/foo/foo.js.ts' does not exist. +File '/node_modules/foo/foo.js.tsx' does not exist. +File '/node_modules/foo/foo.js.d.ts' does not exist. +Directory '/node_modules/foo/foo.js' does not exist, skipping all lookups in it. +File '/node_modules/foo/index.ts' does not exist. +File '/node_modules/foo/index.tsx' does not exist. +File '/node_modules/foo/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +File '/node_modules/foo.js' does not exist. +File '/node_modules/foo.jsx' does not exist. +'package.json' does not have a 'main' field. +File '/node_modules/foo/index.js' does not exist. +File '/node_modules/foo/index.jsx' does not exist. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff new file mode 100644 index 0000000000..93f9f58d02 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff @@ -0,0 +1,53 @@ +--- old.moduleResolutionWithExtensions_unexpected2.trace.json ++++ new.moduleResolutionWithExtensions_unexpected2.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/foo/package.json'. + File '/node_modules/foo.ts' does not exist. +@@= skipped -25, +27 lines =@@ + File '/node_modules/foo/index.tsx' does not exist. + File '/node_modules/foo/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/foo/package.json' exists according to earlier cached lookups. + File '/node_modules/foo.js' does not exist. + File '/node_modules/foo.jsx' does not exist. + 'package.json' does not have a 'main' field. + File '/node_modules/foo/index.js' does not exist. + File '/node_modules/foo/index.jsx' does not exist. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-File '/node_modules/foo.ts' does not exist. +-File '/node_modules/foo.tsx' does not exist. +-File '/node_modules/foo.d.ts' does not exist. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'foo.js' that references '/node_modules/foo/foo.js'. +-File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. +-File '/node_modules/foo/foo.ts' does not exist. +-File '/node_modules/foo/foo.tsx' does not exist. +-File '/node_modules/foo/foo.d.ts' does not exist. +-Loading module as file / folder, candidate module location '/node_modules/foo/foo.js', target file types: TypeScript, Declaration. +-File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. +-File '/node_modules/foo/foo.ts' does not exist. +-File '/node_modules/foo/foo.tsx' does not exist. +-File '/node_modules/foo/foo.d.ts' does not exist. +-File '/node_modules/foo/foo.js.ts' does not exist. +-File '/node_modules/foo/foo.js.tsx' does not exist. +-File '/node_modules/foo/foo.js.d.ts' does not exist. +-Directory '/node_modules/foo/foo.js' does not exist, skipping all lookups in it. +-File '/node_modules/foo/index.ts' does not exist. +-File '/node_modules/foo/index.tsx' does not exist. +-File '/node_modules/foo/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json new file mode 100644 index 0000000000..40cd512bdd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json @@ -0,0 +1,21 @@ +======== Resolving module 'js' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/js/package.json' does not exist. +File '/node_modules/js.ts' does not exist. +File '/node_modules/js.tsx' does not exist. +File '/node_modules/js.d.ts' does not exist. +File '/node_modules/js/index.ts' does not exist. +File '/node_modules/js/index.tsx' does not exist. +File '/node_modules/js/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/js/package.json' does not exist according to earlier cached lookups. +File '/node_modules/js.js' does not exist. +File '/node_modules/js.jsx' does not exist. +File '/node_modules/js/index.js' exists - use it as a name resolution result. +Resolving real path for '/node_modules/js/index.js', result '/node_modules/js/index.js'. +======== Module name 'js' was successfully resolved to '/node_modules/js/index.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff new file mode 100644 index 0000000000..ea0acd3f58 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff @@ -0,0 +1,23 @@ +--- old.moduleResolutionWithExtensions_withAmbientPresent.trace.json ++++ new.moduleResolutionWithExtensions_withAmbientPresent.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'js' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/js/package.json' does not exist. + File '/node_modules/js.ts' does not exist. +@@= skipped -9, +11 lines =@@ + File '/node_modules/js/index.tsx' does not exist. + File '/node_modules/js/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'js' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/js/package.json' does not exist according to earlier cached lookups. + File '/node_modules/js.js' does not exist. + File '/node_modules/js.jsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json new file mode 100644 index 0000000000..313e5dc896 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json @@ -0,0 +1,44 @@ +======== Resolving module 'foo/test.js' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo/test.js'. +Module name 'foo/test.js', matched pattern 'foo/*'. +Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test.js'. +Loading module as file / folder, candidate module location '/node_modules/foo/lib/test.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/node_modules/foo/lib/test.js' has a '.js' extension - stripping it. +File '/node_modules/foo/lib/test.ts' does not exist. +File '/node_modules/foo/lib/test.tsx' does not exist. +File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. +File '/node_modules/foo/package.json' does not exist. +Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. +======== Module name 'foo/test.js' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== +======== Resolving module 'foo/test' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo/test'. +Module name 'foo/test', matched pattern 'foo/*'. +Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test'. +Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/node_modules/foo/lib/test.ts' does not exist. +File '/node_modules/foo/lib/test.tsx' does not exist. +File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. +File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. +======== Module name 'foo/test' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== +======== Resolving module './relative.js' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/relative.js' has a '.js' extension - stripping it. +File '/relative.ts' does not exist. +File '/relative.tsx' does not exist. +File '/relative.d.ts' exists - use it as a name resolution result. +======== Module name './relative.js' was successfully resolved to '/relative.d.ts'. ======== +======== Resolving module './relative' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/relative.ts' does not exist. +File '/relative.tsx' does not exist. +File '/relative.d.ts' exists - use it as a name resolution result. +======== Module name './relative' was successfully resolved to '/relative.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff new file mode 100644 index 0000000000..1cc9427d50 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff @@ -0,0 +1,60 @@ +--- old.moduleResolutionWithExtensions_withPaths.trace.json ++++ new.moduleResolutionWithExtensions_withPaths.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/test.js' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test.js'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'foo/test.js'. + Module name 'foo/test.js', matched pattern 'foo/*'. + Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test.js'. +-Loading module as file / folder, candidate module location '/node_modules/foo/lib/test.js', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/node_modules/foo/lib/test.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/node_modules/foo/lib/test.js' has a '.js' extension - stripping it. + File '/node_modules/foo/lib/test.ts' does not exist. + File '/node_modules/foo/lib/test.tsx' does not exist. +@@= skipped -12, +12 lines =@@ + Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. + ======== Module name 'foo/test.js' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== + ======== Resolving module 'foo/test' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'foo/test'. + Module name 'foo/test', matched pattern 'foo/*'. + Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test'. +-Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/node_modules/foo/lib/test.ts' does not exist. + File '/node_modules/foo/lib/test.tsx' does not exist. + File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. +@@= skipped -13, +13 lines =@@ + Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. + ======== Module name 'foo/test' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== + ======== Resolving module './relative.js' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/relative.js' has a '.js' extension - stripping it. + File '/relative.ts' does not exist. + File '/relative.tsx' does not exist. + File '/relative.d.ts' exists - use it as a name resolution result. + ======== Module name './relative.js' was successfully resolved to '/relative.d.ts'. ======== + ======== Resolving module './relative' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/relative.ts' does not exist. + File '/relative.tsx' does not exist. + File '/relative.d.ts' exists - use it as a name resolution result. + ======== Module name './relative' was successfully resolved to '/relative.d.ts'. ======== +-File '/node_modules/foo/lib/package.json' does not exist. +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json new file mode 100644 index 0000000000..97ef80bade --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './other' from '/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/other', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/other.ts' exists - use it as a name resolution result. +======== Module name './other' was successfully resolved to '/other.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff new file mode 100644 index 0000000000..fcc8ca7fde --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff @@ -0,0 +1,11 @@ +--- old.moduleResolutionWithRequireAndImport.trace.json ++++ new.moduleResolutionWithRequireAndImport.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './other' from '/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/other', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/other', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/other.ts' exists - use it as a name resolution result. + ======== Module name './other' was successfully resolved to '/other.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json new file mode 100644 index 0000000000..12c67c71be --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff new file mode 100644 index 0000000000..3930cb8875 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff @@ -0,0 +1,11 @@ +--- old.moduleResolutionWithSuffixes_empty.trace.json ++++ new.moduleResolutionWithSuffixes_empty.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json new file mode 100644 index 0000000000..12c67c71be --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff new file mode 100644 index 0000000000..eb8358a4d2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff @@ -0,0 +1,11 @@ +--- old.moduleResolutionWithSuffixes_notSpecified.trace.json ++++ new.moduleResolutionWithSuffixes_notSpecified.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json new file mode 100644 index 0000000000..bbef3f7e73 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ios.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo.ios.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff new file mode 100644 index 0000000000..ed7e891f91 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff @@ -0,0 +1,11 @@ +--- old.moduleResolutionWithSuffixes_one.trace.json ++++ new.moduleResolutionWithSuffixes_one.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ios.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo.ios.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json new file mode 100644 index 0000000000..12c67c71be --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff new file mode 100644 index 0000000000..251b49daf6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff @@ -0,0 +1,11 @@ +--- old.moduleResolutionWithSuffixes_oneBlank.trace.json ++++ new.moduleResolutionWithSuffixes_oneBlank.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json new file mode 100644 index 0000000000..7c6529e6a9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json @@ -0,0 +1,11 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ios.ts' does not exist. +File '/foo.ios.tsx' does not exist. +File '/foo.ios.d.ts' does not exist. +File '/foo.ios.js' does not exist. +File '/foo.ios.jsx' does not exist. +Directory '/foo' does not exist, skipping all lookups in it. +======== Module name './foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff new file mode 100644 index 0000000000..dd4e2eeaa7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff @@ -0,0 +1,17 @@ +--- old.moduleResolutionWithSuffixes_oneNotFound.trace.json ++++ new.moduleResolutionWithSuffixes_oneNotFound.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ios.ts' does not exist. + File '/foo.ios.tsx' does not exist. + File '/foo.ios.d.ts' does not exist. +-Directory '/foo' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/foo', target file types: JavaScript. + File '/foo.ios.js' does not exist. + File '/foo.ios.jsx' does not exist. + Directory '/foo' does not exist, skipping all lookups in it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json new file mode 100644 index 0000000000..f8e9732928 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json @@ -0,0 +1,12 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ios.ts' does not exist. +File '/foo.ios.tsx' does not exist. +File '/foo.ios.d.ts' does not exist. +File '/foo.ios.js' does not exist. +File '/foo.ios.jsx' does not exist. +File '/foo/package.json' does not exist. +File '/foo/index.ios.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo/index.ios.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff new file mode 100644 index 0000000000..1c0f945e27 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff @@ -0,0 +1,17 @@ +--- old.moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json ++++ new.moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ios.ts' does not exist. + File '/foo.ios.tsx' does not exist. + File '/foo.ios.d.ts' does not exist. ++File '/foo.ios.js' does not exist. ++File '/foo.ios.jsx' does not exist. + File '/foo/package.json' does not exist. + File '/foo/index.ios.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo/index.ios.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json new file mode 100644 index 0000000000..fc40eb09fd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'some-library' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/some-library/package.json' does not exist. +File '/node_modules/some-library.ios.ts' does not exist. +File '/node_modules/some-library.ios.tsx' does not exist. +File '/node_modules/some-library.ios.d.ts' does not exist. +File '/node_modules/some-library/index.ios.ts' does not exist. +File '/node_modules/some-library/index.ios.tsx' does not exist. +File '/node_modules/some-library/index.ios.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/some-library/index.ios.d.ts', result '/node_modules/some-library/index.ios.d.ts'. +======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff new file mode 100644 index 0000000000..6ca688dafe --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff @@ -0,0 +1,20 @@ +--- old.moduleResolutionWithSuffixes_one_externalModule.trace.json ++++ new.moduleResolutionWithSuffixes_one_externalModule.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'some-library' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/some-library/package.json' does not exist. + File '/node_modules/some-library.ios.ts' does not exist. +@@= skipped -10, +12 lines =@@ + File '/node_modules/some-library/index.ios.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/some-library/index.ios.d.ts', result '/node_modules/some-library/index.ios.d.ts'. + ======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.d.ts'. ======== +-File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json new file mode 100644 index 0000000000..ea9a1c0669 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json @@ -0,0 +1,12 @@ +======== Resolving module 'some-library/foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/some-library/package.json' does not exist. +File '/node_modules/some-library/foo.ios.ts' does not exist. +File '/node_modules/some-library/foo.ios.tsx' does not exist. +File '/node_modules/some-library/foo.ios.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/some-library/foo.ios.d.ts', result '/node_modules/some-library/foo.ios.d.ts'. +======== Module name 'some-library/foo' was successfully resolved to '/node_modules/some-library/foo.ios.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff new file mode 100644 index 0000000000..f725871cd0 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff @@ -0,0 +1,20 @@ +--- old.moduleResolutionWithSuffixes_one_externalModulePath.trace.json ++++ new.moduleResolutionWithSuffixes_one_externalModulePath.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'some-library/foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/some-library/package.json' does not exist. + File '/node_modules/some-library/foo.ios.ts' does not exist. +@@= skipped -7, +9 lines =@@ + File '/node_modules/some-library/foo.ios.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/some-library/foo.ios.d.ts', result '/node_modules/some-library/foo.ios.d.ts'. + ======== Module name 'some-library/foo' was successfully resolved to '/node_modules/some-library/foo.ios.d.ts'. ======== +-File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json new file mode 100644 index 0000000000..ec7572e66e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json @@ -0,0 +1,45 @@ +======== Resolving module 'some-library' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'some-library'. +Module name 'some-library', matched pattern 'some-library'. +Trying substitution 'node_modules/some-library/lib', candidate module location: 'node_modules/some-library/lib'. +Loading module as file / folder, candidate module location '/node_modules/some-library/lib', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/node_modules/some-library/lib.ios.ts' does not exist. +File '/node_modules/some-library/lib.ios.tsx' does not exist. +File '/node_modules/some-library/lib.ios.d.ts' does not exist. +File '/node_modules/some-library/lib.ios.js' does not exist. +File '/node_modules/some-library/lib.ios.jsx' does not exist. +File '/node_modules/some-library/lib/package.json' does not exist. +File '/node_modules/some-library/lib/index.ios.ts' does not exist. +File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. +======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== +======== Resolving module 'some-library/index' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'some-library/index'. +Module name 'some-library/index', matched pattern 'some-library/*'. +Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index'. +Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/node_modules/some-library/lib/index.ios.ts' does not exist. +File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. +File '/node_modules/some-library/package.json' does not exist. +Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. +======== Module name 'some-library/index' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== +======== Resolving module 'some-library/index.js' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'some-library/index.js'. +Module name 'some-library/index.js', matched pattern 'some-library/*'. +Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index.js'. +Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/node_modules/some-library/lib/index.js' has a '.js' extension - stripping it. +File '/node_modules/some-library/lib/index.ios.ts' does not exist. +File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. +File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. +Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. +======== Module name 'some-library/index.js' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff new file mode 100644 index 0000000000..d7f1e94b1e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff @@ -0,0 +1,61 @@ +--- old.moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json ++++ new.moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'some-library' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'some-library'. + Module name 'some-library', matched pattern 'some-library'. + Trying substitution 'node_modules/some-library/lib', candidate module location: 'node_modules/some-library/lib'. +-Loading module as file / folder, candidate module location '/node_modules/some-library/lib', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/node_modules/some-library/lib', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/node_modules/some-library/lib.ios.ts' does not exist. + File '/node_modules/some-library/lib.ios.tsx' does not exist. + File '/node_modules/some-library/lib.ios.d.ts' does not exist. ++File '/node_modules/some-library/lib.ios.js' does not exist. ++File '/node_modules/some-library/lib.ios.jsx' does not exist. + File '/node_modules/some-library/lib/package.json' does not exist. + File '/node_modules/some-library/lib/index.ios.ts' does not exist. + File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +@@= skipped -14, +16 lines =@@ + Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. + ======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== + ======== Resolving module 'some-library/index' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library/index'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'some-library/index'. + Module name 'some-library/index', matched pattern 'some-library/*'. + Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index'. +-Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/node_modules/some-library/lib/index.ios.ts' does not exist. + File '/node_modules/some-library/lib/index.ios.tsx' does not exist. + File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. +@@= skipped -13, +13 lines =@@ + Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. + ======== Module name 'some-library/index' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== + ======== Resolving module 'some-library/index.js' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library/index.js'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'some-library/index.js'. + Module name 'some-library/index.js', matched pattern 'some-library/*'. + Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index.js'. +-Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/node_modules/some-library/lib/index.js' has a '.js' extension - stripping it. + File '/node_modules/some-library/lib/index.ios.ts' does not exist. + File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +@@= skipped -13, +13 lines =@@ + File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. + Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. + ======== Module name 'some-library/index.js' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== +-File '/node_modules/some-library/lib/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json new file mode 100644 index 0000000000..a468e7dde0 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json @@ -0,0 +1,13 @@ +======== Resolving module 'some-library' from '/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/some-library/package.json' does not exist. +File '/node_modules/some-library.ios.ts' does not exist. +File '/node_modules/some-library.ios.tsx' does not exist. +File '/node_modules/some-library.ios.d.ts' does not exist. +File '/node_modules/some-library/index.ios.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/some-library/index.ios.ts', result '/node_modules/some-library/index.ios.ts'. +======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff new file mode 100644 index 0000000000..a1c5a949cc --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff @@ -0,0 +1,20 @@ +--- old.moduleResolutionWithSuffixes_one_externalTSModule.trace.json ++++ new.moduleResolutionWithSuffixes_one_externalTSModule.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'some-library' from '/test.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/some-library/package.json' does not exist. + File '/node_modules/some-library.ios.ts' does not exist. +@@= skipped -8, +10 lines =@@ + File '/node_modules/some-library/index.ios.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/some-library/index.ios.ts', result '/node_modules/some-library/index.ios.ts'. + ======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.ts'. ======== +-File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json new file mode 100644 index 0000000000..60619ae53c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json @@ -0,0 +1,10 @@ +======== Resolving module './foo.js' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/foo.js' has a '.js' extension - stripping it. +File '/foo.ios.ts' does not exist. +File '/foo.ios.tsx' does not exist. +File '/foo.ios.d.ts' does not exist. +File '/foo.ios.js' exists - use it as a name resolution result. +======== Module name './foo.js' was successfully resolved to '/foo.ios.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff new file mode 100644 index 0000000000..ce779c961d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff @@ -0,0 +1,21 @@ +--- old.moduleResolutionWithSuffixes_one_jsModule.trace.json ++++ new.moduleResolutionWithSuffixes_one_jsModule.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo.js' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/foo.js' has a '.js' extension - stripping it. + File '/foo.ios.ts' does not exist. + File '/foo.ios.tsx' does not exist. + File '/foo.ios.d.ts' does not exist. +-File '/foo.js.ios.ts' does not exist. +-File '/foo.js.ios.tsx' does not exist. +-File '/foo.js.ios.d.ts' does not exist. +-Directory '/foo.js' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/foo.js', target file types: JavaScript. +-File name '/foo.js' has a '.js' extension - stripping it. + File '/foo.ios.js' exists - use it as a name resolution result. + ======== Module name './foo.js' was successfully resolved to '/foo.ios.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json new file mode 100644 index 0000000000..fd456e1ae6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json @@ -0,0 +1,8 @@ +======== Resolving module './foo.json' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/foo.json' has a '.json' extension - stripping it. +File '/foo.d.json.ios.ts' does not exist. +File '/foo.ios.json' exists - use it as a name resolution result. +======== Module name './foo.json' was successfully resolved to '/foo.ios.json'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff new file mode 100644 index 0000000000..1111a22fe6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff @@ -0,0 +1,19 @@ +--- old.moduleResolutionWithSuffixes_one_jsonModule.trace.json ++++ new.moduleResolutionWithSuffixes_one_jsonModule.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo.json' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/foo.json' has a '.json' extension - stripping it. + File '/foo.d.json.ios.ts' does not exist. +-File '/foo.json.ios.ts' does not exist. +-File '/foo.json.ios.tsx' does not exist. +-File '/foo.json.ios.d.ts' does not exist. +-Directory '/foo.json' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/foo.json', target file types: JavaScript, JSON. +-File name '/foo.json' has a '.json' extension - stripping it. + File '/foo.ios.json' exists - use it as a name resolution result. + ======== Module name './foo.json' was successfully resolved to '/foo.ios.json'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json new file mode 100644 index 0000000000..721a88d1e6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo-ios.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo-ios.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff new file mode 100644 index 0000000000..9a78e3e0d8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff @@ -0,0 +1,11 @@ +--- old.moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json ++++ new.moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo-ios.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo-ios.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json new file mode 100644 index 0000000000..f6e7ec2000 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json @@ -0,0 +1,7 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo-ios.ts' does not exist. +File '/foo__native.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo__native.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff new file mode 100644 index 0000000000..a671b29e07 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff @@ -0,0 +1,12 @@ +--- old.moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json ++++ new.moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo-ios.ts' does not exist. + File '/foo__native.ts' exists - use it as a name resolution result. + ======== Module name './foo' was successfully resolved to '/foo__native.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json new file mode 100644 index 0000000000..82b0a57168 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json @@ -0,0 +1,8 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo-ios.ts' does not exist. +File '/foo__native.ts' does not exist. +File '/foo.ts' exists - use it as a name resolution result. +======== Module name './foo' was successfully resolved to '/foo.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff new file mode 100644 index 0000000000..eb4fe819ce --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff @@ -0,0 +1,12 @@ +--- old.moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json ++++ new.moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo-ios.ts' does not exist. + File '/foo__native.ts' does not exist. + File '/foo.ts' exists - use it as a name resolution result. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json new file mode 100644 index 0000000000..3239f2986b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json @@ -0,0 +1,21 @@ +======== Resolving module './foo' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo-ios.ts' does not exist. +File '/foo__native.ts' does not exist. +File '/foo.ts' does not exist. +File '/foo-ios.tsx' does not exist. +File '/foo__native.tsx' does not exist. +File '/foo.tsx' does not exist. +File '/foo-ios.d.ts' does not exist. +File '/foo__native.d.ts' does not exist. +File '/foo.d.ts' does not exist. +File '/foo-ios.js' does not exist. +File '/foo__native.js' does not exist. +File '/foo.js' does not exist. +File '/foo-ios.jsx' does not exist. +File '/foo__native.jsx' does not exist. +File '/foo.jsx' does not exist. +Directory '/foo' does not exist, skipping all lookups in it. +======== Module name './foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff new file mode 100644 index 0000000000..e5324655a5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff @@ -0,0 +1,21 @@ +--- old.moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json ++++ new.moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './foo' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo-ios.ts' does not exist. + File '/foo__native.ts' does not exist. + File '/foo.ts' does not exist. +@@= skipped -9, +10 lines =@@ + File '/foo-ios.d.ts' does not exist. + File '/foo__native.d.ts' does not exist. + File '/foo.d.ts' does not exist. +-Directory '/foo' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/foo', target file types: JavaScript. + File '/foo-ios.js' does not exist. + File '/foo__native.js' does not exist. + File '/foo.js' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json new file mode 100644 index 0000000000..63e69508e4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json @@ -0,0 +1,43 @@ +======== Resolving module './library-a' from '/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/src/library-a.ts' does not exist. +File '/src/library-a.tsx' does not exist. +File '/src/library-a.d.ts' does not exist. +File '/src/library-a.js' does not exist. +File '/src/library-a.jsx' does not exist. +File '/src/library-a/package.json' does not exist. +File '/src/library-a/index.ts' exists - use it as a name resolution result. +======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ======== +======== Resolving module './library-b' from '/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/src/library-b.ts' does not exist. +File '/src/library-b.tsx' does not exist. +File '/src/library-b.d.ts' does not exist. +File '/src/library-b.js' does not exist. +File '/src/library-b.jsx' does not exist. +File '/src/library-b/package.json' does not exist. +File '/src/library-b/index.ts' exists - use it as a name resolution result. +======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ======== +======== Resolving module 'library-a' from '/src/library-b/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/src/library-b/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. +Directory '/src/library-b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'library-a' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff new file mode 100644 index 0000000000..d2e338ebe6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff @@ -0,0 +1,59 @@ +--- old.moduleResolutionWithSymlinks.trace.json ++++ new.moduleResolutionWithSymlinks.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './library-a' from '/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/src/library-a.ts' does not exist. + File '/src/library-a.tsx' does not exist. + File '/src/library-a.d.ts' does not exist. ++File '/src/library-a.js' does not exist. ++File '/src/library-a.jsx' does not exist. + File '/src/library-a/package.json' does not exist. + File '/src/library-a/index.ts' exists - use it as a name resolution result. + ======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ======== + ======== Resolving module './library-b' from '/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/src/library-b.ts' does not exist. + File '/src/library-b.tsx' does not exist. + File '/src/library-b.d.ts' does not exist. ++File '/src/library-b.js' does not exist. ++File '/src/library-b.jsx' does not exist. + File '/src/library-b/package.json' does not exist. + File '/src/library-b/index.ts' exists - use it as a name resolution result. + ======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ======== + ======== Resolving module 'library-a' from '/src/library-b/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/src/library-b/package.json' does not exist according to earlier cached lookups. ++File '/src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/src/library-b/node_modules/library-a/package.json' does not exist. +-File '/src/library-b/node_modules/library-a.ts' does not exist. +-File '/src/library-b/node_modules/library-a.tsx' does not exist. +-File '/src/library-b/node_modules/library-a.d.ts' does not exist. +-File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result. +-Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'. +-======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ======== ++Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/library-b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'library-a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json new file mode 100644 index 0000000000..9ba9957f76 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json @@ -0,0 +1,12 @@ +======== Resolving module './shared/abc' from '/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, JavaScript, Declaration, JSON. +Directory '/src/shared' does not exist, skipping all lookups in it. +======== Module name './shared/abc' was not resolved. ======== +======== Resolving module './shared2/abc' from '/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, JavaScript, Declaration, JSON. +Directory '/src/shared2' does not exist, skipping all lookups in it. +======== Module name './shared2/abc' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff new file mode 100644 index 0000000000..20e766f988 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff @@ -0,0 +1,23 @@ +--- old.moduleResolutionWithSymlinks_notInNodeModules.trace.json ++++ new.moduleResolutionWithSymlinks_notInNodeModules.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './shared/abc' from '/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, Declaration. +-File '/src/shared/abc.ts' exists - use it as a name resolution result. +-======== Module name './shared/abc' was successfully resolved to '/src/shared/abc.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, JavaScript, Declaration, JSON. ++Directory '/src/shared' does not exist, skipping all lookups in it. ++======== Module name './shared/abc' was not resolved. ======== + ======== Resolving module './shared2/abc' from '/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, Declaration. +-File '/src/shared2/abc.ts' exists - use it as a name resolution result. +-======== Module name './shared2/abc' was successfully resolved to '/src/shared2/abc.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, JavaScript, Declaration, JSON. ++Directory '/src/shared2' does not exist, skipping all lookups in it. ++======== Module name './shared2/abc' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json new file mode 100644 index 0000000000..9b672ff4f7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json @@ -0,0 +1,47 @@ +======== Resolving type reference directive 'linked', containing file '/app/app.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/app'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/app/node_modules/linked.d.ts' does not exist. +Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'linked' was not resolved. ======== +======== Resolving module 'linked' from '/app/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/app/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/app/node_modules/linked.ts' does not exist. +File '/app/node_modules/linked.tsx' does not exist. +File '/app/node_modules/linked.d.ts' does not exist. +Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/app/node_modules/linked.js' does not exist. +File '/app/node_modules/linked.jsx' does not exist. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'linked' was not resolved. ======== +======== Resolving module 'linked2' from '/app/app.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/app/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/app/node_modules/linked2.ts' does not exist. +File '/app/node_modules/linked2.tsx' does not exist. +File '/app/node_modules/linked2.d.ts' does not exist. +Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/app/node_modules/linked2.js' does not exist. +File '/app/node_modules/linked2.jsx' does not exist. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'linked2' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff new file mode 100644 index 0000000000..9414172eda --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff @@ -0,0 +1,102 @@ +--- old.moduleResolutionWithSymlinks_preserveSymlinks.trace.json ++++ new.moduleResolutionWithSymlinks_preserveSymlinks.trace.json +@@= skipped -3, +3 lines =@@ + Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/app'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. +-File '/app/node_modules/linked/package.json' does not exist. + File '/app/node_modules/linked.d.ts' does not exist. +-File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result. +-======== Type reference directive 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts', primary: false. ======== +-File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups. +-File '/app/node_modules/package.json' does not exist. ++Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'linked' was not resolved. ======== ++======== Resolving module 'linked' from '/app/app.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + File '/app/package.json' does not exist. + File '/package.json' does not exist. +-======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/app/node_modules/linked/node_modules' does not exist, skipping all lookups in it. +-File '/app/node_modules/real/package.json' does not exist. +-File '/app/node_modules/real.ts' does not exist. +-File '/app/node_modules/real.tsx' does not exist. +-File '/app/node_modules/real.d.ts' does not exist. +-File '/app/node_modules/real/index.ts' does not exist. +-File '/app/node_modules/real/index.tsx' does not exist. +-File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ======== +-File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups. +-File '/app/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/app/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving module 'linked' from '/app/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups. ++Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/app/node_modules/linked.ts' does not exist. + File '/app/node_modules/linked.tsx' does not exist. + File '/app/node_modules/linked.d.ts' does not exist. +-File '/app/node_modules/linked/index.ts' does not exist. +-File '/app/node_modules/linked/index.tsx' does not exist. +-File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts'. ======== ++Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++File '/app/node_modules/linked.js' does not exist. ++File '/app/node_modules/linked.jsx' does not exist. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'linked' was not resolved. ======== + ======== Resolving module 'linked2' from '/app/app.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/app/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/app/node_modules/linked2/package.json' does not exist. + File '/app/node_modules/linked2.ts' does not exist. + File '/app/node_modules/linked2.tsx' does not exist. + File '/app/node_modules/linked2.d.ts' does not exist. +-File '/app/node_modules/linked2/index.ts' does not exist. +-File '/app/node_modules/linked2/index.tsx' does not exist. +-File '/app/node_modules/linked2/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'linked2' was successfully resolved to '/app/node_modules/linked2/index.d.ts'. ======== +-File '/app/node_modules/linked2/package.json' does not exist according to earlier cached lookups. +-File '/app/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/app/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving module 'real' from '/app/node_modules/linked2/index.d.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Directory '/app/node_modules/linked2/node_modules' does not exist, skipping all lookups in it. +-File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups. +-File '/app/node_modules/real.ts' does not exist. +-File '/app/node_modules/real.tsx' does not exist. +-File '/app/node_modules/real.d.ts' does not exist. +-File '/app/node_modules/real/index.ts' does not exist. +-File '/app/node_modules/real/index.tsx' does not exist. +-File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ======== ++Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++File '/app/node_modules/linked2.js' does not exist. ++File '/app/node_modules/linked2.jsx' does not exist. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'linked2' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json new file mode 100644 index 0000000000..737c432621 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json @@ -0,0 +1,34 @@ +======== Resolving type reference directive 'library-a', containing file '/app.ts', root directory ''. ======== +Root directory cannot be determined, skipping primary search paths. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/library-a.d.ts' does not exist. +File '/node_modules/@types/library-a/package.json' does not exist. +File '/node_modules/@types/library-a.d.ts' does not exist. +File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. +======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'library-b', containing file '/app.ts', root directory ''. ======== +Root directory cannot be determined, skipping primary search paths. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/library-b.d.ts' does not exist. +File '/node_modules/@types/library-b/package.json' does not exist. +File '/node_modules/@types/library-b.d.ts' does not exist. +File '/node_modules/@types/library-b/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/library-b/index.d.ts', result '/node_modules/@types/library-b/index.d.ts'. +======== Type reference directive 'library-b' was successfully resolved to '/node_modules/@types/library-b/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'library-a', containing file '/node_modules/@types/library-b/index.d.ts', root directory ''. ======== +Root directory cannot be determined, skipping primary search paths. +Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules/@types/library-b/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types/library-b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/library-a.d.ts' does not exist. +File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/library-a.d.ts' does not exist. +File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. +======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff new file mode 100644 index 0000000000..62335d7d95 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff @@ -0,0 +1,33 @@ +--- old.moduleResolutionWithSymlinks_referenceTypes.trace.json ++++ new.moduleResolutionWithSymlinks_referenceTypes.trace.json +@@= skipped -17, +17 lines =@@ + File '/node_modules/@types/library-b/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/library-b/index.d.ts', result '/node_modules/@types/library-b/index.d.ts'. + ======== Type reference directive 'library-b' was successfully resolved to '/node_modules/@types/library-b/index.d.ts', primary: false. ======== +-File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-File '/node_modules/@types/library-b/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. + ======== Resolving type reference directive 'library-a', containing file '/node_modules/@types/library-b/index.d.ts', root directory ''. ======== + Root directory cannot be determined, skipping primary search paths. + Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. +-File '/node_modules/@types/library-b/node_modules/library-a.d.ts' does not exist. +-File '/node_modules/@types/library-b/node_modules/@types/library-a/package.json' does not exist. +-File '/node_modules/@types/library-b/node_modules/@types/library-a.d.ts' does not exist. +-File '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. ++Directory '/node_modules/@types/library-b/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types/library-b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. ++File '/node_modules/library-a.d.ts' does not exist. ++File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@types/library-a.d.ts' does not exist. ++File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. + ======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json new file mode 100644 index 0000000000..63e69508e4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json @@ -0,0 +1,43 @@ +======== Resolving module './library-a' from '/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/src/library-a.ts' does not exist. +File '/src/library-a.tsx' does not exist. +File '/src/library-a.d.ts' does not exist. +File '/src/library-a.js' does not exist. +File '/src/library-a.jsx' does not exist. +File '/src/library-a/package.json' does not exist. +File '/src/library-a/index.ts' exists - use it as a name resolution result. +======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ======== +======== Resolving module './library-b' from '/src/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/src/library-b.ts' does not exist. +File '/src/library-b.tsx' does not exist. +File '/src/library-b.d.ts' does not exist. +File '/src/library-b.js' does not exist. +File '/src/library-b.jsx' does not exist. +File '/src/library-b/package.json' does not exist. +File '/src/library-b/index.ts' exists - use it as a name resolution result. +======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ======== +======== Resolving module 'library-a' from '/src/library-b/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/src/library-b/package.json' does not exist according to earlier cached lookups. +File '/src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. +Directory '/src/library-b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'library-a' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff new file mode 100644 index 0000000000..a9d50fe087 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff @@ -0,0 +1,59 @@ +--- old.moduleResolutionWithSymlinks_withOutDir.trace.json ++++ new.moduleResolutionWithSymlinks_withOutDir.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './library-a' from '/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/src/library-a.ts' does not exist. + File '/src/library-a.tsx' does not exist. + File '/src/library-a.d.ts' does not exist. ++File '/src/library-a.js' does not exist. ++File '/src/library-a.jsx' does not exist. + File '/src/library-a/package.json' does not exist. + File '/src/library-a/index.ts' exists - use it as a name resolution result. + ======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ======== + ======== Resolving module './library-b' from '/src/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/src/library-b.ts' does not exist. + File '/src/library-b.tsx' does not exist. + File '/src/library-b.d.ts' does not exist. ++File '/src/library-b.js' does not exist. ++File '/src/library-b.jsx' does not exist. + File '/src/library-b/package.json' does not exist. + File '/src/library-b/index.ts' exists - use it as a name resolution result. + ======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ======== + ======== Resolving module 'library-a' from '/src/library-b/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/src/library-b/package.json' does not exist according to earlier cached lookups. ++File '/src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/src/library-b/node_modules/library-a/package.json' does not exist. +-File '/src/library-b/node_modules/library-a.ts' does not exist. +-File '/src/library-b/node_modules/library-a.tsx' does not exist. +-File '/src/library-b/node_modules/library-a.d.ts' does not exist. +-File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result. +-Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'. +-======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ======== ++Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/library-b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'library-a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json new file mode 100644 index 0000000000..17a4409849 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json @@ -0,0 +1,17 @@ +======== Resolving module 'foo/bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/bar/package.json'. +Found 'package.json' at '/node_modules/foo/package.json'. +File '/node_modules/foo/bar.ts' does not exist. +File '/node_modules/foo/bar.tsx' does not exist. +File '/node_modules/foo/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'types.d.ts' that references '/node_modules/foo/bar/types.d.ts'. +File '/node_modules/foo/bar/types.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/bar/types.d.ts', result '/node_modules/foo/bar/types.d.ts'. +======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/types.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff new file mode 100644 index 0000000000..8012715c72 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff @@ -0,0 +1,21 @@ +--- old.moduleResolution_packageJson_notAtPackageRoot.trace.json ++++ new.moduleResolution_packageJson_notAtPackageRoot.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/foo/bar/package.json'. ++Found 'package.json' at '/node_modules/foo/package.json'. + File '/node_modules/foo/bar.ts' does not exist. + File '/node_modules/foo/bar.tsx' does not exist. + File '/node_modules/foo/bar.d.ts' does not exist. +@@= skipped -11, +14 lines =@@ + File '/node_modules/foo/bar/types.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/foo/bar/types.d.ts', result '/node_modules/foo/bar/types.d.ts'. + ======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/types.d.ts'. ======== +-File '/node_modules/foo/bar/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json new file mode 100644 index 0000000000..6897fece16 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json @@ -0,0 +1,17 @@ +======== Resolving module 'foo/@bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/@bar/package.json'. +Found 'package.json' at '/node_modules/foo/package.json'. +File '/node_modules/foo/@bar.ts' does not exist. +File '/node_modules/foo/@bar.tsx' does not exist. +File '/node_modules/foo/@bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'types.d.ts' that references '/node_modules/foo/@bar/types.d.ts'. +File '/node_modules/foo/@bar/types.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/@bar/types.d.ts', result '/node_modules/foo/@bar/types.d.ts'. +======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/types.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff new file mode 100644 index 0000000000..9a0c9ead6d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff @@ -0,0 +1,21 @@ +--- old.moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json ++++ new.moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/@bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/foo/@bar/package.json'. ++Found 'package.json' at '/node_modules/foo/package.json'. + File '/node_modules/foo/@bar.ts' does not exist. + File '/node_modules/foo/@bar.tsx' does not exist. + File '/node_modules/foo/@bar.d.ts' does not exist. +@@= skipped -11, +14 lines =@@ + File '/node_modules/foo/@bar/types.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/foo/@bar/types.d.ts', result '/node_modules/foo/@bar/types.d.ts'. + ======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/types.d.ts'. ======== +-File '/node_modules/foo/@bar/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json new file mode 100644 index 0000000000..5b793be6a6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json @@ -0,0 +1,16 @@ +======== Resolving module '@foo/bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/@foo/bar/package.json'. +File '/node_modules/@foo/bar.ts' does not exist. +File '/node_modules/@foo/bar.tsx' does not exist. +File '/node_modules/@foo/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'types.d.ts' that references '/node_modules/@foo/bar/types.d.ts'. +File '/node_modules/@foo/bar/types.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@foo/bar/types.d.ts', result '/node_modules/@foo/bar/types.d.ts'. +======== Module name '@foo/bar' was successfully resolved to '/node_modules/@foo/bar/types.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff new file mode 100644 index 0000000000..311e441015 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff @@ -0,0 +1,18 @@ +--- old.moduleResolution_packageJson_scopedPackage.trace.json ++++ new.moduleResolution_packageJson_scopedPackage.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@foo/bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/@foo/bar/package.json'. + File '/node_modules/@foo/bar.ts' does not exist. +@@= skipped -11, +13 lines =@@ + File '/node_modules/@foo/bar/types.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@foo/bar/types.d.ts', result '/node_modules/@foo/bar/types.d.ts'. + ======== Module name '@foo/bar' was successfully resolved to '/node_modules/@foo/bar/types.d.ts'. ======== +-File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json new file mode 100644 index 0000000000..ce3bed3bad --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json @@ -0,0 +1,25 @@ +======== Resolving module 'foo/bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/foo/bar/package.json' does not exist. +Found 'package.json' at '/node_modules/foo/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/node_modules/foo/bar.ts' does not exist. +File '/node_modules/foo/bar.tsx' does not exist. +File '/node_modules/foo/bar.d.ts' does not exist. +File '/node_modules/foo/bar/index.ts' does not exist. +File '/node_modules/foo/bar/index.tsx' does not exist. +File '/node_modules/foo/bar/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +File '/node_modules/foo/bar.js' does not exist. +File '/node_modules/foo/bar.jsx' does not exist. +File '/node_modules/foo/bar/index.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/foo/bar/index.js', result '/node_modules/foo/bar/index.js'. +======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo@1.2.3'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff new file mode 100644 index 0000000000..14c185a2b5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff @@ -0,0 +1,41 @@ +--- old.moduleResolution_packageJson_yesAtPackageRoot.trace.json ++++ new.moduleResolution_packageJson_yesAtPackageRoot.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/foo/bar/package.json' does not exist. + Found 'package.json' at '/node_modules/foo/package.json'. +@@= skipped -11, +13 lines =@@ + File '/node_modules/foo/bar/index.tsx' does not exist. + File '/node_modules/foo/bar/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'foo/bar' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups. + File '/node_modules/foo/package.json' exists according to earlier cached lookups. + File '/node_modules/foo/bar.js' does not exist. + File '/node_modules/foo/bar.jsx' does not exist. + File '/node_modules/foo/bar/index.js' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-File '/node_modules/foo/bar.ts' does not exist. +-File '/node_modules/foo/bar.tsx' does not exist. +-File '/node_modules/foo/bar.d.ts' does not exist. +-File '/node_modules/foo/bar/index.ts' does not exist. +-File '/node_modules/foo/bar/index.tsx' does not exist. +-File '/node_modules/foo/bar/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Resolving real path for '/node_modules/foo/bar/index.js', result '/node_modules/foo/bar/index.js'. +-======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo/bar/index.js@1.2.3'. ======== ++======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json new file mode 100644 index 0000000000..555d66b09b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json @@ -0,0 +1,25 @@ +======== Resolving module 'foo/@bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/foo/@bar/package.json' does not exist. +Found 'package.json' at '/node_modules/foo/package.json'. +'package.json' does not have a 'typesVersions' field. +File '/node_modules/foo/@bar.ts' does not exist. +File '/node_modules/foo/@bar.tsx' does not exist. +File '/node_modules/foo/@bar.d.ts' does not exist. +File '/node_modules/foo/@bar/index.ts' does not exist. +File '/node_modules/foo/@bar/index.tsx' does not exist. +File '/node_modules/foo/@bar/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +File '/node_modules/foo/@bar.js' does not exist. +File '/node_modules/foo/@bar.jsx' does not exist. +File '/node_modules/foo/@bar/index.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/foo/@bar/index.js', result '/node_modules/foo/@bar/index.js'. +======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo@1.2.3'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff new file mode 100644 index 0000000000..2741fab246 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff @@ -0,0 +1,41 @@ +--- old.moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json ++++ new.moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/@bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/foo/@bar/package.json' does not exist. + Found 'package.json' at '/node_modules/foo/package.json'. +@@= skipped -11, +13 lines =@@ + File '/node_modules/foo/@bar/index.tsx' does not exist. + File '/node_modules/foo/@bar/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'foo/@bar' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups. + File '/node_modules/foo/package.json' exists according to earlier cached lookups. + File '/node_modules/foo/@bar.js' does not exist. + File '/node_modules/foo/@bar.jsx' does not exist. + File '/node_modules/foo/@bar/index.js' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-File '/node_modules/foo/@bar.ts' does not exist. +-File '/node_modules/foo/@bar.tsx' does not exist. +-File '/node_modules/foo/@bar.d.ts' does not exist. +-File '/node_modules/foo/@bar/index.ts' does not exist. +-File '/node_modules/foo/@bar/index.tsx' does not exist. +-File '/node_modules/foo/@bar/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Resolving real path for '/node_modules/foo/@bar/index.js', result '/node_modules/foo/@bar/index.js'. +-======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo/@bar/index.js@1.2.3'. ======== ++======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json new file mode 100644 index 0000000000..eeba5d48f4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json @@ -0,0 +1,21 @@ +======== Resolving module 'foo' from '/index.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +File '/node_modules/foo.ts' does not exist. +File '/node_modules/foo.tsx' does not exist. +File '/node_modules/foo.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'src/index.js' that references '/node_modules/foo/src/index.js'. +File name '/node_modules/foo/src/index.js' has a '.js' extension - stripping it. +File '/node_modules/foo/src/index.ts' does not exist. +File '/node_modules/foo/src/index.tsx' does not exist. +File '/node_modules/foo/src/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/foo/src/index.d.ts', result '/node_modules/foo/src/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/node_modules/foo/src/index.d.ts' with Package ID 'foo@1.2.3'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff new file mode 100644 index 0000000000..b1c38e1339 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff @@ -0,0 +1,24 @@ +--- old.moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json ++++ new.moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/foo/src/package.json' does not exist. +-Found 'package.json' at '/node_modules/foo/package.json'. + ======== Resolving module 'foo' from '/index.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/foo/package.json'. + File '/node_modules/foo.ts' does not exist. + File '/node_modules/foo.tsx' does not exist. + File '/node_modules/foo.d.ts' does not exist. +@@= skipped -17, +17 lines =@@ + File '/node_modules/foo/src/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/foo/src/index.d.ts', result '/node_modules/foo/src/index.d.ts'. +-======== Module name 'foo' was successfully resolved to '/node_modules/foo/src/index.d.ts' with Package ID 'foo/src/index.d.ts@1.2.3'. ======== ++======== Module name 'foo' was successfully resolved to '/node_modules/foo/src/index.d.ts' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json new file mode 100644 index 0000000000..35964aaeba --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json @@ -0,0 +1,39 @@ +======== Resolving module 'ph' from '/a/b/node_modules/@types/node/ph.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/node_modules/@types/node/package.json' does not exist according to earlier cached lookups. +File '/a/b/node_modules/@types/package.json' does not exist according to earlier cached lookups. +File '/a/b/node_modules/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ph' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types/node/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. +File '/a/b/node_modules/ph.ts' does not exist. +File '/a/b/node_modules/ph.tsx' does not exist. +File '/a/b/node_modules/ph.d.ts' does not exist. +File '/a/b/node_modules/@types/ph.d.ts' does not exist. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types/node_modules' does not exist, skipping all lookups in it. +File '/a/b/node_modules/ph.js' does not exist. +File '/a/b/node_modules/ph.jsx' does not exist. +Directory '/a/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'ph' was not resolved. ======== +======== Resolving module 'node:ph' from '/a/b/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, JavaScript, Declaration, JSON. +======== Module name 'node:ph' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff new file mode 100644 index 0000000000..7016bf1d27 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff @@ -0,0 +1,50 @@ +--- old.nodeColonModuleResolution.trace.json ++++ new.nodeColonModuleResolution.trace.json +@@= skipped -0, +0 lines =@@ +-File '/a/b/node_modules/@types/node/package.json' does not exist. +-File '/a/b/node_modules/@types/package.json' does not exist. +-File '/a/b/node_modules/package.json' does not exist. ++======== Resolving module 'ph' from '/a/b/node_modules/@types/node/ph.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/a/b/node_modules/@types/node/package.json' does not exist according to earlier cached lookups. ++File '/a/b/node_modules/@types/package.json' does not exist according to earlier cached lookups. ++File '/a/b/node_modules/package.json' does not exist according to earlier cached lookups. ++File '/a/b/package.json' does not exist according to earlier cached lookups. ++File '/a/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ph' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types/node/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. ++File '/a/b/node_modules/ph.ts' does not exist. ++File '/a/b/node_modules/ph.tsx' does not exist. ++File '/a/b/node_modules/ph.d.ts' does not exist. ++File '/a/b/node_modules/@types/ph.d.ts' does not exist. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types/node_modules' does not exist, skipping all lookups in it. ++File '/a/b/node_modules/ph.js' does not exist. ++File '/a/b/node_modules/ph.jsx' does not exist. ++Directory '/a/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'ph' was not resolved. ======== ++======== Resolving module 'node:ph' from '/a/b/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + File '/a/b/package.json' does not exist. + File '/a/package.json' does not exist. + File '/package.json' does not exist. +-Module 'ph' was resolved as locally declared ambient module in file '/a/b/node_modules/@types/node/ph.d.ts'. +-======== Resolving module 'node:ph' from '/a/b/main.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, Declaration. +-Skipping module 'node:ph' that looks like an absolute URI, target file types: JavaScript. ++Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, JavaScript, Declaration, JSON. + ======== Module name 'node:ph' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json new file mode 100644 index 0000000000..bdd4cc8534 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json @@ -0,0 +1,18 @@ +======== Resolving module 'fake:thing' from '/a/b/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'fake:thing'. +Module name 'fake:thing', matched pattern 'fake:thing'. +Trying substitution './node_modules/fake/thing', candidate module location: './node_modules/fake/thing'. +Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/a/b/node_modules/fake/thing.ts' does not exist. +File '/a/b/node_modules/fake/thing.tsx' does not exist. +File '/a/b/node_modules/fake/thing.d.ts' does not exist. +File '/a/b/node_modules/fake/thing.js' does not exist. +File '/a/b/node_modules/fake/thing.jsx' does not exist. +File '/a/b/node_modules/fake/thing/package.json' does not exist. +File '/a/b/node_modules/fake/thing/index.ts' does not exist. +File '/a/b/node_modules/fake/thing/index.tsx' does not exist. +File '/a/b/node_modules/fake/thing/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/b/node_modules/fake/thing/index.d.ts', result '/a/b/node_modules/fake/thing/index.d.ts'. +======== Module name 'fake:thing' was successfully resolved to '/a/b/node_modules/fake/thing/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff new file mode 100644 index 0000000000..a2abf5f5b0 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff @@ -0,0 +1,29 @@ +--- old.nodeColonModuleResolution2.trace.json ++++ new.nodeColonModuleResolution2.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'fake:thing' from '/a/b/main.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'fake:thing'. + Module name 'fake:thing', matched pattern 'fake:thing'. + Trying substitution './node_modules/fake/thing', candidate module location: './node_modules/fake/thing'. +-Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/a/b/node_modules/fake/thing.ts' does not exist. + File '/a/b/node_modules/fake/thing.tsx' does not exist. + File '/a/b/node_modules/fake/thing.d.ts' does not exist. ++File '/a/b/node_modules/fake/thing.js' does not exist. ++File '/a/b/node_modules/fake/thing.jsx' does not exist. + File '/a/b/node_modules/fake/thing/package.json' does not exist. + File '/a/b/node_modules/fake/thing/index.ts' does not exist. + File '/a/b/node_modules/fake/thing/index.tsx' does not exist. + File '/a/b/node_modules/fake/thing/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/b/node_modules/fake/thing/index.d.ts', result '/a/b/node_modules/fake/thing/index.d.ts'. + ======== Module name 'fake:thing' was successfully resolved to '/a/b/node_modules/fake/thing/index.d.ts'. ======== +-File '/a/b/node_modules/fake/thing/package.json' does not exist according to earlier cached lookups. +-File '/a/b/node_modules/fake/package.json' does not exist. +-File '/a/b/node_modules/package.json' does not exist. +-File '/a/b/package.json' does not exist. +-File '/a/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json new file mode 100644 index 0000000000..ce51ceaa4f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json @@ -0,0 +1,24 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/a/b/c/d/e/package.json' exists according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff new file mode 100644 index 0000000000..1df9f7672f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff @@ -0,0 +1,45 @@ +--- old.nodeNextModuleResolution1.trace.json ++++ new.nodeNextModuleResolution1.trace.json +@@= skipped -0, +0 lines =@@ +-File '/a/node_modules/package.json' does not exist. +-File '/a/package.json' does not exist. +-File '/package.json' does not exist. +-Found 'package.json' at '/a/b/c/d/e/package.json'. + ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== + Explicitly specified module resolution kind: 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -8, +4 lines =@@ + Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Searching all ancestor node_modules directories for fallback extensions: JavaScript. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +@@= skipped -12, +17 lines =@@ + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json new file mode 100644 index 0000000000..6e2c914491 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json @@ -0,0 +1,24 @@ +======== Resolving module 'foo' from '/a/b/c/d/e/app.mts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/a/b/c/d/e/package.json' does not exist. +File '/a/b/c/d/package.json' does not exist. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/a/node_modules/foo/package.json'. +Using 'exports' subpath '.' with target './index.d.ts'. +File '/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/node_modules/foo/index.d.ts', result '/a/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/a/node_modules/foo/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff new file mode 100644 index 0000000000..83d02f9862 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff @@ -0,0 +1,38 @@ +--- old.nodeNextModuleResolution2.trace.json ++++ new.nodeNextModuleResolution2.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/a/node_modules/foo/package.json'. + ======== Resolving module 'foo' from '/a/b/c/d/e/app.mts'. ======== + Explicitly specified module resolution kind: 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -10, +9 lines =@@ + Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +-File '/a/node_modules/foo/package.json' exists according to earlier cached lookups. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. ++Found 'package.json' at '/a/node_modules/foo/package.json'. + Using 'exports' subpath '.' with target './index.d.ts'. + File '/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/node_modules/foo/index.d.ts', result '/a/node_modules/foo/index.d.ts'. + ======== Module name 'foo' was successfully resolved to '/a/node_modules/foo/index.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json new file mode 100644 index 0000000000..bf3d568b76 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json @@ -0,0 +1,44 @@ +======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File 'c:/root/folder1/package.json' does not exist. +File 'c:/root/package.json' does not exist according to earlier cached lookups. +File 'c:/package.json' does not exist according to earlier cached lookups. +Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +======== Module name 'folder2/file2' was not resolved. ======== +======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. +======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== +======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File 'c:/root/folder2/package.json' does not exist. +File 'c:/root/package.json' does not exist. +File 'c:/package.json' does not exist according to earlier cached lookups. +Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. +File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. +File 'c:/node_modules/file4.ts' does not exist. +File 'c:/node_modules/file4.tsx' does not exist. +File 'c:/node_modules/file4.d.ts' does not exist. +File 'c:/node_modules/file4/index.ts' does not exist. +File 'c:/node_modules/file4/index.tsx' does not exist. +File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result. +Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'. +======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff new file mode 100644 index 0000000000..c69a404b5a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff @@ -0,0 +1,67 @@ +--- old.pathMappingBasedModuleResolution3_node.trace.json ++++ new.pathMappingBasedModuleResolution3_node.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'. +-Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'. +-Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration. +-File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result. +-======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File 'c:/root/folder1/package.json' does not exist. ++File 'c:/root/package.json' does not exist according to earlier cached lookups. ++File 'c:/package.json' does not exist according to earlier cached lookups. ++Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. ++Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'folder2/file2' was not resolved. ======== + ======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. + ======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== + ======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'. +-Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'. +-Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration. +-File 'c:/root/file4.ts' does not exist. +-File 'c:/root/file4.tsx' does not exist. +-File 'c:/root/file4.d.ts' does not exist. +-Directory 'c:/root/file4' does not exist, skipping all lookups in it. +-Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File 'c:/root/folder2/package.json' does not exist. ++File 'c:/root/package.json' does not exist. ++File 'c:/package.json' does not exist according to earlier cached lookups. ++Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. + Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +-File 'c:/node_modules/file4/package.json' does not exist. ++Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. ++File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. + File 'c:/node_modules/file4.ts' does not exist. + File 'c:/node_modules/file4.tsx' does not exist. + File 'c:/node_modules/file4.d.ts' does not exist. +@@= skipped -31, +41 lines =@@ + File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result. + Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'. + ======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ======== +-File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. +-File 'c:/node_modules/package.json' does not exist. +-File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json new file mode 100644 index 0000000000..3be9961801 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json @@ -0,0 +1,44 @@ +======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File 'c:/root/folder1/package.json' does not exist. +File 'c:/root/package.json' does not exist according to earlier cached lookups. +File 'c:/package.json' does not exist according to earlier cached lookups. +Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +======== Module name 'folder2/file2' was not resolved. ======== +======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. +======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== +======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File 'c:/root/folder2/package.json' does not exist. +File 'c:/root/package.json' does not exist. +File 'c:/package.json' does not exist. +Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. +File 'c:/node_modules/file4/package.json' does not exist. +File 'c:/node_modules/file4.ts' does not exist. +File 'c:/node_modules/file4.tsx' does not exist. +File 'c:/node_modules/file4.d.ts' does not exist. +File 'c:/node_modules/file4/index.ts' does not exist. +File 'c:/node_modules/file4/index.tsx' does not exist. +File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result. +Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'. +======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff new file mode 100644 index 0000000000..83593d050e --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff @@ -0,0 +1,65 @@ +--- old.pathMappingBasedModuleResolution4_node.trace.json ++++ new.pathMappingBasedModuleResolution4_node.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'. +-Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'. +-Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration. +-File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result. +-======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File 'c:/root/folder1/package.json' does not exist. ++File 'c:/root/package.json' does not exist according to earlier cached lookups. ++File 'c:/package.json' does not exist according to earlier cached lookups. ++Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. ++Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'folder2/file2' was not resolved. ======== + ======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. + ======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== + ======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'. +-Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'. +-Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration. +-File 'c:/root/file4.ts' does not exist. +-File 'c:/root/file4.tsx' does not exist. +-File 'c:/root/file4.d.ts' does not exist. +-Directory 'c:/root/file4' does not exist, skipping all lookups in it. +-Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File 'c:/root/folder2/package.json' does not exist. ++File 'c:/root/package.json' does not exist. ++File 'c:/package.json' does not exist. ++Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. + Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. + File 'c:/node_modules/file4/package.json' does not exist. + File 'c:/node_modules/file4.ts' does not exist. + File 'c:/node_modules/file4.tsx' does not exist. +@@= skipped -31, +41 lines =@@ + File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result. + Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'. + ======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ======== +-File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. +-File 'c:/node_modules/package.json' does not exist. +-File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json new file mode 100644 index 0000000000..baa2b61635 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json @@ -0,0 +1,70 @@ +======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'folder2/file1'. +Module name 'folder2/file1', matched pattern '*'. +Trying substitution '*', candidate module location: 'folder2/file1'. +Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/folder2/file1.ts' exists - use it as a name resolution result. +======== Module name 'folder2/file1' was successfully resolved to 'c:/root/folder2/file1.ts'. ======== +======== Resolving module 'folder3/file2' from 'c:/root/folder1/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'folder3/file2'. +Module name 'folder3/file2', matched pattern '*'. +Trying substitution '*', candidate module location: 'folder3/file2'. +Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. +Trying substitution 'generated/*', candidate module location: 'generated/folder3/file2'. +Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/generated/folder3/file2.ts' exists - use it as a name resolution result. +======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ======== +======== Resolving module 'components/file3' from 'c:/root/folder1/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'components/file3'. +Module name 'components/file3', matched pattern 'components/*'. +Trying substitution 'shared/components/*', candidate module location: 'shared/components/file3'. +Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/shared/components/file3.ts' does not exist. +File 'c:/root/shared/components/file3.tsx' does not exist. +File 'c:/root/shared/components/file3.d.ts' does not exist. +File 'c:/root/shared/components/file3.js' does not exist. +File 'c:/root/shared/components/file3.jsx' does not exist. +File 'c:/root/shared/components/file3/package.json' does not exist. +File 'c:/root/shared/components/file3/index.ts' does not exist. +File 'c:/root/shared/components/file3/index.tsx' does not exist. +File 'c:/root/shared/components/file3/index.d.ts' exists - use it as a name resolution result. +======== Module name 'components/file3' was successfully resolved to 'c:/root/shared/components/file3/index.d.ts'. ======== +======== Resolving module 'file4' from 'c:/root/folder1/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file4'. +Module name 'file4', matched pattern '*'. +Trying substitution '*', candidate module location: 'file4'. +Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/file4.ts' does not exist. +File 'c:/root/file4.tsx' does not exist. +File 'c:/root/file4.d.ts' does not exist. +File 'c:/root/file4.js' does not exist. +File 'c:/root/file4.jsx' does not exist. +Directory 'c:/root/file4' does not exist, skipping all lookups in it. +Trying substitution 'generated/*', candidate module location: 'generated/file4'. +Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/generated/file4.ts' does not exist. +File 'c:/root/generated/file4.tsx' does not exist. +File 'c:/root/generated/file4.d.ts' does not exist. +File 'c:/root/generated/file4.js' does not exist. +File 'c:/root/generated/file4.jsx' does not exist. +Directory 'c:/root/generated/file4' does not exist, skipping all lookups in it. +File 'c:/root/folder1/package.json' does not exist. +File 'c:/root/package.json' does not exist. +File 'c:/package.json' does not exist. +Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. +File 'c:/node_modules/file4.ts' exists - use it as a name resolution result. +Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'. +======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff new file mode 100644 index 0000000000..a160098063 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff @@ -0,0 +1,90 @@ +--- old.pathMappingBasedModuleResolution5_node.trace.json ++++ new.pathMappingBasedModuleResolution5_node.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file1'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'folder2/file1'. + Module name 'folder2/file1', matched pattern '*'. + Trying substitution '*', candidate module location: 'folder2/file1'. +-Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/folder2/file1.ts' exists - use it as a name resolution result. + ======== Module name 'folder2/file1' was successfully resolved to 'c:/root/folder2/file1.ts'. ======== + ======== Resolving module 'folder3/file2' from 'c:/root/folder1/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder3/file2'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'folder3/file2'. + Module name 'folder3/file2', matched pattern '*'. + Trying substitution '*', candidate module location: 'folder3/file2'. +-Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. + Trying substitution 'generated/*', candidate module location: 'generated/folder3/file2'. +-Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/generated/folder3/file2.ts' exists - use it as a name resolution result. + ======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ======== + ======== Resolving module 'components/file3' from 'c:/root/folder1/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'components/file3'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'components/file3'. + Module name 'components/file3', matched pattern 'components/*'. + Trying substitution 'shared/components/*', candidate module location: 'shared/components/file3'. +-Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/shared/components/file3.ts' does not exist. + File 'c:/root/shared/components/file3.tsx' does not exist. + File 'c:/root/shared/components/file3.d.ts' does not exist. ++File 'c:/root/shared/components/file3.js' does not exist. ++File 'c:/root/shared/components/file3.jsx' does not exist. + File 'c:/root/shared/components/file3/package.json' does not exist. + File 'c:/root/shared/components/file3/index.ts' does not exist. + File 'c:/root/shared/components/file3/index.tsx' does not exist. + File 'c:/root/shared/components/file3/index.d.ts' exists - use it as a name resolution result. + ======== Module name 'components/file3' was successfully resolved to 'c:/root/shared/components/file3/index.d.ts'. ======== + ======== Resolving module 'file4' from 'c:/root/folder1/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file4'. + Module name 'file4', matched pattern '*'. + Trying substitution '*', candidate module location: 'file4'. +-Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/file4.ts' does not exist. + File 'c:/root/file4.tsx' does not exist. + File 'c:/root/file4.d.ts' does not exist. ++File 'c:/root/file4.js' does not exist. ++File 'c:/root/file4.jsx' does not exist. + Directory 'c:/root/file4' does not exist, skipping all lookups in it. + Trying substitution 'generated/*', candidate module location: 'generated/file4'. +-Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/root/generated/file4.ts' does not exist. + File 'c:/root/generated/file4.tsx' does not exist. + File 'c:/root/generated/file4.d.ts' does not exist. ++File 'c:/root/generated/file4.js' does not exist. ++File 'c:/root/generated/file4.jsx' does not exist. + Directory 'c:/root/generated/file4' does not exist, skipping all lookups in it. +-Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File 'c:/root/folder1/package.json' does not exist. ++File 'c:/root/package.json' does not exist. ++File 'c:/package.json' does not exist. ++Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. + Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. + File 'c:/node_modules/file4.ts' exists - use it as a name resolution result. + Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'. + ======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ======== +-File 'c:/node_modules/package.json' does not exist. +-File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json new file mode 100644 index 0000000000..a6b771ebbf --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './project/file3' from 'c:/root/src/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location 'c:/root/src/project/file3', target file types: TypeScript, JavaScript, Declaration, JSON. +Directory 'c:/root/src/project' does not exist, skipping all lookups in it. +======== Module name './project/file3' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff new file mode 100644 index 0000000000..fd5c3ba2e3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff @@ -0,0 +1,44 @@ +--- old.pathMappingBasedModuleResolution6_node.trace.json ++++ new.pathMappingBasedModuleResolution6_node.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './project/file3' from 'c:/root/src/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'rootDirs' option is set, using it to resolve relative module name './project/file3'. +-Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'true'. +-Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'false'. +-Longest matching prefix for 'c:/root/src/project/file3' is 'c:/root/src/'. +-Loading 'project/file3' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file3'. +-Loading module as file / folder, candidate module location 'c:/root/src/project/file3', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location 'c:/root/src/project/file3', target file types: TypeScript, JavaScript, Declaration, JSON. + Directory 'c:/root/src/project' does not exist, skipping all lookups in it. +-Trying other entries in 'rootDirs'. +-Loading 'project/file3' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file3'. +-Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file3', target file types: TypeScript, Declaration. +-File 'c:/root/generated/src/project/file3.ts' exists - use it as a name resolution result. +-======== Module name './project/file3' was successfully resolved to 'c:/root/generated/src/project/file3.ts'. ======== +-======== Resolving module '../file2' from 'c:/root/generated/src/project/file3.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'rootDirs' option is set, using it to resolve relative module name '../file2'. +-Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'false'. +-Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'true'. +-Longest matching prefix for 'c:/root/generated/src/file2' is 'c:/root/generated/src/'. +-Loading 'file2' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file2'. +-Loading module as file / folder, candidate module location 'c:/root/generated/src/file2', target file types: TypeScript, Declaration. +-File 'c:/root/generated/src/file2.ts' does not exist. +-File 'c:/root/generated/src/file2.tsx' does not exist. +-File 'c:/root/generated/src/file2.d.ts' does not exist. +-Directory 'c:/root/generated/src/file2' does not exist, skipping all lookups in it. +-Trying other entries in 'rootDirs'. +-Loading 'file2' from the root dir 'c:/root/src', candidate location 'c:/root/src/file2'. +-Loading module as file / folder, candidate module location 'c:/root/src/file2', target file types: TypeScript, Declaration. +-File 'c:/root/src/file2.ts' does not exist. +-File 'c:/root/src/file2.tsx' does not exist. +-File 'c:/root/src/file2.d.ts' does not exist. +-File 'c:/root/src/file2/package.json' does not exist. +-File 'c:/root/src/file2/index.ts' does not exist. +-File 'c:/root/src/file2/index.tsx' does not exist. +-File 'c:/root/src/file2/index.d.ts' exists - use it as a name resolution result. +-======== Module name '../file2' was successfully resolved to 'c:/root/src/file2/index.d.ts'. ======== ++======== Module name './project/file3' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json new file mode 100644 index 0000000000..d337abb7ff --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json @@ -0,0 +1,41 @@ +======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file types: TypeScript, JavaScript, Declaration, JSON. +Directory 'c:/root/src/project' does not exist, skipping all lookups in it. +======== Module name './project/file2' was not resolved. ======== +======== Resolving module 'module3' from 'c:/root/src/file1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'module3'. +Module name 'module3', matched pattern '*'. +Trying substitution '*', candidate module location: 'module3'. +Loading module as file / folder, candidate module location 'c:/root/src/module3', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/root/src/module3.ts' does not exist. +File 'c:/root/src/module3.tsx' does not exist. +File 'c:/root/src/module3.d.ts' does not exist. +File 'c:/root/src/module3.js' does not exist. +File 'c:/root/src/module3.jsx' does not exist. +Directory 'c:/root/src/module3' does not exist, skipping all lookups in it. +Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module3'. +Loading module as file / folder, candidate module location 'c:/shared/module3', target file types: TypeScript, JavaScript, Declaration, JSON. +File 'c:/shared/module3.ts' does not exist. +File 'c:/shared/module3.tsx' does not exist. +File 'c:/shared/module3.d.ts' does not exist. +File 'c:/shared/module3.js' does not exist. +File 'c:/shared/module3.jsx' does not exist. +Directory 'c:/shared/module3' does not exist, skipping all lookups in it. +File 'c:/root/src/package.json' does not exist. +File 'c:/root/package.json' does not exist. +File 'c:/package.json' does not exist. +Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. +Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. +File 'c:/node_modules/module3.ts' does not exist. +File 'c:/node_modules/module3.tsx' does not exist. +File 'c:/node_modules/module3.d.ts' exists - use it as a name resolution result. +Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'. +======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff new file mode 100644 index 0000000000..78750a4e91 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff @@ -0,0 +1,120 @@ +--- old.pathMappingBasedModuleResolution7_node.trace.json ++++ new.pathMappingBasedModuleResolution7_node.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'rootDirs' option is set, using it to resolve relative module name './project/file2'. +-Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'true'. +-Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'false'. +-Longest matching prefix for 'c:/root/src/project/file2' is 'c:/root/src/'. +-Loading 'project/file2' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file2'. +-Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file types: TypeScript, JavaScript, Declaration, JSON. + Directory 'c:/root/src/project' does not exist, skipping all lookups in it. +-Trying other entries in 'rootDirs'. +-Loading 'project/file2' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file2'. +-Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file2', target file types: TypeScript, Declaration. +-File 'c:/root/generated/src/project/file2.ts' exists - use it as a name resolution result. +-======== Module name './project/file2' was successfully resolved to 'c:/root/generated/src/project/file2.ts'. ======== ++======== Module name './project/file2' was not resolved. ======== + ======== Resolving module 'module3' from 'c:/root/src/file1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module3'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'module3'. + Module name 'module3', matched pattern '*'. + Trying substitution '*', candidate module location: 'module3'. +-Loading module as file / folder, candidate module location 'c:/root/module3', target file types: TypeScript, Declaration. +-File 'c:/root/module3.ts' does not exist. +-File 'c:/root/module3.tsx' does not exist. +-File 'c:/root/module3.d.ts' does not exist. +-Directory 'c:/root/module3' does not exist, skipping all lookups in it. ++Loading module as file / folder, candidate module location 'c:/root/src/module3', target file types: TypeScript, JavaScript, Declaration, JSON. ++File 'c:/root/src/module3.ts' does not exist. ++File 'c:/root/src/module3.tsx' does not exist. ++File 'c:/root/src/module3.d.ts' does not exist. ++File 'c:/root/src/module3.js' does not exist. ++File 'c:/root/src/module3.jsx' does not exist. ++Directory 'c:/root/src/module3' does not exist, skipping all lookups in it. + Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module3'. +-Loading module as file / folder, candidate module location 'c:/shared/module3', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location 'c:/shared/module3', target file types: TypeScript, JavaScript, Declaration, JSON. + File 'c:/shared/module3.ts' does not exist. + File 'c:/shared/module3.tsx' does not exist. + File 'c:/shared/module3.d.ts' does not exist. ++File 'c:/shared/module3.js' does not exist. ++File 'c:/shared/module3.jsx' does not exist. + Directory 'c:/shared/module3' does not exist, skipping all lookups in it. +-Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File 'c:/root/src/package.json' does not exist. ++File 'c:/root/package.json' does not exist. ++File 'c:/package.json' does not exist. ++Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/src/node_modules/@types' does not exist, skipping all lookups in it. + Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. ++Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. + File 'c:/node_modules/module3.ts' does not exist. + File 'c:/node_modules/module3.tsx' does not exist. + File 'c:/node_modules/module3.d.ts' exists - use it as a name resolution result. + Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'. + ======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ======== +-======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'. +-'paths' option is specified, looking for a pattern to match module name 'module1'. +-Module name 'module1', matched pattern '*'. +-Trying substitution '*', candidate module location: 'module1'. +-Loading module as file / folder, candidate module location 'c:/root/module1', target file types: TypeScript, Declaration. +-File 'c:/root/module1.ts' does not exist. +-File 'c:/root/module1.tsx' does not exist. +-File 'c:/root/module1.d.ts' does not exist. +-Directory 'c:/root/module1' does not exist, skipping all lookups in it. +-Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module1'. +-Loading module as file / folder, candidate module location 'c:/shared/module1', target file types: TypeScript, Declaration. +-File 'c:/shared/module1.ts' does not exist. +-File 'c:/shared/module1.tsx' does not exist. +-File 'c:/shared/module1.d.ts' does not exist. +-File 'c:/shared/module1/package.json' does not exist. +-File 'c:/shared/module1/index.ts' does not exist. +-File 'c:/shared/module1/index.tsx' does not exist. +-File 'c:/shared/module1/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'module1' was successfully resolved to 'c:/shared/module1/index.d.ts'. ======== +-======== Resolving module 'templates/module2' from 'c:/root/generated/src/project/file2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'templates/module2'. +-'paths' option is specified, looking for a pattern to match module name 'templates/module2'. +-Module name 'templates/module2', matched pattern 'templates/*'. +-Trying substitution 'generated/src/templates/*', candidate module location: 'generated/src/templates/module2'. +-Loading module as file / folder, candidate module location 'c:/root/generated/src/templates/module2', target file types: TypeScript, Declaration. +-File 'c:/root/generated/src/templates/module2.ts' exists - use it as a name resolution result. +-======== Module name 'templates/module2' was successfully resolved to 'c:/root/generated/src/templates/module2.ts'. ======== +-======== Resolving module '../file3' from 'c:/root/generated/src/project/file2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'rootDirs' option is set, using it to resolve relative module name '../file3'. +-Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'false'. +-Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'true'. +-Longest matching prefix for 'c:/root/generated/src/file3' is 'c:/root/generated/src/'. +-Loading 'file3' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file3'. +-Loading module as file / folder, candidate module location 'c:/root/generated/src/file3', target file types: TypeScript, Declaration. +-File 'c:/root/generated/src/file3.ts' does not exist. +-File 'c:/root/generated/src/file3.tsx' does not exist. +-File 'c:/root/generated/src/file3.d.ts' does not exist. +-Directory 'c:/root/generated/src/file3' does not exist, skipping all lookups in it. +-Trying other entries in 'rootDirs'. +-Loading 'file3' from the root dir 'c:/root/src', candidate location 'c:/root/src/file3'. +-Loading module as file / folder, candidate module location 'c:/root/src/file3', target file types: TypeScript, Declaration. +-File 'c:/root/src/file3.ts' does not exist. +-File 'c:/root/src/file3.tsx' does not exist. +-File 'c:/root/src/file3.d.ts' does not exist. +-File 'c:/root/src/file3/package.json' does not exist. +-File 'c:/root/src/file3/index.ts' does not exist. +-File 'c:/root/src/file3/index.tsx' does not exist. +-File 'c:/root/src/file3/index.d.ts' exists - use it as a name resolution result. +-======== Module name '../file3' was successfully resolved to 'c:/root/src/file3/index.d.ts'. ======== +-File 'c:/node_modules/package.json' does not exist. +-File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json new file mode 100644 index 0000000000..db03ff8304 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json @@ -0,0 +1,8 @@ +======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '@speedy/folder1/testing'. +Module name '@speedy/folder1/testing', matched pattern '@speedy/*/testing'. +Trying substitution '*/dist/index.ts', candidate module location: 'folder1/dist/index.ts'. +File 'c:/root/folder1/dist/index.ts' exists - use it as a name resolution result. +======== Module name '@speedy/folder1/testing' was successfully resolved to 'c:/root/folder1/dist/index.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff new file mode 100644 index 0000000000..7bac31953a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff @@ -0,0 +1,11 @@ +--- old.pathMappingBasedModuleResolution8_node.trace.json ++++ new.pathMappingBasedModuleResolution8_node.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name '@speedy/folder1/testing'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '@speedy/folder1/testing'. + Module name '@speedy/folder1/testing', matched pattern '@speedy/*/testing'. + Trying substitution '*/dist/index.ts', candidate module location: 'folder1/dist/index.ts'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json new file mode 100644 index 0000000000..9bd8d21bcc --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json @@ -0,0 +1,21 @@ +======== Resolving module '/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/foo'. +Module name '/foo', matched pattern '/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module '/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/bar'. +Module name '/bar', matched pattern '/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff new file mode 100644 index 0000000000..5c157ddf00 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff @@ -0,0 +1,41 @@ +--- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json ++++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/foo'. + Module name '/foo', matched pattern '/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module '/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/bar'. + Module name '/bar', matched pattern '/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. +-File '/bar.ts' does not exist. +-File '/bar.tsx' does not exist. +-File '/bar.d.ts' does not exist. +-Directory '/bar' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. +-'paths' option is specified, looking for a pattern to match module name '/bar'. +-Module name '/bar', matched pattern '/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json new file mode 100644 index 0000000000..c38dde916c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json @@ -0,0 +1,189 @@ +======== Resolving module '/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/foo'. +Module name '/foo', matched pattern '/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module '/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/bar'. +Module name '/bar', matched pattern '/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module 'c:/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'c:/foo'. +Module name 'c:/foo', matched pattern 'c:/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name 'c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module 'c:/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'c:/bar'. +Module name 'c:/bar', matched pattern 'c:/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name 'c:/bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module 'c:\foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'c:\foo'. +Module name 'c:\foo', matched pattern 'c:\*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name 'c:\foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module 'c:\bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'c:\bar'. +Module name 'c:\bar', matched pattern 'c:\*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name 'c:\bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module '//server/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '//server/foo'. +Module name '//server/foo', matched pattern '//server/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name '//server/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module '//server/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '//server/bar'. +Module name '//server/bar', matched pattern '//server/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name '//server/bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module '\\server\foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '\\server\foo'. +Module name '\\server\foo', matched pattern '\\server\*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name '\\server\foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module '\\server\bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '\\server\bar'. +Module name '\\server\bar', matched pattern '\\server\*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name '\\server\bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module 'file:///foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file:///foo'. +Module name 'file:///foo', matched pattern 'file:///*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name 'file:///foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module 'file:///bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file:///bar'. +Module name 'file:///bar', matched pattern 'file:///*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name 'file:///bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module 'file://c:/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file://c:/foo'. +Module name 'file://c:/foo', matched pattern 'file://c:/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name 'file://c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module 'file://c:/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'. +Module name 'file://c:/bar', matched pattern 'file://c:/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name 'file://c:/bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module 'file://server/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file://server/foo'. +Module name 'file://server/foo', matched pattern 'file://server/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name 'file://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module 'file://server/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'file://server/bar'. +Module name 'file://server/bar', matched pattern 'file://server/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name 'file://server/bar' was successfully resolved to '/root/src/bar.js'. ======== +======== Resolving module 'http://server/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'http://server/foo'. +Module name 'http://server/foo', matched pattern 'http://server/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name 'http://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module 'http://server/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'http://server/bar'. +Module name 'http://server/bar', matched pattern 'http://server/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name 'http://server/bar' was successfully resolved to '/root/src/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff new file mode 100644 index 0000000000..549ffd1da3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff @@ -0,0 +1,333 @@ +--- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json ++++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/foo'. + Module name '/foo', matched pattern '/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module '/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/bar'. + Module name '/bar', matched pattern '/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. +-File '/bar.ts' does not exist. +-File '/bar.tsx' does not exist. +-File '/bar.d.ts' does not exist. +-Directory '/bar' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. +-'paths' option is specified, looking for a pattern to match module name '/bar'. +-Module name '/bar', matched pattern '/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== + ======== Resolving module 'c:/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'c:/foo'. + Module name 'c:/foo', matched pattern 'c:/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name 'c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module 'c:/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'c:/bar'. + Module name 'c:/bar', matched pattern 'c:/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location 'c:/bar', target file types: TypeScript, Declaration. +-Directory 'c:/' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/bar'. +-'paths' option is specified, looking for a pattern to match module name 'c:/bar'. +-Module name 'c:/bar', matched pattern 'c:/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name 'c:/bar' was successfully resolved to '/root/src/bar.js'. ======== +-======== Resolving module 'c:\\foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\foo'. +-'paths' option is specified, looking for a pattern to match module name 'c:\\foo'. +-Module name 'c:\\foo', matched pattern 'c:\\*'. ++======== Resolving module 'c:\foo' from '/root/a.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++'paths' option is specified, looking for a pattern to match module name 'c:\foo'. ++Module name 'c:\foo', matched pattern 'c:\*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. +-======== Module name 'c:\\foo' was successfully resolved to '/root/src/foo.ts'. ======== +-======== Resolving module 'c:\\bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\bar'. +-'paths' option is specified, looking for a pattern to match module name 'c:\\bar'. +-Module name 'c:\\bar', matched pattern 'c:\\*'. ++======== Module name 'c:\foo' was successfully resolved to '/root/src/foo.ts'. ======== ++======== Resolving module 'c:\bar' from '/root/a.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++'paths' option is specified, looking for a pattern to match module name 'c:\bar'. ++Module name 'c:\bar', matched pattern 'c:\*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location 'c:/bar', target file types: TypeScript, Declaration. +-Directory 'c:/' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\bar'. +-'paths' option is specified, looking for a pattern to match module name 'c:\\bar'. +-Module name 'c:\\bar', matched pattern 'c:\\*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. +-======== Module name 'c:\\bar' was successfully resolved to '/root/src/bar.js'. ======== ++======== Module name 'c:\bar' was successfully resolved to '/root/src/bar.js'. ======== + ======== Resolving module '//server/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '//server/foo'. + Module name '//server/foo', matched pattern '//server/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name '//server/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module '//server/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '//server/bar'. + Module name '//server/bar', matched pattern '//server/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '//server/bar', target file types: TypeScript, Declaration. +-Directory '//server/' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/bar'. +-'paths' option is specified, looking for a pattern to match module name '//server/bar'. +-Module name '//server/bar', matched pattern '//server/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name '//server/bar' was successfully resolved to '/root/src/bar.js'. ======== +-======== Resolving module '\\\\server\\foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\foo'. +-'paths' option is specified, looking for a pattern to match module name '\\\\server\\foo'. +-Module name '\\\\server\\foo', matched pattern '\\\\server\\*'. ++======== Resolving module '\\server\foo' from '/root/a.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++'paths' option is specified, looking for a pattern to match module name '\\server\foo'. ++Module name '\\server\foo', matched pattern '\\server\*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. +-======== Module name '\\\\server\\foo' was successfully resolved to '/root/src/foo.ts'. ======== +-======== Resolving module '\\\\server\\bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\bar'. +-'paths' option is specified, looking for a pattern to match module name '\\\\server\\bar'. +-Module name '\\\\server\\bar', matched pattern '\\\\server\\*'. ++======== Module name '\\server\foo' was successfully resolved to '/root/src/foo.ts'. ======== ++======== Resolving module '\\server\bar' from '/root/a.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++'paths' option is specified, looking for a pattern to match module name '\\server\bar'. ++Module name '\\server\bar', matched pattern '\\server\*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '//server/bar', target file types: TypeScript, Declaration. +-Directory '//server/' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\bar'. +-'paths' option is specified, looking for a pattern to match module name '\\\\server\\bar'. +-Module name '\\\\server\\bar', matched pattern '\\\\server\\*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. +-======== Module name '\\\\server\\bar' was successfully resolved to '/root/src/bar.js'. ======== ++======== Module name '\\server\bar' was successfully resolved to '/root/src/bar.js'. ======== + ======== Resolving module 'file:///foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file:///foo'. + Module name 'file:///foo', matched pattern 'file:///*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name 'file:///foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module 'file:///bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file:///bar'. + Module name 'file:///bar', matched pattern 'file:///*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Skipping module 'file:///bar' that looks like an absolute URI, target file types: TypeScript, Declaration. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'. +-'paths' option is specified, looking for a pattern to match module name 'file:///bar'. +-Module name 'file:///bar', matched pattern 'file:///*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name 'file:///bar' was successfully resolved to '/root/src/bar.js'. ======== + ======== Resolving module 'file://c:/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file://c:/foo'. + Module name 'file://c:/foo', matched pattern 'file://c:/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name 'file://c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module 'file://c:/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'. + Module name 'file://c:/bar', matched pattern 'file://c:/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Skipping module 'file://c:/bar' that looks like an absolute URI, target file types: TypeScript, Declaration. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'. +-'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'. +-Module name 'file://c:/bar', matched pattern 'file://c:/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name 'file://c:/bar' was successfully resolved to '/root/src/bar.js'. ======== + ======== Resolving module 'file://server/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file://server/foo'. + Module name 'file://server/foo', matched pattern 'file://server/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name 'file://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module 'file://server/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'file://server/bar'. + Module name 'file://server/bar', matched pattern 'file://server/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Skipping module 'file://server/bar' that looks like an absolute URI, target file types: TypeScript, Declaration. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'. +-'paths' option is specified, looking for a pattern to match module name 'file://server/bar'. +-Module name 'file://server/bar', matched pattern 'file://server/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name 'file://server/bar' was successfully resolved to '/root/src/bar.js'. ======== + ======== Resolving module 'http://server/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'http://server/foo'. + Module name 'http://server/foo', matched pattern 'http://server/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name 'http://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module 'http://server/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'http://server/bar'. + Module name 'http://server/bar', matched pattern 'http://server/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Skipping module 'http://server/bar' that looks like an absolute URI, target file types: TypeScript, Declaration. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'. +-'paths' option is specified, looking for a pattern to match module name 'http://server/bar'. +-Module name 'http://server/bar', matched pattern 'http://server/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name 'http://server/bar' was successfully resolved to '/root/src/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json new file mode 100644 index 0000000000..04ef899b76 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json @@ -0,0 +1,21 @@ +======== Resolving module '/import/foo' from '/root/src/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/import/foo'. +Module name '/import/foo', matched pattern '/import/*'. +Trying substitution './import/*', candidate module location: './import/foo'. +Loading module as file / folder, candidate module location '/root/import/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/import/foo.ts' exists - use it as a name resolution result. +======== Module name '/import/foo' was successfully resolved to '/root/import/foo.ts'. ======== +======== Resolving module '/client/bar' from '/root/src/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/client/bar'. +Module name '/client/bar', matched pattern '/client/*'. +Trying substitution './client/*', candidate module location: './client/bar'. +Loading module as file / folder, candidate module location '/root/client/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/client/bar.ts' does not exist. +File '/root/client/bar.tsx' does not exist. +File '/root/client/bar.d.ts' does not exist. +File '/root/client/bar.js' exists - use it as a name resolution result. +======== Module name '/client/bar' was successfully resolved to '/root/client/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff new file mode 100644 index 0000000000..701a3fb6b7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff @@ -0,0 +1,38 @@ +--- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json ++++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '/import/foo' from '/root/src/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/import/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/import/foo'. + Module name '/import/foo', matched pattern '/import/*'. + Trying substitution './import/*', candidate module location: './import/foo'. +-Loading module as file / folder, candidate module location '/root/import/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/import/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/import/foo.ts' exists - use it as a name resolution result. + ======== Module name '/import/foo' was successfully resolved to '/root/import/foo.ts'. ======== + ======== Resolving module '/client/bar' from '/root/src/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/client/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/client/bar'. + Module name '/client/bar', matched pattern '/client/*'. + Trying substitution './client/*', candidate module location: './client/bar'. +-Loading module as file / folder, candidate module location '/root/client/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/client/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/client/bar.ts' does not exist. + File '/root/client/bar.tsx' does not exist. + File '/root/client/bar.d.ts' does not exist. +-Directory '/root/client/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/client/bar', target file types: TypeScript, Declaration. +-Directory '/client' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/client/bar'. +-'paths' option is specified, looking for a pattern to match module name '/client/bar'. +-Module name '/client/bar', matched pattern '/client/*'. +-Trying substitution './client/*', candidate module location: './client/bar'. +-Loading module as file / folder, candidate module location '/root/client/bar', target file types: JavaScript. + File '/root/client/bar.js' exists - use it as a name resolution result. + ======== Module name '/client/bar' was successfully resolved to '/root/client/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json new file mode 100644 index 0000000000..4f68837ad7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json @@ -0,0 +1,23 @@ +======== Resolving module '/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/foo'. +Module name '/foo', matched pattern '/*'. +Trying substitution './src/*', candidate module location: './src/foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' exists - use it as a name resolution result. +======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== +======== Resolving module '/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/bar'. +Module name '/bar', matched pattern '/*'. +Trying substitution './src/*', candidate module location: './src/bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/bar.ts' does not exist. +File '/bar.tsx' does not exist. +File '/bar.d.ts' does not exist. +File '/bar.js' exists - use it as a name resolution result. +======== Module name '/bar' was successfully resolved to '/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff new file mode 100644 index 0000000000..853490f3ea --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff @@ -0,0 +1,41 @@ +--- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json ++++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/foo'. + Module name '/foo', matched pattern '/*'. + Trying substitution './src/*', candidate module location: './src/foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ts' exists - use it as a name resolution result. + ======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== + ======== Resolving module '/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/bar'. + Module name '/bar', matched pattern '/*'. + Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. +-Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. ++Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/bar.ts' does not exist. + File '/bar.tsx' does not exist. + File '/bar.d.ts' does not exist. +-Directory '/bar' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. +-'paths' option is specified, looking for a pattern to match module name '/bar'. +-Module name '/bar', matched pattern '/*'. +-Trying substitution './src/*', candidate module location: './src/bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. +-Loading module as file / folder, candidate module location '/bar', target file types: JavaScript. + File '/bar.js' exists - use it as a name resolution result. + ======== Module name '/bar' was successfully resolved to '/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json new file mode 100644 index 0000000000..950910be01 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json @@ -0,0 +1,21 @@ +======== Resolving module '/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/foo'. +Module name '/foo', matched pattern '*'. +Trying substitution './src/*', candidate module location: './src//foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/foo.ts' exists - use it as a name resolution result. +======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== +======== Resolving module '/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/bar'. +Module name '/bar', matched pattern '*'. +Trying substitution './src/*', candidate module location: './src//bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/root/src/bar.ts' does not exist. +File '/root/src/bar.tsx' does not exist. +File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.js' exists - use it as a name resolution result. +======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff new file mode 100644 index 0000000000..ec1ecf3a1d --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff @@ -0,0 +1,41 @@ +--- old.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json ++++ new.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/foo'. + Module name '/foo', matched pattern '*'. + Trying substitution './src/*', candidate module location: './src//foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/foo.ts' exists - use it as a name resolution result. + ======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== + ======== Resolving module '/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/bar'. + Module name '/bar', matched pattern '*'. + Trying substitution './src/*', candidate module location: './src//bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/root/src/bar.ts' does not exist. + File '/root/src/bar.tsx' does not exist. + File '/root/src/bar.d.ts' does not exist. +-Directory '/root/src/bar' does not exist, skipping all lookups in it. +-Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. +-File '/bar.ts' does not exist. +-File '/bar.tsx' does not exist. +-File '/bar.d.ts' does not exist. +-Directory '/bar' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. +-'paths' option is specified, looking for a pattern to match module name '/bar'. +-Module name '/bar', matched pattern '*'. +-Trying substitution './src/*', candidate module location: './src//bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. + File '/root/src/bar.js' exists - use it as a name resolution result. + ======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json new file mode 100644 index 0000000000..610a3b617f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json @@ -0,0 +1,23 @@ +======== Resolving module '/foo' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/foo'. +Module name '/foo', matched pattern '*'. +Trying substitution './src/*', candidate module location: './src//foo'. +Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' exists - use it as a name resolution result. +======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== +======== Resolving module '/bar' from '/root/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name '/bar'. +Module name '/bar', matched pattern '*'. +Trying substitution './src/*', candidate module location: './src//bar'. +Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/bar.ts' does not exist. +File '/bar.tsx' does not exist. +File '/bar.d.ts' does not exist. +File '/bar.js' exists - use it as a name resolution result. +======== Module name '/bar' was successfully resolved to '/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff new file mode 100644 index 0000000000..5df048c748 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff @@ -0,0 +1,41 @@ +--- old.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json ++++ new.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '/foo' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/foo'. + Module name '/foo', matched pattern '*'. + Trying substitution './src/*', candidate module location: './src//foo'. +-Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. +-Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. ++Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/foo.ts' exists - use it as a name resolution result. + ======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== + ======== Resolving module '/bar' from '/root/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name '/bar'. + Module name '/bar', matched pattern '*'. + Trying substitution './src/*', candidate module location: './src//bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. +-Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. ++Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/bar.ts' does not exist. + File '/bar.tsx' does not exist. + File '/bar.d.ts' does not exist. +-Directory '/bar' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. +-'paths' option is specified, looking for a pattern to match module name '/bar'. +-Module name '/bar', matched pattern '*'. +-Trying substitution './src/*', candidate module location: './src//bar'. +-Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. +-Loading module as file / folder, candidate module location '/bar', target file types: JavaScript. + File '/bar.js' exists - use it as a name resolution result. + ======== Module name '/bar' was successfully resolved to '/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json new file mode 100644 index 0000000000..e06bc1c1c9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json @@ -0,0 +1,16 @@ +======== Resolving module 'foo' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. +File '/foo/foo.ts' exists - use it as a name resolution result. +======== Module name 'foo' was successfully resolved to '/foo/foo.ts'. ======== +======== Resolving module 'bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'bar'. +Module name 'bar', matched pattern 'bar'. +Trying substitution 'bar/bar.js', candidate module location: 'bar/bar.js'. +File '/bar/bar.js' exists - use it as a name resolution result. +======== Module name 'bar' was successfully resolved to '/bar/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff new file mode 100644 index 0000000000..3b15d9d0a4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff @@ -0,0 +1,21 @@ +--- old.pathMappingBasedModuleResolution_withExtension.trace.json ++++ new.pathMappingBasedModuleResolution_withExtension.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. + File '/foo/foo.ts' exists - use it as a name resolution result. + ======== Module name 'foo' was successfully resolved to '/foo/foo.ts'. ======== + ======== Resolving module 'bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'bar'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'bar'. + Module name 'bar', matched pattern 'bar'. + Trying substitution 'bar/bar.js', candidate module location: 'bar/bar.js'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json new file mode 100644 index 0000000000..72b6bea942 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json @@ -0,0 +1,46 @@ +======== Resolving module 'zone.js' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'zone.js'. +Module name 'zone.js', matched pattern '*'. +Trying substitution 'foo/*', candidate module location: 'foo/zone.js'. +Loading module as file / folder, candidate module location '/foo/zone.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/foo/zone.js' has a '.js' extension - stripping it. +File '/foo/zone.ts' does not exist. +File '/foo/zone.tsx' does not exist. +File '/foo/zone.d.ts' does not exist. +File '/foo/zone.js' does not exist. +File '/foo/zone.jsx' does not exist. +File '/foo/zone.js.ts' does not exist. +File '/foo/zone.js.tsx' does not exist. +File '/foo/zone.js.d.ts' does not exist. +File '/foo/zone.js.js' does not exist. +File '/foo/zone.js.jsx' does not exist. +File '/foo/zone.js/package.json' does not exist. +File '/foo/zone.js/index.ts' does not exist. +File '/foo/zone.js/index.tsx' does not exist. +File '/foo/zone.js/index.d.ts' exists - use it as a name resolution result. +======== Module name 'zone.js' was successfully resolved to '/foo/zone.js/index.d.ts'. ======== +======== Resolving module 'zone.tsx' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'zone.tsx'. +Module name 'zone.tsx', matched pattern '*'. +Trying substitution 'foo/*', candidate module location: 'foo/zone.tsx'. +Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/foo/zone.tsx' has a '.tsx' extension - stripping it. +File '/foo/zone.tsx' does not exist. +File '/foo/zone.ts' does not exist. +File '/foo/zone.d.ts' does not exist. +File '/foo/zone.jsx' does not exist. +File '/foo/zone.js' does not exist. +File '/foo/zone.tsx.ts' does not exist. +File '/foo/zone.tsx.tsx' does not exist. +File '/foo/zone.tsx.d.ts' does not exist. +File '/foo/zone.tsx.js' does not exist. +File '/foo/zone.tsx.jsx' does not exist. +File '/foo/zone.tsx/package.json' does not exist. +File '/foo/zone.tsx/index.ts' does not exist. +File '/foo/zone.tsx/index.tsx' does not exist. +File '/foo/zone.tsx/index.d.ts' exists - use it as a name resolution result. +======== Module name 'zone.tsx' was successfully resolved to '/foo/zone.tsx/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff new file mode 100644 index 0000000000..829cf92042 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff @@ -0,0 +1,53 @@ +--- old.pathMappingBasedModuleResolution_withExtensionInName.trace.json ++++ new.pathMappingBasedModuleResolution_withExtensionInName.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'zone.js' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.js'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'zone.js'. + Module name 'zone.js', matched pattern '*'. + Trying substitution 'foo/*', candidate module location: 'foo/zone.js'. +-Loading module as file / folder, candidate module location '/foo/zone.js', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/foo/zone.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/foo/zone.js' has a '.js' extension - stripping it. + File '/foo/zone.ts' does not exist. + File '/foo/zone.tsx' does not exist. + File '/foo/zone.d.ts' does not exist. ++File '/foo/zone.js' does not exist. ++File '/foo/zone.jsx' does not exist. + File '/foo/zone.js.ts' does not exist. + File '/foo/zone.js.tsx' does not exist. + File '/foo/zone.js.d.ts' does not exist. ++File '/foo/zone.js.js' does not exist. ++File '/foo/zone.js.jsx' does not exist. + File '/foo/zone.js/package.json' does not exist. + File '/foo/zone.js/index.ts' does not exist. + File '/foo/zone.js/index.tsx' does not exist. + File '/foo/zone.js/index.d.ts' exists - use it as a name resolution result. + ======== Module name 'zone.js' was successfully resolved to '/foo/zone.js/index.d.ts'. ======== + ======== Resolving module 'zone.tsx' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.tsx'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'zone.tsx'. + Module name 'zone.tsx', matched pattern '*'. + Trying substitution 'foo/*', candidate module location: 'foo/zone.tsx'. +-Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/foo/zone.tsx' has a '.tsx' extension - stripping it. + File '/foo/zone.tsx' does not exist. + File '/foo/zone.ts' does not exist. + File '/foo/zone.d.ts' does not exist. ++File '/foo/zone.jsx' does not exist. ++File '/foo/zone.js' does not exist. + File '/foo/zone.tsx.ts' does not exist. + File '/foo/zone.tsx.tsx' does not exist. + File '/foo/zone.tsx.d.ts' does not exist. ++File '/foo/zone.tsx.js' does not exist. ++File '/foo/zone.tsx.jsx' does not exist. + File '/foo/zone.tsx/package.json' does not exist. + File '/foo/zone.tsx/index.ts' does not exist. + File '/foo/zone.tsx/index.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json new file mode 100644 index 0000000000..1eeb6b8fee --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'foo/bar/foobar.js' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. +Module name 'foo/bar/foobar.js', matched pattern '*'. +Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. +Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. +File '/node_modules/foo/bar/foobar.ts' does not exist. +File '/node_modules/foo/bar/foobar.tsx' does not exist. +File '/node_modules/foo/bar/foobar.d.ts' does not exist. +File '/node_modules/foo/bar/foobar.js' exists - use it as a name resolution result. +File '/node_modules/foo/package.json' does not exist. +Resolving real path for '/node_modules/foo/bar/foobar.js', result '/node_modules/foo/bar/foobar.js'. +======== Module name 'foo/bar/foobar.js' was successfully resolved to '/node_modules/foo/bar/foobar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff new file mode 100644 index 0000000000..f53be68120 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff @@ -0,0 +1,53 @@ +--- old.pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json ++++ new.pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/bar/foobar.js' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.js'. +-'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. +-Module name 'foo/bar/foobar.js', matched pattern '*'. +-Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. +-Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: TypeScript, Declaration. +-File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. +-File '/node_modules/foo/bar/foobar.ts' does not exist. +-File '/node_modules/foo/bar/foobar.tsx' does not exist. +-File '/node_modules/foo/bar/foobar.d.ts' does not exist. +-File '/node_modules/foo/bar/foobar.js.ts' does not exist. +-File '/node_modules/foo/bar/foobar.js.tsx' does not exist. +-File '/node_modules/foo/bar/foobar.js.d.ts' does not exist. +-Directory '/node_modules/foo/bar/foobar.js' does not exist, skipping all lookups in it. +-Trying substitution 'src/types', candidate module location: 'src/types'. +-Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration. +-Loading module 'foo/bar/foobar.js' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' does not exist. +-File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. +-File '/node_modules/foo/bar/foobar.ts' does not exist. +-File '/node_modules/foo/bar/foobar.tsx' does not exist. +-File '/node_modules/foo/bar/foobar.d.ts' does not exist. +-File '/node_modules/foo/bar/foobar.js.ts' does not exist. +-File '/node_modules/foo/bar/foobar.js.tsx' does not exist. +-File '/node_modules/foo/bar/foobar.js.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-File name '/node_modules/@types/foo/bar/foobar.js' has a '.js' extension - stripping it. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.js'. +-'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. +-Module name 'foo/bar/foobar.js', matched pattern '*'. +-Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. +-Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: JavaScript. +-File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. ++Module name 'foo/bar/foobar.js', matched pattern '*'. ++Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. ++Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. ++File '/node_modules/foo/bar/foobar.ts' does not exist. ++File '/node_modules/foo/bar/foobar.tsx' does not exist. ++File '/node_modules/foo/bar/foobar.d.ts' does not exist. + File '/node_modules/foo/bar/foobar.js' exists - use it as a name resolution result. +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/foo/package.json' does not exist. + Resolving real path for '/node_modules/foo/bar/foobar.js', result '/node_modules/foo/bar/foobar.js'. + ======== Module name 'foo/bar/foobar.js' was successfully resolved to '/node_modules/foo/bar/foobar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json new file mode 100644 index 0000000000..7be5ad8451 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json @@ -0,0 +1,17 @@ +======== Resolving module 'foo' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. +File '/foo/foo.ts' does not exist. +Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/foo/foo.ts' has a '.ts' extension - stripping it. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff new file mode 100644 index 0000000000..236cb54a48 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff @@ -0,0 +1,33 @@ +--- old.pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json ++++ new.pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. + File '/foo/foo.ts' does not exist. +-Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/foo/foo.ts' has a '.ts' extension - stripping it. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/node_modules' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'. +-'paths' option is specified, looking for a pattern to match module name 'foo'. +-Module name 'foo', matched pattern 'foo'. +-Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. +-File '/foo/foo.ts' does not exist. +-Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: JavaScript. +-File name '/foo/foo.ts' has a '.ts' extension - stripping it. +-Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json b/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json new file mode 100644 index 0000000000..3e08aef365 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json @@ -0,0 +1,20 @@ +======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'someModule'. +File '/.src/src/package.json' does not exist. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'someModule' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff new file mode 100644 index 0000000000..e90b9cca32 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff @@ -0,0 +1,42 @@ +--- old.pathsValidation4.trace.json ++++ new.pathsValidation4.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'someModule'. +-'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. +-Resolving module name 'someModule' relative to base url '/.src/src' - '/.src/src/someModule'. +-Loading module as file / folder, candidate module location '/.src/src/someModule', target file types: TypeScript, Declaration. +-File '/.src/src/someModule.ts' does not exist. +-File '/.src/src/someModule.tsx' does not exist. +-File '/.src/src/someModule.d.ts' does not exist. +-Directory '/.src/src/someModule' does not exist, skipping all lookups in it. +-Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File '/.src/src/package.json' does not exist. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. +-'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. +-'paths' option is specified, looking for a pattern to match module name 'someModule'. +-'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. +-Resolving module name 'someModule' relative to base url '/.src/src' - '/.src/src/someModule'. +-Loading module as file / folder, candidate module location '/.src/src/someModule', target file types: JavaScript. +-File '/.src/src/someModule.js' does not exist. +-File '/.src/src/someModule.jsx' does not exist. +-Directory '/.src/src/someModule' does not exist, skipping all lookups in it. +-Loading module 'someModule' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json b/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json new file mode 100644 index 0000000000..3e08aef365 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json @@ -0,0 +1,20 @@ +======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'someModule'. +File '/.src/src/package.json' does not exist. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. +Directory '/.src/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'someModule' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff new file mode 100644 index 0000000000..420f42b912 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff @@ -0,0 +1,27 @@ +--- old.pathsValidation5.trace.json ++++ new.pathsValidation5.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'someModule'. +-Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, Declaration. ++File '/.src/src/package.json' does not exist. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. +-'paths' option is specified, looking for a pattern to match module name 'someModule'. +-Loading module 'someModule' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. + Directory '/.src/node_modules' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json new file mode 100644 index 0000000000..e5848389ef --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json @@ -0,0 +1,39 @@ +======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. +======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react@0.0.1'. ======== +======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. +File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== +======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. +File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== +======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Found 'package.json' at '/.src/node_modules/@types/react/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. +File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'. +======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff new file mode 100644 index 0000000000..d6c1cbb926 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff @@ -0,0 +1,225 @@ +--- old.reactJsxReactResolvedNodeNext.trace.json ++++ new.reactJsxReactResolvedNodeNext.trace.json +@@= skipped -0, +0 lines =@@ +-File '/.src/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -6, +4 lines =@@ + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Found 'package.json' at '/.src/node_modules/@types/react/package.json'. +-'package.json' does not have a 'typesVersions' field. ++File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. + File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. +-======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react/jsx-runtime.d.ts@0.0.1'. ======== +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react@0.0.1'. ======== + ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -15, +13 lines =@@ + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. + File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +-======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +-======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== +-Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. +-======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== + ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ======== +-Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. +-======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. ++File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++'package.json' does not have a 'typings' field. ++'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. ++File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. ++======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== + ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/node_modules/@types/react/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. + File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'. +-======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/index.d.ts@0.0.1', primary: true. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." ++======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json new file mode 100644 index 0000000000..046195fc86 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json @@ -0,0 +1,40 @@ +======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './*' with target './jsx-runtime.js'. +File name '/.src/node_modules/@types/react/jsx-runtime.js' has a '.js' extension - stripping it. +File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. +======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react@0.0.1'. ======== +======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. +File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== +======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. +File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== +======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Found 'package.json' at '/.src/node_modules/@types/react/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. +File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'. +======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff new file mode 100644 index 0000000000..c65f079607 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff @@ -0,0 +1,226 @@ +--- old.reactJsxReactResolvedNodeNextEsm.trace.json ++++ new.reactJsxReactResolvedNodeNextEsm.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/.src/package.json' exists according to earlier cached lookups. + Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Found 'package.json' at '/.src/node_modules/@types/react/package.json'. ++File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. + Using 'exports' subpath './*' with target './jsx-runtime.js'. + File name '/.src/node_modules/@types/react/jsx-runtime.js' has a '.js' extension - stripping it. + File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. +-======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react/jsx-runtime.d.ts@0.0.1'. ======== +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react@0.0.1'. ======== + ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. + Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. + File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +-'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. + File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +-======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +-======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== +-Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. +-======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== + ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ======== +-Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. +-======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. ++File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++'package.json' does not have a 'typings' field. ++'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. ++File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. ++======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== + ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +-File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/node_modules/@types/react/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. + File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'. +-======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/index.d.ts@0.0.1', primary: true. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." ++======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json new file mode 100644 index 0000000000..79637e8ac9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json @@ -0,0 +1,34 @@ +======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. +Module name 'foo/bar/foobar.json', matched pattern '*'. +Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. +Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration. +File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. +File '/node_modules/foo/bar/foobar.json.ts' does not exist. +File '/node_modules/foo/bar/foobar.json.tsx' does not exist. +File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. +File '/node_modules/foo/bar/foobar.json.js' does not exist. +File '/node_modules/foo/bar/foobar.json.jsx' does not exist. +Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. +Trying substitution 'src/types', candidate module location: 'src/types'. +Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, JavaScript, Declaration. +File '/package.json' does not exist. +Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/foo/package.json' does not exist. +File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. +File '/node_modules/foo/bar/foobar.json.ts' does not exist. +File '/node_modules/foo/bar/foobar.json.tsx' does not exist. +File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +File '/node_modules/foo/bar/foobar.json.js' does not exist. +File '/node_modules/foo/bar/foobar.json.jsx' does not exist. +======== Module name 'foo/bar/foobar.json' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff new file mode 100644 index 0000000000..fcd382e2d1 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff @@ -0,0 +1,49 @@ +--- old.requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json ++++ new.requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. + 'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. + Module name 'foo/bar/foobar.json', matched pattern '*'. + Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. +-Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration. + File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. + File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. + File '/node_modules/foo/bar/foobar.json.ts' does not exist. + File '/node_modules/foo/bar/foobar.json.tsx' does not exist. + File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. ++File '/node_modules/foo/bar/foobar.json.js' does not exist. ++File '/node_modules/foo/bar/foobar.json.jsx' does not exist. + Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. + Trying substitution 'src/types', candidate module location: 'src/types'. +-Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration. +-Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, JavaScript, Declaration. ++File '/package.json' does not exist. ++Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/foo/package.json' does not exist. + File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +@@= skipped -22, +25 lines =@@ + File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. + File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. +-'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. +-Module name 'foo/bar/foobar.json', matched pattern '*'. +-Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. +-Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: JavaScript. +-File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +-File '/node_modules/foo/bar/foobar.json.js' does not exist. +-File '/node_modules/foo/bar/foobar.json.jsx' does not exist. +-Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. +-Trying substitution 'src/types', candidate module location: 'src/types'. +-Loading module as file / folder, candidate module location '/src/types', target file types: JavaScript. +-Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: JavaScript. + Searching all ancestor node_modules directories for fallback extensions: JavaScript. + File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. + File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json new file mode 100644 index 0000000000..1c02ac1083 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json @@ -0,0 +1,13 @@ +======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. +Module name 'foo/bar/foobar.json', matched pattern '*'. +Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. +Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. +File '/node_modules/foo/bar/foobar.json' exists - use it as a name resolution result. +File '/node_modules/foo/package.json' does not exist. +Resolving real path for '/node_modules/foo/bar/foobar.json', result '/node_modules/foo/bar/foobar.json'. +======== Module name 'foo/bar/foobar.json' was successfully resolved to '/node_modules/foo/bar/foobar.json'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff new file mode 100644 index 0000000000..627c5becd2 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff @@ -0,0 +1,47 @@ +--- old.requireOfJsonFile_PathMapping.trace.json ++++ new.requireOfJsonFile_PathMapping.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. +-'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. +-Module name 'foo/bar/foobar.json', matched pattern '*'. +-Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. +-Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, Declaration. +-File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +-File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. +-File '/node_modules/foo/bar/foobar.json.ts' does not exist. +-File '/node_modules/foo/bar/foobar.json.tsx' does not exist. +-File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. +-Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. +-Trying substitution 'src/types', candidate module location: 'src/types'. +-Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration. +-Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' does not exist. +-File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. +-File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. +-File '/node_modules/foo/bar/foobar.json.ts' does not exist. +-File '/node_modules/foo/bar/foobar.json.tsx' does not exist. +-File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. +-'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. +-Module name 'foo/bar/foobar.json', matched pattern '*'. +-Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. +-Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: JavaScript, JSON. +-File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. ++Module name 'foo/bar/foobar.json', matched pattern '*'. ++Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. ++Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. ++File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. + File '/node_modules/foo/bar/foobar.json' exists - use it as a name resolution result. +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/foo/package.json' does not exist. + Resolving real path for '/node_modules/foo/bar/foobar.json', result '/node_modules/foo/bar/foobar.json'. + ======== Module name 'foo/bar/foobar.json' was successfully resolved to '/node_modules/foo/bar/foobar.json'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json new file mode 100644 index 0000000000..068e6916b8 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json @@ -0,0 +1,19 @@ +======== Resolving type reference directive '@scoped', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/@scoped/package.json' does not exist. +File '/node_modules/@types/@scoped/index.d.ts' does not exist. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/@scoped/package.json' does not exist. +File '/node_modules/@scoped.d.ts' does not exist. +File '/node_modules/@scoped/index.d.ts' does not exist. +File '/node_modules/@types/@scoped/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/@scoped.d.ts' does not exist. +File '/node_modules/@types/@scoped/index.d.ts' does not exist. +======== Type reference directive '@scoped' was not resolved. ======== +======== Resolving type reference directive 'mangled__attypescache', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/mangled__attypescache/package.json' does not exist. +File '/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/mangled__attypescache/index.d.ts', result '/node_modules/@types/mangled__attypescache/index.d.ts'. +======== Type reference directive 'mangled__attypescache' was successfully resolved to '/node_modules/@types/mangled__attypescache/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff new file mode 100644 index 0000000000..bf97d33f47 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff @@ -0,0 +1,70 @@ +--- old.typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json ++++ new.typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive '@scoped/typescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== +-Resolving with primary search path '/types, /node_modules, /node_modules/@types'. +-File '/types/@scoped/typescache.d.ts' does not exist. +-File '/types/@scoped/typescache/package.json' does not exist. +-File '/types/@scoped/typescache/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/@scoped/typescache/index.d.ts', result '/types/@scoped/typescache/index.d.ts'. +-======== Type reference directive '@scoped/typescache' was successfully resolved to '/types/@scoped/typescache/index.d.ts', primary: true. ======== +-======== Resolving type reference directive '@scoped/nodemodulescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== +-Resolving with primary search path '/types, /node_modules, /node_modules/@types'. +-File '/types/@scoped/nodemodulescache.d.ts' does not exist. +-File '/node_modules/@scoped/nodemodulescache.d.ts' does not exist. +-File '/node_modules/@scoped/nodemodulescache/package.json' does not exist. +-File '/node_modules/@scoped/nodemodulescache/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/@scoped/nodemodulescache/index.d.ts', result '/node_modules/@scoped/nodemodulescache/index.d.ts'. +-======== Type reference directive '@scoped/nodemodulescache' was successfully resolved to '/node_modules/@scoped/nodemodulescache/index.d.ts', primary: true. ======== +-======== Resolving type reference directive '@scoped/attypescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== +-Resolving with primary search path '/types, /node_modules, /node_modules/@types'. +-File '/types/@scoped/attypescache.d.ts' does not exist. +-File '/node_modules/@scoped/attypescache.d.ts' does not exist. +-Scoped package detected, looking in 'scoped__attypescache' +-File '/node_modules/@types/scoped__attypescache.d.ts' does not exist. +-Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. +-======== Type reference directive '@scoped/attypescache' was not resolved. ======== +-======== Resolving type reference directive '@mangled/typescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== +-Resolving with primary search path '/types, /node_modules, /node_modules/@types'. +-Scoped package detected, looking in 'mangled__typescache' +-File '/node_modules/@types/mangled__typescache.d.ts' does not exist. +-Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. +-======== Type reference directive '@mangled/typescache' was not resolved. ======== +-======== Resolving type reference directive '@mangled/nodemodulescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== +-Resolving with primary search path '/types, /node_modules, /node_modules/@types'. +-Scoped package detected, looking in 'mangled__nodemodulescache' +-File '/node_modules/@types/mangled__nodemodulescache.d.ts' does not exist. +-Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. +-======== Type reference directive '@mangled/nodemodulescache' was not resolved. ======== +-======== Resolving type reference directive '@mangled/attypescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== +-Resolving with primary search path '/types, /node_modules, /node_modules/@types'. +-Scoped package detected, looking in 'mangled__attypescache' +-File '/node_modules/@types/mangled__attypescache.d.ts' does not exist. ++======== Resolving type reference directive '@scoped', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++File '/node_modules/@types/@scoped/package.json' does not exist. ++File '/node_modules/@types/@scoped/index.d.ts' does not exist. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++File '/node_modules/@scoped/package.json' does not exist. ++File '/node_modules/@scoped.d.ts' does not exist. ++File '/node_modules/@scoped/index.d.ts' does not exist. ++File '/node_modules/@types/@scoped/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@types/@scoped.d.ts' does not exist. ++File '/node_modules/@types/@scoped/index.d.ts' does not exist. ++======== Type reference directive '@scoped' was not resolved. ======== ++======== Resolving type reference directive 'mangled__attypescache', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. + File '/node_modules/@types/mangled__attypescache/package.json' does not exist. + File '/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/mangled__attypescache/index.d.ts', result '/node_modules/@types/mangled__attypescache/index.d.ts'. +-======== Type reference directive '@mangled/attypescache' was successfully resolved to '/node_modules/@types/mangled__attypescache/index.d.ts', primary: true. ======== +-File '/node_modules/@scoped/nodemodulescache/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@scoped/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-File '/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. ++======== Type reference directive 'mangled__attypescache' was successfully resolved to '/node_modules/@types/mangled__attypescache/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff new file mode 100644 index 0000000000..d7007ae9dd --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff @@ -0,0 +1,9 @@ +--- old.typeReferenceDirectiveWithFailedFromTypeRoot.trace.json ++++ new.typeReferenceDirectiveWithFailedFromTypeRoot.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ======== +-Resolving with primary search path '/typings'. +-File '/typings/phaser.d.ts' does not exist. +-Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. +-======== Type reference directive 'phaser' was not resolved. ======== ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff new file mode 100644 index 0000000000..121b1cfb96 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff @@ -0,0 +1,14 @@ +--- old.typeReferenceDirectiveWithTypeAsFile.trace.json ++++ new.typeReferenceDirectiveWithTypeAsFile.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/node_modules/phaser/types'. ======== +-Resolving with primary search path '/node_modules/phaser/types'. +-File '/node_modules/phaser/types/phaser.d.ts' exists - use it as a name resolution result. +-File '/node_modules/phaser/package.json' does not exist. +-Resolving real path for '/node_modules/phaser/types/phaser.d.ts', result '/node_modules/phaser/types/phaser.d.ts'. +-======== Type reference directive 'phaser' was successfully resolved to '/node_modules/phaser/types/phaser.d.ts', primary: true. ======== +-File '/node_modules/phaser/types/package.json' does not exist. +-File '/node_modules/phaser/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json new file mode 100644 index 0000000000..1e674dc278 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json @@ -0,0 +1,8 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff new file mode 100644 index 0000000000..2d55e4c949 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff @@ -0,0 +1,21 @@ +--- old.typeReferenceDirectives1.trace.json ++++ new.typeReferenceDirectives1.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json new file mode 100644 index 0000000000..7f17b6b7cb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json @@ -0,0 +1,16 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== +======== Resolving module './ref' from '/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/ref.ts' does not exist. +File '/ref.tsx' does not exist. +File '/ref.d.ts' exists - use it as a name resolution result. +======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff new file mode 100644 index 0000000000..25640059b6 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff @@ -0,0 +1,31 @@ +--- old.typeReferenceDirectives10.trace.json ++++ new.typeReferenceDirectives10.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== + ======== Resolving module './ref' from '/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/ref.ts' does not exist. + File '/ref.tsx' does not exist. + File '/ref.d.ts' exists - use it as a name resolution result. + ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json new file mode 100644 index 0000000000..6031ac457f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './mod1' from '/mod2.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/mod1.ts' exists - use it as a name resolution result. +======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff new file mode 100644 index 0000000000..e3bcd71474 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff @@ -0,0 +1,18 @@ +--- old.typeReferenceDirectives11.trace.json ++++ new.typeReferenceDirectives11.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './mod1' from '/mod2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/mod1.ts' exists - use it as a name resolution result. + ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json new file mode 100644 index 0000000000..9c52ca7fa3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json @@ -0,0 +1,32 @@ +======== Resolving module './main' from '/mod2.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/main.ts' exists - use it as a name resolution result. +======== Module name './main' was successfully resolved to '/main.ts'. ======== +======== Resolving module './mod1' from '/mod2.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/mod1.ts' exists - use it as a name resolution result. +======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== +======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== +======== Resolving module './main' from '/mod1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/main.ts' exists - use it as a name resolution result. +======== Module name './main' was successfully resolved to '/main.ts'. ======== +======== Resolving module './main' from '/mod1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/main.ts' exists - use it as a name resolution result. +======== Module name './main' was successfully resolved to '/main.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff new file mode 100644 index 0000000000..889eb9c539 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff @@ -0,0 +1,52 @@ +--- old.typeReferenceDirectives12.trace.json ++++ new.typeReferenceDirectives12.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './main' from '/mod2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/main.ts' exists - use it as a name resolution result. + ======== Module name './main' was successfully resolved to '/main.ts'. ======== + ======== Resolving module './mod1' from '/mod2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/mod1.ts' exists - use it as a name resolution result. + ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving module './main' from '/mod1.ts'. ======== +-Resolution for module './main' was found in cache from location '/'. +-======== Module name './main' was successfully resolved to '/main.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== ++======== Resolving module './main' from '/mod1.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/main.ts' exists - use it as a name resolution result. ++======== Module name './main' was successfully resolved to '/main.ts'. ======== ++======== Resolving module './main' from '/mod1.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/main.ts' exists - use it as a name resolution result. ++======== Module name './main' was successfully resolved to '/main.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json new file mode 100644 index 0000000000..7f17b6b7cb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json @@ -0,0 +1,16 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== +======== Resolving module './ref' from '/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/ref.ts' does not exist. +File '/ref.tsx' does not exist. +File '/ref.d.ts' exists - use it as a name resolution result. +======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff new file mode 100644 index 0000000000..50efe21bf4 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff @@ -0,0 +1,31 @@ +--- old.typeReferenceDirectives13.trace.json ++++ new.typeReferenceDirectives13.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== + ======== Resolving module './ref' from '/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/ref.ts' does not exist. + File '/ref.tsx' does not exist. + File '/ref.d.ts' exists - use it as a name resolution result. + ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff new file mode 100644 index 0000000000..0a2d0c38b9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff @@ -0,0 +1,11 @@ +--- old.typeReferenceDirectives2.trace.json ++++ new.typeReferenceDirectives2.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json new file mode 100644 index 0000000000..1e674dc278 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json @@ -0,0 +1,8 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff new file mode 100644 index 0000000000..5039b375c5 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff @@ -0,0 +1,21 @@ +--- old.typeReferenceDirectives3.trace.json ++++ new.typeReferenceDirectives3.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json new file mode 100644 index 0000000000..1e674dc278 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json @@ -0,0 +1,8 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff new file mode 100644 index 0000000000..85de052f99 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff @@ -0,0 +1,21 @@ +--- old.typeReferenceDirectives4.trace.json ++++ new.typeReferenceDirectives4.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json new file mode 100644 index 0000000000..7f17b6b7cb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json @@ -0,0 +1,16 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== +======== Resolving module './ref' from '/app.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/ref.ts' does not exist. +File '/ref.tsx' does not exist. +File '/ref.d.ts' exists - use it as a name resolution result. +======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff new file mode 100644 index 0000000000..54ed50f5d9 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff @@ -0,0 +1,31 @@ +--- old.typeReferenceDirectives5.trace.json ++++ new.typeReferenceDirectives5.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== + ======== Resolving module './ref' from '/app.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/ref.ts' does not exist. + File '/ref.tsx' does not exist. + File '/ref.d.ts' exists - use it as a name resolution result. + ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json new file mode 100644 index 0000000000..1e674dc278 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json @@ -0,0 +1,8 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff new file mode 100644 index 0000000000..b54e8ca2ef --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff @@ -0,0 +1,21 @@ +--- old.typeReferenceDirectives6.trace.json ++++ new.typeReferenceDirectives6.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json new file mode 100644 index 0000000000..1e674dc278 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json @@ -0,0 +1,8 @@ +======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff new file mode 100644 index 0000000000..6736b91f11 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff @@ -0,0 +1,21 @@ +--- old.typeReferenceDirectives7.trace.json ++++ new.typeReferenceDirectives7.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json new file mode 100644 index 0000000000..6031ac457f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json @@ -0,0 +1,6 @@ +======== Resolving module './mod1' from '/mod2.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/mod1.ts' exists - use it as a name resolution result. +======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff new file mode 100644 index 0000000000..b1379d389b --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff @@ -0,0 +1,18 @@ +--- old.typeReferenceDirectives8.trace.json ++++ new.typeReferenceDirectives8.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './mod1' from '/mod2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/mod1.ts' exists - use it as a name resolution result. + ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json new file mode 100644 index 0000000000..9c52ca7fa3 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json @@ -0,0 +1,32 @@ +======== Resolving module './main' from '/mod2.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/main.ts' exists - use it as a name resolution result. +======== Module name './main' was successfully resolved to '/main.ts'. ======== +======== Resolving module './mod1' from '/mod2.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/mod1.ts' exists - use it as a name resolution result. +======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== +======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'lib' was not resolved. ======== +======== Resolving module './main' from '/mod1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/main.ts' exists - use it as a name resolution result. +======== Module name './main' was successfully resolved to '/main.ts'. ======== +======== Resolving module './main' from '/mod1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/main.ts' exists - use it as a name resolution result. +======== Module name './main' was successfully resolved to '/main.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff new file mode 100644 index 0000000000..df3c08dce0 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff @@ -0,0 +1,52 @@ +--- old.typeReferenceDirectives9.trace.json ++++ new.typeReferenceDirectives9.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './main' from '/mod2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/main.ts' exists - use it as a name resolution result. + ======== Module name './main' was successfully resolved to '/main.ts'. ======== + ======== Resolving module './mod1' from '/mod2.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/mod1.ts' exists - use it as a name resolution result. + ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/lib.d.ts' does not exist. +-File '/types/lib/package.json' does not exist. +-File '/types/lib/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== +-======== Resolving module './main' from '/mod1.ts'. ======== +-Resolution for module './main' was found in cache from location '/'. +-======== Module name './main' was successfully resolved to '/main.ts'. ======== +-======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'lib' was found in cache from location '/'. +-======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'lib' was not resolved. ======== ++======== Resolving module './main' from '/mod1.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/main.ts' exists - use it as a name resolution result. ++======== Module name './main' was successfully resolved to '/main.ts'. ======== ++======== Resolving module './main' from '/mod1.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/main.ts' exists - use it as a name resolution result. ++======== Module name './main' was successfully resolved to '/main.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json new file mode 100644 index 0000000000..2651c0d11f --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json @@ -0,0 +1,97 @@ +======== Resolving module 'xyz' from '/foo/bar/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/foo/bar/package.json' does not exist. +File '/foo/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. +Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. +File '/foo/node_modules/xyz.ts' does not exist. +File '/foo/node_modules/xyz.tsx' does not exist. +File '/foo/node_modules/xyz.d.ts' does not exist. +File '/foo/node_modules/@types/xyz.d.ts' does not exist. +File '/node_modules/xyz.ts' does not exist. +File '/node_modules/xyz.tsx' does not exist. +File '/node_modules/xyz.d.ts' does not exist. +File '/node_modules/@types/xyz.d.ts' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. +File '/foo/node_modules/xyz.js' does not exist. +File '/foo/node_modules/xyz.jsx' does not exist. +File '/node_modules/xyz.js' does not exist. +File '/node_modules/xyz.jsx' does not exist. +======== Module name 'xyz' was not resolved. ======== +======== Resolving module 'pdq' from '/foo/bar/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/foo/bar/package.json' does not exist according to earlier cached lookups. +File '/foo/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. +Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. +File '/foo/node_modules/pdq.ts' does not exist. +File '/foo/node_modules/pdq.tsx' does not exist. +File '/foo/node_modules/pdq.d.ts' does not exist. +File '/foo/node_modules/@types/pdq.d.ts' does not exist. +File '/node_modules/pdq.ts' does not exist. +File '/node_modules/pdq.tsx' does not exist. +File '/node_modules/pdq.d.ts' does not exist. +File '/node_modules/@types/pdq.d.ts' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. +File '/foo/node_modules/pdq.js' does not exist. +File '/foo/node_modules/pdq.jsx' does not exist. +File '/node_modules/pdq.js' does not exist. +File '/node_modules/pdq.jsx' does not exist. +======== Module name 'pdq' was not resolved. ======== +======== Resolving module 'abc' from '/foo/bar/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/foo/bar/package.json' does not exist according to earlier cached lookups. +File '/foo/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. +Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. +File '/foo/node_modules/abc.ts' does not exist. +File '/foo/node_modules/abc.tsx' does not exist. +File '/foo/node_modules/abc.d.ts' does not exist. +File '/foo/node_modules/@types/abc.d.ts' does not exist. +File '/node_modules/abc.ts' does not exist. +File '/node_modules/abc.tsx' does not exist. +File '/node_modules/abc.d.ts' does not exist. +File '/node_modules/@types/abc.d.ts' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. +File '/foo/node_modules/abc.js' does not exist. +File '/foo/node_modules/abc.jsx' does not exist. +File '/node_modules/abc.js' does not exist. +File '/node_modules/abc.jsx' does not exist. +======== Module name 'abc' was not resolved. ======== +======== Resolving type reference directive 'grumpy', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'. +Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. +File '/foo/node_modules/@types/grumpy/package.json' does not exist. +File '/foo/node_modules/@types/grumpy/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/foo/node_modules/@types/grumpy/index.d.ts', result '/foo/node_modules/@types/grumpy/index.d.ts'. +======== Type reference directive 'grumpy' was successfully resolved to '/foo/node_modules/@types/grumpy/index.d.ts', primary: true. ======== +======== Resolving type reference directive 'sneezy', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'. +Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. +File '/foo/node_modules/@types/sneezy/package.json' does not exist. +File '/foo/node_modules/@types/sneezy/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/foo/node_modules/@types/sneezy/index.d.ts', result '/foo/node_modules/@types/sneezy/index.d.ts'. +======== Type reference directive 'sneezy' was successfully resolved to '/foo/node_modules/@types/sneezy/index.d.ts', primary: true. ======== +======== Resolving type reference directive 'dopey', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'. +Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/foo/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/dopey/package.json' does not exist. +File '/node_modules/@types/dopey/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'. +======== Type reference directive 'dopey' was successfully resolved to '/node_modules/@types/dopey/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff new file mode 100644 index 0000000000..d02e409485 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff @@ -0,0 +1,107 @@ +--- old.typeRootsFromMultipleNodeModulesDirectories.trace.json ++++ new.typeRootsFromMultipleNodeModulesDirectories.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'xyz' from '/foo/bar/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/foo/bar/package.json' does not exist. ++File '/foo/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. ++Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. + File '/foo/node_modules/xyz.ts' does not exist. + File '/foo/node_modules/xyz.tsx' does not exist. + File '/foo/node_modules/xyz.d.ts' does not exist. +@@= skipped -10, +15 lines =@@ + File '/node_modules/xyz.tsx' does not exist. + File '/node_modules/xyz.d.ts' does not exist. + File '/node_modules/@types/xyz.d.ts' does not exist. +-Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. + File '/foo/node_modules/xyz.js' does not exist. + File '/foo/node_modules/xyz.jsx' does not exist. +@@= skipped -9, +8 lines =@@ + File '/node_modules/xyz.jsx' does not exist. + ======== Module name 'xyz' was not resolved. ======== + ======== Resolving module 'pdq' from '/foo/bar/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/foo/bar/package.json' does not exist according to earlier cached lookups. ++File '/foo/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. ++Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. + File '/foo/node_modules/pdq.ts' does not exist. + File '/foo/node_modules/pdq.tsx' does not exist. + File '/foo/node_modules/pdq.d.ts' does not exist. +@@= skipped -12, +17 lines =@@ + File '/node_modules/pdq.tsx' does not exist. + File '/node_modules/pdq.d.ts' does not exist. + File '/node_modules/@types/pdq.d.ts' does not exist. +-Loading module 'pdq' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. + File '/foo/node_modules/pdq.js' does not exist. + File '/foo/node_modules/pdq.jsx' does not exist. +@@= skipped -9, +8 lines =@@ + File '/node_modules/pdq.jsx' does not exist. + ======== Module name 'pdq' was not resolved. ======== + ======== Resolving module 'abc' from '/foo/bar/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/foo/bar/package.json' does not exist according to earlier cached lookups. ++File '/foo/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. ++Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. + File '/foo/node_modules/abc.ts' does not exist. + File '/foo/node_modules/abc.tsx' does not exist. + File '/foo/node_modules/abc.d.ts' does not exist. +@@= skipped -12, +17 lines =@@ + File '/node_modules/abc.tsx' does not exist. + File '/node_modules/abc.d.ts' does not exist. + File '/node_modules/@types/abc.d.ts' does not exist. +-Loading module 'abc' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. + File '/foo/node_modules/abc.js' does not exist. + File '/foo/node_modules/abc.jsx' does not exist. +@@= skipped -25, +24 lines =@@ + ======== Resolving type reference directive 'dopey', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'. + Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/foo/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/@types/dopey/package.json' does not exist. + File '/node_modules/@types/dopey/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'. + ======== Type reference directive 'dopey' was successfully resolved to '/node_modules/@types/dopey/index.d.ts', primary: true. ======== +-File '/foo/node_modules/@types/grumpy/package.json' does not exist according to earlier cached lookups. +-File '/foo/node_modules/@types/package.json' does not exist. +-File '/foo/node_modules/package.json' does not exist. +-File '/foo/package.json' does not exist. +-File '/package.json' does not exist. +-File '/foo/node_modules/@types/sneezy/package.json' does not exist according to earlier cached lookups. +-File '/foo/node_modules/@types/package.json' does not exist according to earlier cached lookups. +-File '/foo/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/foo/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/dopey/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json new file mode 100644 index 0000000000..8fd6c9f25a --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json @@ -0,0 +1,25 @@ +======== Resolving module 'xyz' from '/src/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/src/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/xyz.ts' does not exist. +File '/node_modules/xyz.tsx' does not exist. +File '/node_modules/xyz.d.ts' does not exist. +File '/node_modules/@types/xyz.d.ts' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +File '/node_modules/xyz.js' does not exist. +File '/node_modules/xyz.jsx' does not exist. +======== Module name 'xyz' was not resolved. ======== +======== Resolving type reference directive 'foo', containing file '/src/__inferred type names__.ts', root directory '/src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/src/node_modules/@types, /node_modules/@types'. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/foo/package.json' does not exist. +File '/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/foo/index.d.ts', result '/node_modules/@types/foo/index.d.ts'. +======== Type reference directive 'foo' was successfully resolved to '/node_modules/@types/foo/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff new file mode 100644 index 0000000000..c744df97a7 --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff @@ -0,0 +1,32 @@ +--- old.typeRootsFromNodeModulesInParentDirectory.trace.json ++++ new.typeRootsFromNodeModulesInParentDirectory.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'xyz' from '/src/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/src/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/xyz.ts' does not exist. + File '/node_modules/xyz.tsx' does not exist. + File '/node_modules/xyz.d.ts' does not exist. + File '/node_modules/@types/xyz.d.ts' does not exist. +-Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + Directory '/src/node_modules' does not exist, skipping all lookups in it. + File '/node_modules/xyz.js' does not exist. + File '/node_modules/xyz.jsx' does not exist. +@@= skipped -19, +22 lines =@@ + File '/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/foo/index.d.ts', result '/node_modules/@types/foo/index.d.ts'. + ======== Type reference directive 'foo' was successfully resolved to '/node_modules/@types/foo/index.d.ts', primary: true. ======== +-File '/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json new file mode 100644 index 0000000000..da55e998b5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json @@ -0,0 +1,20 @@ +======== Resolving module 'conditions' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/conditions/package.json'. +Entering conditional exports. +Saw non-matching condition 'node'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './index.web.js'. +File name '/node_modules/conditions/index.web.js' has a '.js' extension - stripping it. +File '/node_modules/conditions/index.web.ts' does not exist. +File '/node_modules/conditions/index.web.tsx' does not exist. +File '/node_modules/conditions/index.web.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'. +======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff new file mode 100644 index 0000000000..1229bce225 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff @@ -0,0 +1,22 @@ +--- old.bundlerConditionsExcludesNode(module=esnext).trace.json ++++ new.bundlerConditionsExcludesNode(module=esnext).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/conditions/package.json'. +-File '/node_modules/conditions/package.json' exists according to earlier cached lookups. + ======== Resolving module 'conditions' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/conditions/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/conditions/package.json'. + Entering conditional exports. + Saw non-matching condition 'node'. + Matched 'exports' condition 'default'. +@@= skipped -18, +16 lines =@@ + Resolved under condition 'default'. + Exiting conditional exports. + Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'. +-======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/index.web.d.ts@1.0.0'. ======== ++======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json new file mode 100644 index 0000000000..da55e998b5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json @@ -0,0 +1,20 @@ +======== Resolving module 'conditions' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/conditions/package.json'. +Entering conditional exports. +Saw non-matching condition 'node'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './index.web.js'. +File name '/node_modules/conditions/index.web.js' has a '.js' extension - stripping it. +File '/node_modules/conditions/index.web.ts' does not exist. +File '/node_modules/conditions/index.web.tsx' does not exist. +File '/node_modules/conditions/index.web.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'. +======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff new file mode 100644 index 0000000000..260ed8f80d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff @@ -0,0 +1,22 @@ +--- old.bundlerConditionsExcludesNode(module=preserve).trace.json ++++ new.bundlerConditionsExcludesNode(module=preserve).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/conditions/package.json'. +-File '/node_modules/conditions/package.json' exists according to earlier cached lookups. + ======== Resolving module 'conditions' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/conditions/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/conditions/package.json'. + Entering conditional exports. + Saw non-matching condition 'node'. + Matched 'exports' condition 'default'. +@@= skipped -18, +16 lines =@@ + Resolved under condition 'default'. + Exiting conditional exports. + Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'. +-======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/index.web.d.ts@1.0.0'. ======== ++======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json new file mode 100644 index 0000000000..b295dae88c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json @@ -0,0 +1,19 @@ +======== Resolving module '../lib' from '/app/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/lib.ts' does not exist. +File '/lib.tsx' does not exist. +File '/lib.d.ts' does not exist. +File '/lib.js' does not exist. +File '/lib.jsx' does not exist. +Found 'package.json' at '/lib/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field './cjs/index.js' that references '/lib/cjs/index.js'. +File name '/lib/cjs/index.js' has a '.js' extension - stripping it. +File '/lib/cjs/index.ts' does not exist. +File '/lib/cjs/index.tsx' does not exist. +File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. +======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff new file mode 100644 index 0000000000..0ae897eb2f --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff @@ -0,0 +1,10 @@ +--- old.bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json ++++ new.bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '../lib' from '/app/test.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. +-Resolving in CJS mode with conditions 'import', 'types'. ++Resolving in CJS mode with conditions 'require', 'types'. + Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/lib.ts' does not exist. + File '/lib.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json new file mode 100644 index 0000000000..6fb3a0bc62 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json @@ -0,0 +1,19 @@ +======== Resolving module '../lib' from '/app/test.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration. +File '/lib.ts' does not exist. +File '/lib.tsx' does not exist. +File '/lib.d.ts' does not exist. +File '/lib.js' does not exist. +File '/lib.jsx' does not exist. +Found 'package.json' at '/lib/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field './cjs/index.js' that references '/lib/cjs/index.js'. +File name '/lib/cjs/index.js' has a '.js' extension - stripping it. +File '/lib/cjs/index.ts' does not exist. +File '/lib/cjs/index.tsx' does not exist. +File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. +======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff new file mode 100644 index 0000000000..bad12dfee1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff @@ -0,0 +1,140 @@ +--- old.bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json ++++ new.bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-File '/app/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module '../lib' from '/app/test.ts'. ======== + Explicitly specified module resolution kind: 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -18, +16 lines =@@ + File '/lib/cjs/index.tsx' does not exist. + File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. + ======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== +-File '/lib/cjs/package.json' does not exist. +-File '/lib/package.json' exists according to earlier cached lookups. +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json new file mode 100644 index 0000000000..b295dae88c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json @@ -0,0 +1,19 @@ +======== Resolving module '../lib' from '/app/test.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/lib.ts' does not exist. +File '/lib.tsx' does not exist. +File '/lib.d.ts' does not exist. +File '/lib.js' does not exist. +File '/lib.jsx' does not exist. +Found 'package.json' at '/lib/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field './cjs/index.js' that references '/lib/cjs/index.js'. +File name '/lib/cjs/index.js' has a '.js' extension - stripping it. +File '/lib/cjs/index.ts' does not exist. +File '/lib/cjs/index.tsx' does not exist. +File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. +======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff new file mode 100644 index 0000000000..350907f1d4 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff @@ -0,0 +1,10 @@ +--- old.bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json ++++ new.bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '../lib' from '/app/test.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. +-Resolving in CJS mode with conditions 'import', 'types'. ++Resolving in CJS mode with conditions 'require', 'types'. + Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/lib.ts' does not exist. + File '/lib.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json new file mode 100644 index 0000000000..6fb3a0bc62 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json @@ -0,0 +1,19 @@ +======== Resolving module '../lib' from '/app/test.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration. +File '/lib.ts' does not exist. +File '/lib.tsx' does not exist. +File '/lib.d.ts' does not exist. +File '/lib.js' does not exist. +File '/lib.jsx' does not exist. +Found 'package.json' at '/lib/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field './cjs/index.js' that references '/lib/cjs/index.js'. +File name '/lib/cjs/index.js' has a '.js' extension - stripping it. +File '/lib/cjs/index.ts' does not exist. +File '/lib/cjs/index.tsx' does not exist. +File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. +======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff new file mode 100644 index 0000000000..76683c2c3f --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff @@ -0,0 +1,182 @@ +--- old.bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json ++++ new.bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-File '/app/package.json' does not exist. +-File '/package.json' does not exist. + ======== Resolving module '../lib' from '/app/test.ts'. ======== + Explicitly specified module resolution kind: 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -18, +16 lines =@@ + File '/lib/cjs/index.tsx' does not exist. + File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. + ======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== +-File '/lib/cjs/package.json' does not exist. +-File '/lib/package.json' exists according to earlier cached lookups. +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json new file mode 100644 index 0000000000..226fcdbbe3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json @@ -0,0 +1,128 @@ +======== Resolving module './a' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.js' has a '.js' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.js' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './b' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.js' has a '.js' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.js' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.ts' has a '.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './c.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.ts' has a '.ts' extension - stripping it. +File '/project/c.ts' exists - use it as a name resolution result. +======== Module name './c.ts' was successfully resolved to '/project/c.ts'. ======== +======== Resolving module './c.tsx' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.tsx' has a '.tsx' extension - stripping it. +File '/project/c.tsx' exists - use it as a name resolution result. +======== Module name './c.tsx' was successfully resolved to '/project/c.tsx'. ======== +======== Resolving module './d' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d.ts' does not exist. +File '/project/d.tsx' does not exist. +File '/project/d.d.ts' does not exist. +File '/project/d.js' does not exist. +File '/project/d.jsx' does not exist. +File '/project/d/package.json' does not exist. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/d/index.ts' has a '.ts' extension - stripping it. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index.ts' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './e' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/e.ts' exists - use it as a name resolution result. +======== Module name './e' was successfully resolved to '/project/e.ts'. ======== +======== Resolving module './e.txt' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/e.txt' has a '.txt' extension - stripping it. +File '/project/e.d.txt.ts' does not exist. +File '/project/e.txt.ts' exists - use it as a name resolution result. +======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== +======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff new file mode 100644 index 0000000000..c683b5f244 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff @@ -0,0 +1,37 @@ +--- old.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json ++++ new.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json +@@= skipped -44, +44 lines =@@ + File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. + File '/project/b.ts' exists - use it as a name resolution result. + ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== ++======== Resolving module './b.d.ts' from '/project/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/b.ts' exists - use it as a name resolution result. ++======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== + ======== Resolving module './c.ts' from '/project/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -54, +61 lines =@@ + File '/project/e.txt.ts' exists - use it as a name resolution result. + ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== + ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +-Resolution for module './a.ts' was found in cache from location '/project'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.ts' has a '.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. + ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== ++======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. ++======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== + ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json new file mode 100644 index 0000000000..226fcdbbe3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json @@ -0,0 +1,128 @@ +======== Resolving module './a' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.js' has a '.js' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.js' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './b' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.js' has a '.js' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.js' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.ts' has a '.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './c.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.ts' has a '.ts' extension - stripping it. +File '/project/c.ts' exists - use it as a name resolution result. +======== Module name './c.ts' was successfully resolved to '/project/c.ts'. ======== +======== Resolving module './c.tsx' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.tsx' has a '.tsx' extension - stripping it. +File '/project/c.tsx' exists - use it as a name resolution result. +======== Module name './c.tsx' was successfully resolved to '/project/c.tsx'. ======== +======== Resolving module './d' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d.ts' does not exist. +File '/project/d.tsx' does not exist. +File '/project/d.d.ts' does not exist. +File '/project/d.js' does not exist. +File '/project/d.jsx' does not exist. +File '/project/d/package.json' does not exist. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/d/index.ts' has a '.ts' extension - stripping it. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index.ts' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './e' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/e.ts' exists - use it as a name resolution result. +======== Module name './e' was successfully resolved to '/project/e.ts'. ======== +======== Resolving module './e.txt' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/e.txt' has a '.txt' extension - stripping it. +File '/project/e.d.txt.ts' does not exist. +File '/project/e.txt.ts' exists - use it as a name resolution result. +======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== +======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff new file mode 100644 index 0000000000..8a9b300f84 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff @@ -0,0 +1,37 @@ +--- old.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json ++++ new.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json +@@= skipped -44, +44 lines =@@ + File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. + File '/project/b.ts' exists - use it as a name resolution result. + ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== ++======== Resolving module './b.d.ts' from '/project/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/b.ts' exists - use it as a name resolution result. ++======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== + ======== Resolving module './c.ts' from '/project/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -54, +61 lines =@@ + File '/project/e.txt.ts' exists - use it as a name resolution result. + ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== + ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +-Resolution for module './a.ts' was found in cache from location '/project'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.ts' has a '.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. + ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== ++======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. ++======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== + ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json new file mode 100644 index 0000000000..226fcdbbe3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json @@ -0,0 +1,128 @@ +======== Resolving module './a' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.js' has a '.js' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.js' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './b' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.js' has a '.js' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.js' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.ts' has a '.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './c.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.ts' has a '.ts' extension - stripping it. +File '/project/c.ts' exists - use it as a name resolution result. +======== Module name './c.ts' was successfully resolved to '/project/c.ts'. ======== +======== Resolving module './c.tsx' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.tsx' has a '.tsx' extension - stripping it. +File '/project/c.tsx' exists - use it as a name resolution result. +======== Module name './c.tsx' was successfully resolved to '/project/c.tsx'. ======== +======== Resolving module './d' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d.ts' does not exist. +File '/project/d.tsx' does not exist. +File '/project/d.d.ts' does not exist. +File '/project/d.js' does not exist. +File '/project/d.jsx' does not exist. +File '/project/d/package.json' does not exist. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/d/index.ts' has a '.ts' extension - stripping it. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index.ts' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './e' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/e.ts' exists - use it as a name resolution result. +======== Module name './e' was successfully resolved to '/project/e.ts'. ======== +======== Resolving module './e.txt' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/e.txt' has a '.txt' extension - stripping it. +File '/project/e.d.txt.ts' does not exist. +File '/project/e.txt.ts' exists - use it as a name resolution result. +======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== +======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff new file mode 100644 index 0000000000..84201e4a2b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff @@ -0,0 +1,37 @@ +--- old.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json ++++ new.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json +@@= skipped -44, +44 lines =@@ + File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. + File '/project/b.ts' exists - use it as a name resolution result. + ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== ++======== Resolving module './b.d.ts' from '/project/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/b.ts' exists - use it as a name resolution result. ++======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== + ======== Resolving module './c.ts' from '/project/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -54, +61 lines =@@ + File '/project/e.txt.ts' exists - use it as a name resolution result. + ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== + ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +-Resolution for module './a.ts' was found in cache from location '/project'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.ts' has a '.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. + ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== ++======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. ++======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== + ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json new file mode 100644 index 0000000000..226fcdbbe3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json @@ -0,0 +1,128 @@ +======== Resolving module './a' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.js' has a '.js' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.js' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './b' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.js' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.js' has a '.js' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.js' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.ts' has a '.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './b.d.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. +File '/project/b.ts' exists - use it as a name resolution result. +======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== +======== Resolving module './c.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.ts' has a '.ts' extension - stripping it. +File '/project/c.ts' exists - use it as a name resolution result. +======== Module name './c.ts' was successfully resolved to '/project/c.ts'. ======== +======== Resolving module './c.tsx' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/c.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/c.tsx' has a '.tsx' extension - stripping it. +File '/project/c.tsx' exists - use it as a name resolution result. +======== Module name './c.tsx' was successfully resolved to '/project/c.tsx'. ======== +======== Resolving module './d' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d.ts' does not exist. +File '/project/d.tsx' does not exist. +File '/project/d.d.ts' does not exist. +File '/project/d.js' does not exist. +File '/project/d.jsx' does not exist. +File '/project/d/package.json' does not exist. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './d/index.ts' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/d/index.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/d/index.ts' has a '.ts' extension - stripping it. +File '/project/d/index.ts' exists - use it as a name resolution result. +======== Module name './d/index.ts' was successfully resolved to '/project/d/index.ts'. ======== +======== Resolving module './e' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/project/e.ts' exists - use it as a name resolution result. +======== Module name './e' was successfully resolved to '/project/e.ts'. ======== +======== Resolving module './e.txt' from '/project/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/e.txt' has a '.txt' extension - stripping it. +File '/project/e.d.txt.ts' does not exist. +File '/project/e.txt.ts' exists - use it as a name resolution result. +======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== +======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.ts' has a '.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== +======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. +File '/project/a.ts' exists - use it as a name resolution result. +======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff new file mode 100644 index 0000000000..2271d2bac2 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff @@ -0,0 +1,37 @@ +--- old.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json ++++ new.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json +@@= skipped -44, +44 lines =@@ + File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. + File '/project/b.ts' exists - use it as a name resolution result. + ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== ++======== Resolving module './b.d.ts' from '/project/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/b.ts' exists - use it as a name resolution result. ++======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== + ======== Resolving module './c.ts' from '/project/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -54, +61 lines =@@ + File '/project/e.txt.ts' exists - use it as a name resolution result. + ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== + ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== +-Resolution for module './a.ts' was found in cache from location '/project'. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.ts' has a '.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. + ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== ++======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. ++File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. ++File '/project/a.ts' exists - use it as a name resolution result. ++======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== + ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json new file mode 100644 index 0000000000..0e7da888eb --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json @@ -0,0 +1,57 @@ +======== Resolving module 'dual' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/dual/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.js'. +File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. +File '/node_modules/dual/index.ts' does not exist. +File '/node_modules/dual/index.tsx' does not exist. +File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. +======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== +======== Resolving module 'dual' from '/main.mts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/dual/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.js'. +File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. +File '/node_modules/dual/index.ts' does not exist. +File '/node_modules/dual/index.tsx' does not exist. +File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. +======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== +======== Resolving module 'dual' from '/main.cts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/dual/package.json'. +Entering conditional exports. +Saw non-matching condition 'import'. +Matched 'exports' condition 'require'. +Using 'exports' subpath '.' with target './index.cjs'. +File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it. +File '/node_modules/dual/index.cts' does not exist. +File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'require'. +Exiting conditional exports. +Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'. +======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff new file mode 100644 index 0000000000..dcb0701138 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff @@ -0,0 +1,61 @@ +--- old.bundlerNodeModules1(module=esnext).trace.json ++++ new.bundlerNodeModules1(module=esnext).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/dual/package.json'. + ======== Resolving module 'dual' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +-File '/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. + Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/dual/package.json' exists according to earlier cached lookups. +@@= skipped -16, +15 lines =@@ + Resolved under condition 'import'. + Exiting conditional exports. + Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. +-======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== ++======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== + ======== Resolving module 'dual' from '/main.mts'. ======== +-Resolution for module 'dual' was found in cache from location '/'. +-======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/node_modules/dual/package.json' exists according to earlier cached lookups. ++Entering conditional exports. ++Matched 'exports' condition 'import'. ++Using 'exports' subpath '.' with target './index.js'. ++File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. ++File '/node_modules/dual/index.ts' does not exist. ++File '/node_modules/dual/index.tsx' does not exist. ++File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. ++Resolved under condition 'import'. ++Exiting conditional exports. ++Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. ++======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== + ======== Resolving module 'dual' from '/main.cts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'require', 'types'. +-File '/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist. + Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/dual/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/dual/package.json'. + Entering conditional exports. + Saw non-matching condition 'import'. + Matched 'exports' condition 'require'. +@@= skipped -18, +34 lines =@@ + File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it. + File '/node_modules/dual/index.cts' does not exist. + File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'require'. + Exiting conditional exports. + Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'. +-======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual/index.d.cts@1.0.0'. ======== ++======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json new file mode 100644 index 0000000000..0e7da888eb --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json @@ -0,0 +1,57 @@ +======== Resolving module 'dual' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/dual/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.js'. +File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. +File '/node_modules/dual/index.ts' does not exist. +File '/node_modules/dual/index.tsx' does not exist. +File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. +======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== +======== Resolving module 'dual' from '/main.mts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/dual/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.js'. +File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. +File '/node_modules/dual/index.ts' does not exist. +File '/node_modules/dual/index.tsx' does not exist. +File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. +======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== +======== Resolving module 'dual' from '/main.cts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/dual/package.json'. +Entering conditional exports. +Saw non-matching condition 'import'. +Matched 'exports' condition 'require'. +Using 'exports' subpath '.' with target './index.cjs'. +File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it. +File '/node_modules/dual/index.cts' does not exist. +File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'require'. +Exiting conditional exports. +Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'. +======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff new file mode 100644 index 0000000000..6a5af5097d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff @@ -0,0 +1,61 @@ +--- old.bundlerNodeModules1(module=preserve).trace.json ++++ new.bundlerNodeModules1(module=preserve).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/dual/package.json'. + ======== Resolving module 'dual' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +-File '/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. + Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/dual/package.json' exists according to earlier cached lookups. +@@= skipped -16, +15 lines =@@ + Resolved under condition 'import'. + Exiting conditional exports. + Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. +-======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== ++======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== + ======== Resolving module 'dual' from '/main.mts'. ======== +-Resolution for module 'dual' was found in cache from location '/'. +-======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/node_modules/dual/package.json' exists according to earlier cached lookups. ++Entering conditional exports. ++Matched 'exports' condition 'import'. ++Using 'exports' subpath '.' with target './index.js'. ++File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. ++File '/node_modules/dual/index.ts' does not exist. ++File '/node_modules/dual/index.tsx' does not exist. ++File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. ++Resolved under condition 'import'. ++Exiting conditional exports. ++Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. ++======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== + ======== Resolving module 'dual' from '/main.cts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'require', 'types'. +-File '/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist. + Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/dual/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/dual/package.json'. + Entering conditional exports. + Saw non-matching condition 'import'. + Matched 'exports' condition 'require'. +@@= skipped -18, +34 lines =@@ + File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it. + File '/node_modules/dual/index.cts' does not exist. + File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'require'. + Exiting conditional exports. + Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'. +-======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual/index.d.cts@1.0.0'. ======== ++======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json new file mode 100644 index 0000000000..348f217046 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json @@ -0,0 +1,97 @@ +======== Resolving module './dir' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/dir.ts' does not exist. +File '/dir.tsx' does not exist. +File '/dir.d.ts' does not exist. +File '/dir.js' does not exist. +File '/dir.jsx' does not exist. +File '/dir/package.json' does not exist. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './dir/index' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir/index' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './dir/index.js' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/dir/index.js' has a '.js' extension - stripping it. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir/index.js' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './dir/index.ts' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir/index.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/dir/index.ts' has a '.ts' extension - stripping it. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir/index.ts' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './redirect' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/redirect', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/redirect.ts' does not exist. +File '/redirect.tsx' does not exist. +File '/redirect.d.ts' does not exist. +File '/redirect.js' does not exist. +File '/redirect.jsx' does not exist. +Found 'package.json' at '/redirect/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field '../foo' that references '/foo'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' does not exist. +File '/foo.tsx' does not exist. +File '/foo.d.ts' does not exist. +File '/foo.js' does not exist. +File '/foo.jsx' does not exist. +File '/foo/index.ts' exists - use it as a name resolution result. +======== Module name './redirect' was successfully resolved to '/foo/index.ts'. ======== +======== Resolving module './redirect/index' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/redirect/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/redirect/index.ts' does not exist. +File '/redirect/index.tsx' does not exist. +File '/redirect/index.d.ts' does not exist. +File '/redirect/index.js' does not exist. +File '/redirect/index.jsx' does not exist. +Directory '/redirect/index' does not exist, skipping all lookups in it. +======== Module name './redirect/index' was not resolved. ======== +======== Resolving module './types/esm' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/esm.ts' does not exist. +File '/types/esm.tsx' does not exist. +File '/types/esm.d.ts' exists - use it as a name resolution result. +======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== +======== Resolving module './types/esm' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/esm.ts' does not exist. +File '/types/esm.tsx' does not exist. +File '/types/esm.d.ts' exists - use it as a name resolution result. +======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== +======== Resolving module './types/cjs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/cjs.ts' does not exist. +File '/types/cjs.tsx' does not exist. +File '/types/cjs.d.ts' exists - use it as a name resolution result. +======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== +======== Resolving module './types/cjs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/cjs.ts' does not exist. +File '/types/cjs.tsx' does not exist. +File '/types/cjs.d.ts' exists - use it as a name resolution result. +======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff new file mode 100644 index 0000000000..45ba4fd6c8 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff @@ -0,0 +1,25 @@ +--- old.bundlerRelative1(module=esnext).trace.json ++++ new.bundlerRelative1(module=esnext).trace.json +@@= skipped -70, +70 lines =@@ + File '/types/esm.tsx' does not exist. + File '/types/esm.d.ts' exists - use it as a name resolution result. + ======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== ++======== Resolving module './types/esm' from '/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/types/esm.ts' does not exist. ++File '/types/esm.tsx' does not exist. ++File '/types/esm.d.ts' exists - use it as a name resolution result. ++======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== ++======== Resolving module './types/cjs' from '/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/types/cjs.ts' does not exist. ++File '/types/cjs.tsx' does not exist. ++File '/types/cjs.d.ts' exists - use it as a name resolution result. ++======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== + ======== Resolving module './types/cjs' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json new file mode 100644 index 0000000000..348f217046 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json @@ -0,0 +1,97 @@ +======== Resolving module './dir' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/dir.ts' does not exist. +File '/dir.tsx' does not exist. +File '/dir.d.ts' does not exist. +File '/dir.js' does not exist. +File '/dir.jsx' does not exist. +File '/dir/package.json' does not exist. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './dir/index' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir/index' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './dir/index.js' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/dir/index.js' has a '.js' extension - stripping it. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir/index.js' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './dir/index.ts' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/dir/index.ts', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/dir/index.ts' has a '.ts' extension - stripping it. +File '/dir/index.ts' exists - use it as a name resolution result. +======== Module name './dir/index.ts' was successfully resolved to '/dir/index.ts'. ======== +======== Resolving module './redirect' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/redirect', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/redirect.ts' does not exist. +File '/redirect.tsx' does not exist. +File '/redirect.d.ts' does not exist. +File '/redirect.js' does not exist. +File '/redirect.jsx' does not exist. +Found 'package.json' at '/redirect/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field '../foo' that references '/foo'. +Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/foo.ts' does not exist. +File '/foo.tsx' does not exist. +File '/foo.d.ts' does not exist. +File '/foo.js' does not exist. +File '/foo.jsx' does not exist. +File '/foo/index.ts' exists - use it as a name resolution result. +======== Module name './redirect' was successfully resolved to '/foo/index.ts'. ======== +======== Resolving module './redirect/index' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/redirect/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/redirect/index.ts' does not exist. +File '/redirect/index.tsx' does not exist. +File '/redirect/index.d.ts' does not exist. +File '/redirect/index.js' does not exist. +File '/redirect/index.jsx' does not exist. +Directory '/redirect/index' does not exist, skipping all lookups in it. +======== Module name './redirect/index' was not resolved. ======== +======== Resolving module './types/esm' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/esm.ts' does not exist. +File '/types/esm.tsx' does not exist. +File '/types/esm.d.ts' exists - use it as a name resolution result. +======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== +======== Resolving module './types/esm' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/esm.ts' does not exist. +File '/types/esm.tsx' does not exist. +File '/types/esm.d.ts' exists - use it as a name resolution result. +======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== +======== Resolving module './types/cjs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/cjs.ts' does not exist. +File '/types/cjs.tsx' does not exist. +File '/types/cjs.d.ts' exists - use it as a name resolution result. +======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== +======== Resolving module './types/cjs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/types/cjs.ts' does not exist. +File '/types/cjs.tsx' does not exist. +File '/types/cjs.d.ts' exists - use it as a name resolution result. +======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff new file mode 100644 index 0000000000..c5db8457d2 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff @@ -0,0 +1,25 @@ +--- old.bundlerRelative1(module=preserve).trace.json ++++ new.bundlerRelative1(module=preserve).trace.json +@@= skipped -70, +70 lines =@@ + File '/types/esm.tsx' does not exist. + File '/types/esm.d.ts' exists - use it as a name resolution result. + ======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== ++======== Resolving module './types/esm' from '/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/types/esm.ts' does not exist. ++File '/types/esm.tsx' does not exist. ++File '/types/esm.d.ts' exists - use it as a name resolution result. ++======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== ++======== Resolving module './types/cjs' from '/main.ts'. ======== ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'import', 'types'. ++Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. ++File '/types/cjs.ts' does not exist. ++File '/types/cjs.tsx' does not exist. ++File '/types/cjs.d.ts' exists - use it as a name resolution result. ++======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== + ======== Resolving module './types/cjs' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json new file mode 100644 index 0000000000..6ab1ae8a5f --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json @@ -0,0 +1,23 @@ +======== Resolving module 'dep' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/dep/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './dist/index.mjs'. +File name '/node_modules/dep/dist/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/dep/dist/index.mts' does not exist. +File '/node_modules/dep/dist/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './dist/index.d.ts'. +File '/node_modules/dep/dist/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. +======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff new file mode 100644 index 0000000000..8931e3c555 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff @@ -0,0 +1,22 @@ +--- old.conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json ++++ new.conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/dep/dist/package.json' does not exist. +-Found 'package.json' at '/node_modules/dep/package.json'. + ======== Resolving module 'dep' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/dep/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/dep/package.json'. + Entering conditional exports. + Matched 'exports' condition 'import'. + Using 'exports' subpath '.' with target './dist/index.mjs'. +@@= skipped -21, +19 lines =@@ + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. +-======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ======== ++======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json new file mode 100644 index 0000000000..b6bcab4eb7 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json @@ -0,0 +1,23 @@ +======== Resolving module 'dep' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist. +Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/dep/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './dist/index.mjs'. +File name '/node_modules/dep/dist/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/dep/dist/index.mts' does not exist. +File '/node_modules/dep/dist/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './dist/index.d.ts'. +File '/node_modules/dep/dist/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. +======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff new file mode 100644 index 0000000000..61c61e68a6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff @@ -0,0 +1,36 @@ +--- old.conditionalExportsResolutionFallback(moduleresolution=node16).trace.json ++++ new.conditionalExportsResolutionFallback(moduleresolution=node16).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/dep/dist/package.json' does not exist. +-Found 'package.json' at '/node_modules/dep/package.json'. + ======== Resolving module 'dep' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/package.json' does not exist. + Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/dep/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/dep/package.json'. + Entering conditional exports. + Matched 'exports' condition 'import'. + Using 'exports' subpath '.' with target './dist/index.mjs'. +@@= skipped -21, +19 lines =@@ + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. +-======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." ++======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json new file mode 100644 index 0000000000..db9b927d97 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json @@ -0,0 +1,23 @@ +======== Resolving module 'dep' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist. +Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/dep/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './dist/index.mjs'. +File name '/node_modules/dep/dist/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/dep/dist/index.mts' does not exist. +File '/node_modules/dep/dist/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Matched 'exports' condition 'types'. +Using 'exports' subpath '.' with target './dist/index.d.ts'. +File '/node_modules/dep/dist/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. +======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff new file mode 100644 index 0000000000..be66092b40 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff @@ -0,0 +1,36 @@ +--- old.conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json ++++ new.conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/dep/dist/package.json' does not exist. +-Found 'package.json' at '/node_modules/dep/package.json'. + ======== Resolving module 'dep' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/package.json' does not exist. + Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/dep/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/dep/package.json'. + Entering conditional exports. + Matched 'exports' condition 'import'. + Using 'exports' subpath '.' with target './dist/index.mjs'. +@@= skipped -21, +19 lines =@@ + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. +-======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." ++======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json new file mode 100644 index 0000000000..a8379a790b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json @@ -0,0 +1,21 @@ +======== Resolving module 'lodash' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/lodash/package.json'. +File '/node_modules/lodash.ts' does not exist. +File '/node_modules/lodash.tsx' does not exist. +File '/node_modules/lodash.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'index.js' that references '/node_modules/lodash/index.js'. +File name '/node_modules/lodash/index.js' has a '.js' extension - stripping it. +File '/node_modules/lodash/index.ts' does not exist. +File '/node_modules/lodash/index.tsx' does not exist. +File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'. +======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff new file mode 100644 index 0000000000..201f73debf --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff @@ -0,0 +1,24 @@ +--- old.customConditions(resolvepackagejsonexports=false).trace.json ++++ new.customConditions(resolvepackagejsonexports=false).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/lodash/package.json'. +-File '/node_modules/lodash/package.json' exists according to earlier cached lookups. +-File '/node_modules/lodash/package.json' exists according to earlier cached lookups. + ======== Resolving module 'lodash' from '/index.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. +-Resolving in CJS mode with conditions 'import', 'types', 'webpack', ' browser'. ++Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/lodash/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/lodash/package.json'. + File '/node_modules/lodash.ts' does not exist. + File '/node_modules/lodash.tsx' does not exist. + File '/node_modules/lodash.d.ts' does not exist. +@@= skipped -20, +17 lines =@@ + File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'. +-======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash/index.d.ts@1.0.0'. ======== ++======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json new file mode 100644 index 0000000000..91a2907b8a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json @@ -0,0 +1,21 @@ +======== Resolving module 'lodash' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/lodash/package.json'. +Entering conditional exports. +Saw non-matching condition 'browser'. +Saw non-matching condition 'webpack'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './index.js'. +File name '/node_modules/lodash/index.js' has a '.js' extension - stripping it. +File '/node_modules/lodash/index.ts' does not exist. +File '/node_modules/lodash/index.tsx' does not exist. +File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'. +======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff new file mode 100644 index 0000000000..b55f17c3f2 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff @@ -0,0 +1,38 @@ +--- old.customConditions(resolvepackagejsonexports=true).trace.json ++++ new.customConditions(resolvepackagejsonexports=true).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/lodash/package.json'. +-File '/node_modules/lodash/package.json' exists according to earlier cached lookups. +-File '/node_modules/lodash/package.json' exists according to earlier cached lookups. + ======== Resolving module 'lodash' from '/index.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. +-Resolving in CJS mode with conditions 'import', 'types', 'webpack', ' browser'. ++Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/lodash/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/lodash/package.json'. + Entering conditional exports. + Saw non-matching condition 'browser'. +-Matched 'exports' condition 'webpack'. +-Using 'exports' subpath '.' with target './webpack.js'. +-File name '/node_modules/lodash/webpack.js' has a '.js' extension - stripping it. +-File '/node_modules/lodash/webpack.ts' does not exist. +-File '/node_modules/lodash/webpack.tsx' does not exist. +-File '/node_modules/lodash/webpack.d.ts' exists - use it as a name resolution result. ++Saw non-matching condition 'webpack'. ++Matched 'exports' condition 'default'. ++Using 'exports' subpath '.' with target './index.js'. ++File name '/node_modules/lodash/index.js' has a '.js' extension - stripping it. ++File '/node_modules/lodash/index.ts' does not exist. ++File '/node_modules/lodash/index.tsx' does not exist. ++File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolved under condition 'webpack'. ++Resolved under condition 'default'. + Exiting conditional exports. +-Resolving real path for '/node_modules/lodash/webpack.d.ts', result '/node_modules/lodash/webpack.d.ts'. +-======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/webpack.d.ts' with Package ID 'lodash/webpack.d.ts@1.0.0'. ======== ++Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'. ++======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json new file mode 100644 index 0000000000..81c5a2b48a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json @@ -0,0 +1,11 @@ +======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'jquery' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff new file mode 100644 index 0000000000..d23c5436ce --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff @@ -0,0 +1,28 @@ +--- old.library-reference-1.trace.json ++++ new.library-reference-1.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/src/types'. ======== +-Resolving with primary search path '/src/types'. +-File '/src/types/jquery.d.ts' does not exist. +-File '/src/types/jquery/package.json' does not exist. +-File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/src/types'. ======== +-Resolving with primary search path '/src/types'. +-File '/src/types/jquery.d.ts' does not exist. +-File '/src/types/jquery/package.json' does not exist according to earlier cached lookups. +-File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/src'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'jquery' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json new file mode 100644 index 0000000000..4430d19bf0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json @@ -0,0 +1,11 @@ +======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/foo'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/foo/node_modules' does not exist, skipping all lookups in it. +Directory '/foo/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'jquery' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff new file mode 100644 index 0000000000..b1db77b7d9 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff @@ -0,0 +1,31 @@ +--- old.library-reference-10.trace.json ++++ new.library-reference-10.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/foo/types'. ======== +-Resolving with primary search path '/foo/types'. +-File '/foo/types/jquery.d.ts' does not exist. +-Found 'package.json' at '/foo/types/jquery/package.json'. +-'package.json' does not have a 'typesVersions' field. +-'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. +-File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ======== +-======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/foo/types'. ======== +-Resolving with primary search path '/foo/types'. +-File '/foo/types/jquery.d.ts' does not exist. +-File '/foo/types/jquery/package.json' exists according to earlier cached lookups. +-'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. +-File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ======== ++======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/foo'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/foo/node_modules' does not exist, skipping all lookups in it. ++Directory '/foo/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'jquery' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json new file mode 100644 index 0000000000..29e08ea81f --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json @@ -0,0 +1,14 @@ +======== Resolving type reference directive 'jquery', containing file '/a/b/consumer.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/a/b'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/a/node_modules/jquery/package.json'. +File '/a/node_modules/jquery.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' has 'typings' field 'jquery.d.ts' that references '/a/node_modules/jquery/jquery.d.ts'. +File '/a/node_modules/jquery/jquery.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/node_modules/jquery/jquery.d.ts', result '/a/node_modules/jquery/jquery.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/jquery.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff new file mode 100644 index 0000000000..5ae14a2bd0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff @@ -0,0 +1,15 @@ +--- old.library-reference-11.trace.json ++++ new.library-reference-11.trace.json +@@= skipped -3, +3 lines =@@ + Looking up in 'node_modules' folder, initial location '/a/b'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. + Found 'package.json' at '/a/node_modules/jquery/package.json'. + File '/a/node_modules/jquery.d.ts' does not exist. + 'package.json' does not have a 'typesVersions' field. +@@= skipped -7, +8 lines =@@ + File '/a/node_modules/jquery/jquery.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/node_modules/jquery/jquery.d.ts', result '/a/node_modules/jquery/jquery.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/jquery.d.ts', primary: false. ======== +-File '/a/node_modules/jquery/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json new file mode 100644 index 0000000000..c36ef8d0ab --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json @@ -0,0 +1,15 @@ +======== Resolving type reference directive 'jquery', containing file '/a/b/consumer.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/a/b'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/a/b/node_modules' does not exist, skipping all lookups in it. +Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/a/node_modules/jquery/package.json'. +File '/a/node_modules/jquery.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'dist/jquery.d.ts' that references '/a/node_modules/jquery/dist/jquery.d.ts'. +File '/a/node_modules/jquery/dist/jquery.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/node_modules/jquery/dist/jquery.d.ts', result '/a/node_modules/jquery/dist/jquery.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/dist/jquery.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff new file mode 100644 index 0000000000..c3ddcb5c26 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff @@ -0,0 +1,16 @@ +--- old.library-reference-12.trace.json ++++ new.library-reference-12.trace.json +@@= skipped -3, +3 lines =@@ + Looking up in 'node_modules' folder, initial location '/a/b'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/a/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. + Found 'package.json' at '/a/node_modules/jquery/package.json'. + File '/a/node_modules/jquery.d.ts' does not exist. + 'package.json' does not have a 'typesVersions' field. +@@= skipped -8, +9 lines =@@ + File '/a/node_modules/jquery/dist/jquery.d.ts' exists - use it as a name resolution result. + Resolving real path for '/a/node_modules/jquery/dist/jquery.d.ts', result '/a/node_modules/jquery/dist/jquery.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/dist/jquery.d.ts', primary: false. ======== +-File '/a/node_modules/jquery/dist/package.json' does not exist. +-File '/a/node_modules/jquery/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json new file mode 100644 index 0000000000..cdc64d65fc --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json @@ -0,0 +1,7 @@ +======== Resolving type reference directive 'jquery', containing file '/a/__inferred type names__.ts', root directory '/a/types'. ======== +Resolving with primary search path '/a/types'. +File '/a/types/jquery.d.ts' does not exist. +File '/a/types/jquery/package.json' does not exist. +File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff new file mode 100644 index 0000000000..48d226e884 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff @@ -0,0 +1,2 @@ +--- old.library-reference-13.trace.json ++++ new.library-reference-13.trace.json \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff new file mode 100644 index 0000000000..19e725a306 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff @@ -0,0 +1,11 @@ +--- old.library-reference-14.trace.json ++++ new.library-reference-14.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'jquery', containing file '/a/__inferred type names__.ts', root directory '/a/types'. ======== +-Resolving with primary search path '/a/types'. +-File '/a/types/jquery.d.ts' does not exist. +-File '/a/types/jquery/package.json' does not exist. +-File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ======== ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff new file mode 100644 index 0000000000..f93ffc44b6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff @@ -0,0 +1,11 @@ +--- old.library-reference-15.trace.json ++++ new.library-reference-15.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/a/types'. ======== +-Resolving with primary search path '/a/types'. +-File '/a/types/jquery.d.ts' does not exist. +-File '/a/types/jquery/package.json' does not exist. +-File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ======== ++ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json new file mode 100644 index 0000000000..0f38836cae --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json @@ -0,0 +1,9 @@ +======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. +Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'jquery' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff new file mode 100644 index 0000000000..6c26070a0a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff @@ -0,0 +1,31 @@ +--- old.library-reference-2.trace.json ++++ new.library-reference-2.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/jquery.d.ts' does not exist. +-Found 'package.json' at '/types/jquery/package.json'. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. +-File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquery.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ======== +-======== Resolving type reference directive 'jquery', containing file '/test/__inferred type names__.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-File '/types/jquery.d.ts' does not exist. +-File '/types/jquery/package.json' exists according to earlier cached lookups. +-'package.json' does not have a 'typings' field. +-'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. +-File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquery.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ======== ++======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. ++Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'jquery' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json new file mode 100644 index 0000000000..deaa485e43 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json @@ -0,0 +1,11 @@ +======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/src/node_modules/@types, /node_modules/@types'. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/src/node_modules/jquery/package.json' does not exist. +File '/src/node_modules/jquery.d.ts' does not exist. +File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff new file mode 100644 index 0000000000..05ca5e3035 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff @@ -0,0 +1,10 @@ +--- old.library-reference-3.trace.json ++++ new.library-reference-3.trace.json +@@= skipped -8, +8 lines =@@ + File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ======== +-File '/src/node_modules/jquery/package.json' does not exist according to earlier cached lookups. +-File '/src/node_modules/package.json' does not exist. +-File '/src/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json new file mode 100644 index 0000000000..084081bfd1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json @@ -0,0 +1,52 @@ +======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/foo/package.json' does not exist. +File '/node_modules/foo.d.ts' does not exist. +File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. +======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/bar/package.json' does not exist. +File '/node_modules/bar.d.ts' does not exist. +File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'. +======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/node_modules/foo'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/foo/node_modules/alpha/package.json' does not exist. +File '/node_modules/foo/node_modules/alpha.d.ts' does not exist. +File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'. +======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/node_modules/bar'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/bar/node_modules/alpha/package.json' does not exist. +File '/node_modules/bar/node_modules/alpha.d.ts' does not exist. +File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'. +======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff new file mode 100644 index 0000000000..a9673c45c6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff @@ -0,0 +1,83 @@ +--- old.library-reference-4.trace.json ++++ new.library-reference-4.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/src'. ======== +-Resolving with primary search path '/src'. +-File '/src/foo.d.ts' does not exist. ++======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/src'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/foo/package.json' does not exist. + File '/node_modules/foo.d.ts' does not exist. + File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. + ======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ======== +-======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/src'. ======== +-Resolving with primary search path '/src'. +-File '/src/bar.d.ts' does not exist. ++======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/src'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/bar/package.json' does not exist. + File '/node_modules/bar.d.ts' does not exist. + File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'. + ======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ======== +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/src'. ======== +-Resolving with primary search path '/src'. +-File '/src/alpha.d.ts' does not exist. ++======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/node_modules/foo'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + File '/node_modules/foo/node_modules/alpha/package.json' does not exist. +@@= skipped -32, +37 lines =@@ + File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'. + ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ======== +-File '/node_modules/foo/node_modules/alpha/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/foo/node_modules/package.json' does not exist. +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/src'. ======== +-Resolving with primary search path '/src'. +-File '/src/alpha.d.ts' does not exist. ++======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/node_modules/bar'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + File '/node_modules/bar/node_modules/alpha/package.json' does not exist. +@@= skipped -18, +12 lines =@@ + File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'. + ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ======== +-File '/node_modules/bar/node_modules/alpha/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/bar/node_modules/package.json' does not exist. +-File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json new file mode 100644 index 0000000000..77d8a02569 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json @@ -0,0 +1,44 @@ +======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/foo/package.json' does not exist. +File '/node_modules/foo.d.ts' does not exist. +File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. +======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/src/node_modules' does not exist, skipping all lookups in it. +Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/bar/package.json' does not exist. +File '/node_modules/bar.d.ts' does not exist. +File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'. +======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/node_modules/foo'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/foo/node_modules/alpha/package.json' does not exist. +File '/node_modules/foo/node_modules/alpha.d.ts' does not exist. +File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'. +======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ======== +======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/node_modules/bar'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/bar/node_modules/alpha/package.json' does not exist. +File '/node_modules/bar/node_modules/alpha.d.ts' does not exist. +File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'. +======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff new file mode 100644 index 0000000000..83885e6e57 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff @@ -0,0 +1,75 @@ +--- old.library-reference-5.trace.json ++++ new.library-reference-5.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-Directory '/types' does not exist, skipping all lookups in it. ++======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/src'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/foo/package.json' does not exist. + File '/node_modules/foo.d.ts' does not exist. + File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. + ======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ======== +-======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-Directory '/types' does not exist, skipping all lookups in it. ++======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/src'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + Directory '/src/node_modules' does not exist, skipping all lookups in it. ++Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/bar/package.json' does not exist. + File '/node_modules/bar.d.ts' does not exist. + File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'. + ======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ======== +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-Directory '/types' does not exist, skipping all lookups in it. ++======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/node_modules/foo'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + File '/node_modules/foo/node_modules/alpha/package.json' does not exist. +@@= skipped -32, +31 lines =@@ + File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'. + ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ======== +-File '/node_modules/foo/node_modules/alpha/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/foo/node_modules/package.json' does not exist. +-File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/types'. ======== +-Resolving with primary search path '/types'. +-Directory '/types' does not exist, skipping all lookups in it. ++======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/node_modules/bar'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + File '/node_modules/bar/node_modules/alpha/package.json' does not exist. +@@= skipped -18, +10 lines =@@ + File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'. + ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ======== +-File '/node_modules/bar/node_modules/alpha/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/bar/node_modules/package.json' does not exist. +-File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json new file mode 100644 index 0000000000..422db93453 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json @@ -0,0 +1,12 @@ +======== Resolving type reference directive 'alpha', containing file '/src/foo.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/alpha/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. +======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== +======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/alpha/package.json' does not exist. +File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. +======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff new file mode 100644 index 0000000000..e98b99d4a2 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff @@ -0,0 +1,24 @@ +--- old.library-reference-6.trace.json ++++ new.library-reference-6.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving type reference directive 'alpha', containing file '/src/foo.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. +-File '/node_modules/@types/alpha/package.json' does not exist. +-File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. +-======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== + File '/node_modules/@types/alpha/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'alpha' was found in cache from location '/'. ++File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. ++======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++File '/node_modules/@types/alpha/package.json' does not exist. ++File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. + ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json new file mode 100644 index 0000000000..a213a97694 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json @@ -0,0 +1,10 @@ +======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/src'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/src/node_modules/jquery/package.json' does not exist. +File '/src/node_modules/jquery.d.ts' does not exist. +File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff new file mode 100644 index 0000000000..8318214b61 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff @@ -0,0 +1,10 @@ +--- old.library-reference-7.trace.json ++++ new.library-reference-7.trace.json +@@= skipped -7, +7 lines =@@ + File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ======== +-File '/src/node_modules/jquery/package.json' does not exist according to earlier cached lookups. +-File '/src/node_modules/package.json' does not exist. +-File '/src/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json new file mode 100644 index 0000000000..b27bc84028 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json @@ -0,0 +1,22 @@ +======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. +Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/test'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/test/node_modules' does not exist, skipping all lookups in it. +Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'alpha' was not resolved. ======== +======== Resolving type reference directive 'beta', containing file '/test/foo.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. +Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/test'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +Directory '/test/node_modules' does not exist, skipping all lookups in it. +Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +======== Type reference directive 'beta' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff new file mode 100644 index 0000000000..c3451aa69e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff @@ -0,0 +1,59 @@ +--- old.library-reference-8.trace.json ++++ new.library-reference-8.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/types'. ======== +-Resolving with primary search path '/test/types'. +-File '/test/types/alpha.d.ts' does not exist. +-File '/test/types/alpha/package.json' does not exist. +-File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. +-======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'beta', containing file '/test/foo.ts', root directory '/test/types'. ======== +-Resolving with primary search path '/test/types'. +-File '/test/types/beta.d.ts' does not exist. +-File '/test/types/beta/package.json' does not exist. +-File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. +-======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'beta', containing file '/test/types/alpha/index.d.ts', root directory '/test/types'. ======== +-Resolving with primary search path '/test/types'. +-File '/test/types/beta.d.ts' does not exist. +-File '/test/types/beta/package.json' does not exist according to earlier cached lookups. +-File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. +-======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'alpha', containing file '/test/types/beta/index.d.ts', root directory '/test/types'. ======== +-Resolving with primary search path '/test/types'. +-File '/test/types/alpha.d.ts' does not exist. +-File '/test/types/alpha/package.json' does not exist according to earlier cached lookups. +-File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. +-======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'alpha', containing file '/test/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'alpha' was found in cache from location '/test'. +-======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== +-======== Resolving type reference directive 'beta', containing file '/test/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'beta' was found in cache from location '/test'. +-======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. ++Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/test'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/test/node_modules' does not exist, skipping all lookups in it. ++Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'alpha' was not resolved. ======== ++======== Resolving type reference directive 'beta', containing file '/test/foo.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. ++Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Looking up in 'node_modules' folder, initial location '/test'. ++Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Directory '/test/node_modules' does not exist, skipping all lookups in it. ++Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++======== Type reference directive 'beta' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json new file mode 100644 index 0000000000..5c8b96b752 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json @@ -0,0 +1,16 @@ +======== Resolving type reference directive '@beep/boop', containing file '/a.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Scoped package detected, looking in 'beep__boop' +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'beep__boop' +File '/node_modules/@types/beep__boop/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. +======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: true. ======== +======== Resolving type reference directive 'beep__boop', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/beep__boop/package.json' does not exist. +File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. +======== Type reference directive 'beep__boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff new file mode 100644 index 0000000000..2060d94ae5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff @@ -0,0 +1,33 @@ +--- old.library-reference-scoped-packages.trace.json ++++ new.library-reference-scoped-packages.trace.json +@@= skipped -0, +0 lines =@@ +-======== Resolving type reference directive '@beep/boop', containing file '/a.ts', root directory '/.src/types'. ======== +-Resolving with primary search path '/.src/types'. +-Directory '/.src/types' does not exist, skipping all lookups in it. +-Looking up in 'node_modules' folder, initial location '/'. +-Searching all ancestor node_modules directories for preferred extensions: Declaration. +-Scoped package detected, looking in 'beep__boop' +-File '/node_modules/@types/beep__boop/package.json' does not exist. +-File '/node_modules/@types/beep__boop.d.ts' does not exist. +-File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. +-======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: false. ======== ++======== Resolving type reference directive '@beep/boop', containing file '/a.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. ++Scoped package detected, looking in 'beep__boop' ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++Scoped package detected, looking in 'beep__boop' + File '/node_modules/@types/beep__boop/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. ++File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. ++======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'beep__boop', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++File '/node_modules/@types/beep__boop/package.json' does not exist. ++File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. ++======== Type reference directive 'beep__boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json b/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json new file mode 100644 index 0000000000..c91bfb320e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json @@ -0,0 +1,22 @@ +======== Resolving module './a' from '/src/b.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/src/a.ts' exists - use it as a name resolution result. +======== Module name './a' was successfully resolved to '/src/a.ts'. ======== +======== Resolving module './a.js' from '/src/d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/src/a.js' has a '.js' extension - stripping it. +File '/src/a.ts' exists - use it as a name resolution result. +======== Module name './a.js' was successfully resolved to '/src/a.ts'. ======== +======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, JavaScript, Declaration, JSON. +File name '/src/jquery.js' has a '.js' extension - stripping it. +File '/src/jquery.ts' does not exist. +File '/src/jquery.tsx' does not exist. +File '/src/jquery.d.ts' exists - use it as a name resolution result. +======== Module name './jquery.js' was successfully resolved to '/src/jquery.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff b/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff new file mode 100644 index 0000000000..81b4e2a1b6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff @@ -0,0 +1,29 @@ +--- old.moduleResolutionWithExtensions.trace.json ++++ new.moduleResolutionWithExtensions.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module './a' from '/src/b.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/src/a.ts' exists - use it as a name resolution result. + ======== Module name './a' was successfully resolved to '/src/a.ts'. ======== + ======== Resolving module './a.js' from '/src/d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/src/a.js' has a '.js' extension - stripping it. + File '/src/a.ts' exists - use it as a name resolution result. + ======== Module name './a.js' was successfully resolved to '/src/a.ts'. ======== + ======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, JavaScript, Declaration, JSON. + File name '/src/jquery.js' has a '.js' extension - stripping it. + File '/src/jquery.ts' does not exist. + File '/src/jquery.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json new file mode 100644 index 0000000000..5393d839b3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json @@ -0,0 +1,17 @@ +======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. +Found 'package.json' at '/node_modules/@restart/hooks/package.json'. +File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. +File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. +File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field '../esm/useMergedRefs.d.ts' that references '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. +File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. +======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff new file mode 100644 index 0000000000..932b76b794 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff @@ -0,0 +1,17 @@ +--- old.nestedPackageJsonRedirect(moduleresolution=bundler).trace.json ++++ new.nestedPackageJsonRedirect(moduleresolution=bundler).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@restart/hooks/esm/package.json' does not exist. +-Found 'package.json' at '/node_modules/@restart/hooks/package.json'. + ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'require', 'types'. +@@= skipped -6, +4 lines =@@ + Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. +-File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@restart/hooks/package.json'. + File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. + File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. + File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json new file mode 100644 index 0000000000..a6aac5151e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json @@ -0,0 +1,17 @@ +======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. +Found 'package.json' at '/node_modules/@restart/hooks/package.json'. +File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. +File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. +File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field '../esm/useMergedRefs.d.ts' that references '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. +File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. +======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff new file mode 100644 index 0000000000..c5a0dcf18c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff @@ -0,0 +1,36 @@ +--- old.nestedPackageJsonRedirect(moduleresolution=node16).trace.json ++++ new.nestedPackageJsonRedirect(moduleresolution=node16).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@restart/hooks/esm/package.json' does not exist. +-Found 'package.json' at '/node_modules/@restart/hooks/package.json'. +-File '/package.json' does not exist. + ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -7, +4 lines =@@ + Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. +-File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@restart/hooks/package.json'. + File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. + File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. + File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. +@@= skipped -10, +10 lines =@@ + File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. + ======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json new file mode 100644 index 0000000000..f85fe49da0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json @@ -0,0 +1,17 @@ +======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. +Found 'package.json' at '/node_modules/@restart/hooks/package.json'. +File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. +File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. +File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field '../esm/useMergedRefs.d.ts' that references '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. +File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. +======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff new file mode 100644 index 0000000000..51267702cd --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff @@ -0,0 +1,36 @@ +--- old.nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json ++++ new.nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@restart/hooks/esm/package.json' does not exist. +-Found 'package.json' at '/node_modules/@restart/hooks/package.json'. +-File '/package.json' does not exist. + ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== + Explicitly specified module resolution kind: 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -7, +4 lines =@@ + Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. +-File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@restart/hooks/package.json'. + File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. + File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. + File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. +@@= skipped -10, +10 lines =@@ + File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. + ======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json new file mode 100644 index 0000000000..fd231b2be0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'pkg' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/pkg/package.json'. +Using 'exports' subpath '.' with target './definitely-not-index.js'. +File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. +File '/node_modules/pkg/definitely-not-index.ts' does not exist. +File '/node_modules/pkg/definitely-not-index.tsx' does not exist. +File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. +======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff new file mode 100644 index 0000000000..8e389bd372 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff @@ -0,0 +1,47 @@ +--- old.node10AlternateResult_noResolution.trace.json ++++ new.node10AlternateResult_noResolution.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/pkg/package.json'. + ======== Resolving module 'pkg' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. +-File '/node_modules/pkg.ts' does not exist. +-File '/node_modules/pkg.tsx' does not exist. +-File '/node_modules/pkg.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' does not have a 'main' field. +-File '/node_modules/pkg/index.ts' does not exist. +-File '/node_modules/pkg/index.tsx' does not exist. +-File '/node_modules/pkg/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'pkg' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. +-File '/node_modules/pkg.js' does not exist. +-File '/node_modules/pkg.jsx' does not exist. +-'package.json' does not have a 'main' field. +-File '/node_modules/pkg/index.js' does not exist. +-File '/node_modules/pkg/index.jsx' does not exist. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Found 'package.json' at '/node_modules/pkg/package.json'. + Using 'exports' subpath '.' with target './definitely-not-index.js'. + File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. + File '/node_modules/pkg/definitely-not-index.ts' does not exist. + File '/node_modules/pkg/definitely-not-index.tsx' does not exist. + File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-======== Module name 'pkg' was not resolved. ======== ++Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. ++======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json new file mode 100644 index 0000000000..fd231b2be0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'pkg' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/pkg/package.json'. +Using 'exports' subpath '.' with target './definitely-not-index.js'. +File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. +File '/node_modules/pkg/definitely-not-index.ts' does not exist. +File '/node_modules/pkg/definitely-not-index.tsx' does not exist. +File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. +======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff new file mode 100644 index 0000000000..8bc36f96dd --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff @@ -0,0 +1,62 @@ +--- old.node10Alternateresult_noTypes.trace.json ++++ new.node10Alternateresult_noTypes.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/pkg/package.json'. + ======== Resolving module 'pkg' from '/index.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. +-File '/node_modules/pkg.ts' does not exist. +-File '/node_modules/pkg.tsx' does not exist. +-File '/node_modules/pkg.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field './untyped.js' that references '/node_modules/pkg/untyped.js'. +-File name '/node_modules/pkg/untyped.js' has a '.js' extension - stripping it. +-File '/node_modules/pkg/untyped.ts' does not exist. +-File '/node_modules/pkg/untyped.tsx' does not exist. +-File '/node_modules/pkg/untyped.d.ts' does not exist. +-Loading module as file / folder, candidate module location '/node_modules/pkg/untyped.js', target file types: TypeScript, Declaration. +-File name '/node_modules/pkg/untyped.js' has a '.js' extension - stripping it. +-File '/node_modules/pkg/untyped.ts' does not exist. +-File '/node_modules/pkg/untyped.tsx' does not exist. +-File '/node_modules/pkg/untyped.d.ts' does not exist. +-File '/node_modules/pkg/untyped.js.ts' does not exist. +-File '/node_modules/pkg/untyped.js.tsx' does not exist. +-File '/node_modules/pkg/untyped.js.d.ts' does not exist. +-Directory '/node_modules/pkg/untyped.js' does not exist, skipping all lookups in it. +-File '/node_modules/pkg/index.ts' does not exist. +-File '/node_modules/pkg/index.tsx' does not exist. +-File '/node_modules/pkg/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'pkg' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. +-File '/node_modules/pkg.js' does not exist. +-File '/node_modules/pkg.jsx' does not exist. +-'package.json' has 'main' field './untyped.js' that references '/node_modules/pkg/untyped.js'. +-File name '/node_modules/pkg/untyped.js' has a '.js' extension - stripping it. +-File '/node_modules/pkg/untyped.js' exists - use it as a name resolution result. +-'package.json' does not have a 'peerDependencies' field. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Found 'package.json' at '/node_modules/pkg/package.json'. + Using 'exports' subpath '.' with target './definitely-not-index.js'. + File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. + File '/node_modules/pkg/definitely-not-index.ts' does not exist. + File '/node_modules/pkg/definitely-not-index.tsx' does not exist. + File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/pkg/untyped.js', result '/node_modules/pkg/untyped.js'. +-======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/untyped.js' with Package ID 'pkg/untyped.js@1.0.0'. ======== ++'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. ++======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json new file mode 100644 index 0000000000..e62dd092f1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'fancy-lib' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/fancy-lib/package.json'. +Using 'exports' subpath '.' with target './definitely-not-index.js'. +File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. +File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. +File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. +File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. +======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff new file mode 100644 index 0000000000..26b5a8c919 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff @@ -0,0 +1,36 @@ +--- old.node10IsNode_node.trace.json ++++ new.node10IsNode_node.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/fancy-lib/package.json'. +-File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. + ======== Resolving module 'fancy-lib' from '/main.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. +-File '/node_modules/fancy-lib.ts' does not exist. +-File '/node_modules/fancy-lib.tsx' does not exist. +-File '/node_modules/fancy-lib.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'index.js' that references '/node_modules/fancy-lib/index.js'. +-File name '/node_modules/fancy-lib/index.js' has a '.js' extension - stripping it. +-File '/node_modules/fancy-lib/index.ts' does not exist. +-File '/node_modules/fancy-lib/index.tsx' does not exist. +-File '/node_modules/fancy-lib/index.d.ts' exists - use it as a name resolution result. ++Found 'package.json' at '/node_modules/fancy-lib/package.json'. ++Using 'exports' subpath '.' with target './definitely-not-index.js'. ++File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. ++File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. ++File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. ++File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'. +-======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ======== ++Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. ++======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json b/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json new file mode 100644 index 0000000000..e62dd092f1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'fancy-lib' from '/main.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/fancy-lib/package.json'. +Using 'exports' subpath '.' with target './definitely-not-index.js'. +File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. +File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. +File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. +File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. +======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff new file mode 100644 index 0000000000..58618dd517 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff @@ -0,0 +1,36 @@ +--- old.node10IsNode_node10.trace.json ++++ new.node10IsNode_node10.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/fancy-lib/package.json'. +-File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. + ======== Resolving module 'fancy-lib' from '/main.ts'. ======== +-Explicitly specified module resolution kind: 'Node10'. +-Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. +-File '/node_modules/fancy-lib.ts' does not exist. +-File '/node_modules/fancy-lib.tsx' does not exist. +-File '/node_modules/fancy-lib.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'index.js' that references '/node_modules/fancy-lib/index.js'. +-File name '/node_modules/fancy-lib/index.js' has a '.js' extension - stripping it. +-File '/node_modules/fancy-lib/index.ts' does not exist. +-File '/node_modules/fancy-lib/index.tsx' does not exist. +-File '/node_modules/fancy-lib/index.d.ts' exists - use it as a name resolution result. ++Found 'package.json' at '/node_modules/fancy-lib/package.json'. ++Using 'exports' subpath '.' with target './definitely-not-index.js'. ++File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. ++File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. ++File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. ++File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'. +-======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ======== ++Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. ++======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json new file mode 100644 index 0000000000..98969b7f08 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json @@ -0,0 +1,57 @@ +======== Resolving module 'react' from '/packages/a/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/packages/a/package.json' does not exist according to earlier cached lookups. +File '/packages/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'react' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/packages/a/node_modules/react/package.json' does not exist. +File '/packages/a/node_modules/react.ts' does not exist. +File '/packages/a/node_modules/react.tsx' does not exist. +File '/packages/a/node_modules/react.d.ts' does not exist. +File '/packages/a/node_modules/react/index.ts' does not exist. +File '/packages/a/node_modules/react/index.tsx' does not exist. +File '/packages/a/node_modules/react/index.d.ts' does not exist. +Directory '/packages/a/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/packages/node_modules' does not exist, skipping all lookups in it. +Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/react.ts' does not exist. +File '/node_modules/react.tsx' does not exist. +File '/node_modules/react.d.ts' does not exist. +File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/react.d.ts' does not exist. +File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'. +======== Module name 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts'. ======== +======== Resolving module 'redux' from '/packages/a/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/packages/a/package.json' does not exist according to earlier cached lookups. +File '/packages/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'redux' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/packages/a/node_modules/redux/package.json' does not exist. +File '/packages/a/node_modules/redux.ts' does not exist. +File '/packages/a/node_modules/redux.tsx' does not exist. +File '/packages/a/node_modules/redux.d.ts' does not exist. +File '/packages/a/node_modules/redux/index.ts' does not exist. +File '/packages/a/node_modules/redux/index.tsx' does not exist. +File '/packages/a/node_modules/redux/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/packages/a/node_modules/redux/index.d.ts', result '/packages/a/node_modules/redux/index.d.ts'. +======== Module name 'redux' was successfully resolved to '/packages/a/node_modules/redux/index.d.ts'. ======== +======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/react/package.json' does not exist. +File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'. +======== Type reference directive 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts', primary: true. ======== +======== Resolving type reference directive 'redux', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/redux/package.json' does not exist. +File '/node_modules/@types/redux/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/redux/index.d.ts', result '/node_modules/@types/redux/index.d.ts'. +======== Type reference directive 'redux' was successfully resolved to '/node_modules/@types/redux/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff new file mode 100644 index 0000000000..02580b9520 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff @@ -0,0 +1,182 @@ +--- old.nodeModulesAtTypesPriority.trace.json ++++ new.nodeModulesAtTypesPriority.trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/@types/react/package.json' does not exist. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-File '/node_modules/@types/redux/package.json' does not exist. +-File '/node_modules/@types/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/packages/a/node_modules/redux/package.json' does not exist. +-File '/packages/a/node_modules/package.json' does not exist. +-File '/packages/a/package.json' does not exist. +-File '/packages/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/packages/a/package.json' does not exist according to earlier cached lookups. +-File '/packages/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. + ======== Resolving module 'react' from '/packages/a/index.ts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -30, +14 lines =@@ + File '/packages/a/node_modules/react/index.d.ts' does not exist. + Directory '/packages/a/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/packages/node_modules' does not exist, skipping all lookups in it. ++Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. + File '/node_modules/react.ts' does not exist. + File '/node_modules/react.tsx' does not exist. + File '/node_modules/react.d.ts' does not exist. +@@= skipped -16, +17 lines =@@ + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'redux' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/packages/a/node_modules/redux/package.json' does not exist according to earlier cached lookups. ++File '/packages/a/node_modules/redux/package.json' does not exist. + File '/packages/a/node_modules/redux.ts' does not exist. + File '/packages/a/node_modules/redux.tsx' does not exist. + File '/packages/a/node_modules/redux.d.ts' does not exist. +@@= skipped -12, +12 lines =@@ + ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +-File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@types/react/package.json' does not exist. + File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'. + ======== Type reference directive 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts', primary: true. ======== + ======== Resolving type reference directive 'redux', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +-File '/node_modules/@types/redux/package.json' does not exist according to earlier cached lookups. ++File '/node_modules/@types/redux/package.json' does not exist. + File '/node_modules/@types/redux/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/redux/index.d.ts', result '/node_modules/@types/redux/index.d.ts'. + ======== Type reference directive 'redux' was successfully resolved to '/node_modules/@types/redux/index.d.ts', primary: true. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json new file mode 100644 index 0000000000..cdf5b6df2d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json @@ -0,0 +1,210 @@ +======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/nope' was not resolved. ======== +======== Resolving module 'exports-and-types-versions/yep' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath './yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types@>=4'. +Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types@>=4'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-nah' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/versioned-nah' was not resolved. ======== +======== Resolving module 'just-types-versions/foo' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. +======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== +======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/nope' was not resolved. ======== +======== Resolving module 'exports-and-types-versions/yep' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath './yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types@>=4'. +Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types@>=4'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-nah' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/versioned-nah' was not resolved. ======== +======== Resolving module 'just-types-versions/foo' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/just-types-versions/package.json'. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. +======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff new file mode 100644 index 0000000000..46eec0565b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff @@ -0,0 +1,263 @@ +--- old.nodeModulesExportsBlocksTypesVersions(module=node16).trace.json ++++ new.nodeModulesExportsBlocksTypesVersions(module=node16).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/exports-and-types-versions/types/package.json' does not exist. +-Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +-File '/node_modules/just-types-versions/types/package.json' does not exist. +-Found 'package.json' at '/node_modules/just-types-versions/package.json'. + ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +@@= skipped -22, +18 lines =@@ + File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +-======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -25, +25 lines =@@ + Matched 'exports' condition 'types'. + Using 'exports' subpath './yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -15, +16 lines =@@ + Matched 'exports' condition 'types@>=4'. + Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types@>=4'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -30, +31 lines =@@ + Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +@@= skipped -10, +9 lines =@@ + ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +-File '/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. + Using 'exports' subpath './foo' with target './dist/foo.js'. + File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. + File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +@@= skipped -16, +16 lines =@@ + Using 'exports' subpath './foo' with target './dist/foo.js'. + File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. + File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. + 'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +-======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== ++Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. ++======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -36, +38 lines =@@ + Matched 'exports' condition 'types'. + Using 'exports' subpath './yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -15, +16 lines =@@ + Matched 'exports' condition 'types@>=4'. + Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types@>=4'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -29, +30 lines =@@ + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++Found 'package.json' at '/node_modules/just-types-versions/package.json'. ++'package.json' has a 'typesVersions' field with version-specific path mappings. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. + ======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json new file mode 100644 index 0000000000..cdf5b6df2d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json @@ -0,0 +1,210 @@ +======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/nope' was not resolved. ======== +======== Resolving module 'exports-and-types-versions/yep' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath './yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types@>=4'. +Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types@>=4'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-nah' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/versioned-nah' was not resolved. ======== +======== Resolving module 'just-types-versions/foo' from '/main.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. +======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== +======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/nope' was not resolved. ======== +======== Resolving module 'exports-and-types-versions/yep' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath './yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types@>=4'. +Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types@>=4'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-nah' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/versioned-nah' was not resolved. ======== +======== Resolving module 'just-types-versions/foo' from '/main.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/just-types-versions/package.json'. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. +======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff new file mode 100644 index 0000000000..cf421f0601 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff @@ -0,0 +1,263 @@ +--- old.nodeModulesExportsBlocksTypesVersions(module=node18).trace.json ++++ new.nodeModulesExportsBlocksTypesVersions(module=node18).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/exports-and-types-versions/types/package.json' does not exist. +-Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +-File '/node_modules/just-types-versions/types/package.json' does not exist. +-Found 'package.json' at '/node_modules/just-types-versions/package.json'. + ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +@@= skipped -22, +18 lines =@@ + File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +-======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -25, +25 lines =@@ + Matched 'exports' condition 'types'. + Using 'exports' subpath './yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -15, +16 lines =@@ + Matched 'exports' condition 'types@>=4'. + Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types@>=4'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -30, +31 lines =@@ + Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +@@= skipped -10, +9 lines =@@ + ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +-File '/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. + Using 'exports' subpath './foo' with target './dist/foo.js'. + File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. + File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +@@= skipped -16, +16 lines =@@ + Using 'exports' subpath './foo' with target './dist/foo.js'. + File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. + File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. + 'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +-======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== ++Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. ++======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -36, +38 lines =@@ + Matched 'exports' condition 'types'. + Using 'exports' subpath './yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -15, +16 lines =@@ + Matched 'exports' condition 'types@>=4'. + Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types@>=4'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -29, +30 lines =@@ + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++Found 'package.json' at '/node_modules/just-types-versions/package.json'. ++'package.json' has a 'typesVersions' field with version-specific path mappings. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. + ======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json new file mode 100644 index 0000000000..851e28cb88 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json @@ -0,0 +1,210 @@ +======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/nope' was not resolved. ======== +======== Resolving module 'exports-and-types-versions/yep' from '/main.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath './yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types@>=4'. +Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types@>=4'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-nah' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/versioned-nah' was not resolved. ======== +======== Resolving module 'just-types-versions/foo' from '/main.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. +======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== +======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './foo' with target './dist/foo.js'. +File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. +File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Export specifier './nope' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/nope' was not resolved. ======== +======== Resolving module 'exports-and-types-versions/yep' from '/main.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types'. +Using 'exports' subpath './yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-yep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'types@>=4'. +Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. +File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'types@>=4'. +Exiting conditional exports. +Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== +======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'exports-and-types-versions/versioned-nah' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'types@<4'. +Exiting conditional exports. +Export specifier './versioned-nah' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. +======== Module name 'exports-and-types-versions/versioned-nah' was not resolved. ======== +======== Resolving module 'just-types-versions/foo' from '/main.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/just-types-versions/package.json'. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +Module name 'foo', matched pattern 'foo'. +Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. +File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. +======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff new file mode 100644 index 0000000000..e0b491e0ad --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff @@ -0,0 +1,305 @@ +--- old.nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json ++++ new.nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/exports-and-types-versions/types/package.json' does not exist. +-Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +-File '/node_modules/just-types-versions/types/package.json' does not exist. +-Found 'package.json' at '/node_modules/just-types-versions/package.json'. + ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/package.json' does not exist. ++File '/package.json' does not exist according to earlier cached lookups. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +@@= skipped -22, +18 lines =@@ + File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +-======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -25, +25 lines =@@ + Matched 'exports' condition 'types'. + Using 'exports' subpath './yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -15, +16 lines =@@ + Matched 'exports' condition 'types@>=4'. + Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types@>=4'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +@@= skipped -30, +31 lines =@@ + Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +@@= skipped -10, +9 lines =@@ + ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +-File '/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. + Using 'exports' subpath './foo' with target './dist/foo.js'. + File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. + File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. +@@= skipped -16, +16 lines =@@ + Using 'exports' subpath './foo' with target './dist/foo.js'. + File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. + File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. + 'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. +-======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== ++Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. ++======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -36, +38 lines =@@ + Matched 'exports' condition 'types'. + Using 'exports' subpath './yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -15, +16 lines =@@ + Matched 'exports' condition 'types@>=4'. + Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. + File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'types@>=4'. + Exiting conditional exports. + Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. +-======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== ++======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== + ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -29, +30 lines =@@ + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. ++Found 'package.json' at '/node_modules/just-types-versions/package.json'. ++'package.json' has a 'typesVersions' field with version-specific path mappings. ++'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. + Module name 'foo', matched pattern 'foo'. + Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. + File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. + ======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json new file mode 100644 index 0000000000..cc02d686fa --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json @@ -0,0 +1,72 @@ +======== Resolving module '#cjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +======== Resolving module '#cjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/package.json'. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +======== Resolving module '#cjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff new file mode 100644 index 0000000000..0d3d09bd33 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff @@ -0,0 +1,172 @@ +--- old.nodeModulesPackageImports(module=node16).trace.json ++++ new.nodeModulesPackageImports(module=node16).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module '#cjs' from '/.src/index.ts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -25, +24 lines =@@ + ======== Resolving module '#cjs' from '/.src/index.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/package.json'. + Using 'imports' subpath '#cjs' with target './index.cjs'. + File name '/.src/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/index.cts' exists - use it as a name resolution result. +@@= skipped -22, +22 lines =@@ + File '/.src/index.ts' exists - use it as a name resolution result. + ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== + ======== Resolving module '#cjs' from '/.src/index.mts'. ======== +-Resolution for module '#cjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#cjs' with target './index.cjs'. ++File name '/.src/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/index.cts' exists - use it as a name resolution result. + ======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== + ======== Resolving module '#mjs' from '/.src/index.mts'. ======== +-Resolution for module '#mjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#mjs' with target './index.mjs'. ++File name '/.src/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/index.mts' exists - use it as a name resolution result. + ======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== + ======== Resolving module '#type' from '/.src/index.mts'. ======== +-Resolution for module '#type' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#type' with target './index.js'. ++File name '/.src/index.js' has a '.js' extension - stripping it. ++File '/.src/index.ts' exists - use it as a name resolution result. + ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json new file mode 100644 index 0000000000..cc02d686fa --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json @@ -0,0 +1,72 @@ +======== Resolving module '#cjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +======== Resolving module '#cjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/package.json'. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +======== Resolving module '#cjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff new file mode 100644 index 0000000000..93a47ae635 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff @@ -0,0 +1,172 @@ +--- old.nodeModulesPackageImports(module=node18).trace.json ++++ new.nodeModulesPackageImports(module=node18).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module '#cjs' from '/.src/index.ts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -25, +24 lines =@@ + ======== Resolving module '#cjs' from '/.src/index.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/package.json'. + Using 'imports' subpath '#cjs' with target './index.cjs'. + File name '/.src/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/index.cts' exists - use it as a name resolution result. +@@= skipped -22, +22 lines =@@ + File '/.src/index.ts' exists - use it as a name resolution result. + ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== + ======== Resolving module '#cjs' from '/.src/index.mts'. ======== +-Resolution for module '#cjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#cjs' with target './index.cjs'. ++File name '/.src/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/index.cts' exists - use it as a name resolution result. + ======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== + ======== Resolving module '#mjs' from '/.src/index.mts'. ======== +-Resolution for module '#mjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#mjs' with target './index.mjs'. ++File name '/.src/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/index.mts' exists - use it as a name resolution result. + ======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== + ======== Resolving module '#type' from '/.src/index.mts'. ======== +-Resolution for module '#type' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#type' with target './index.js'. ++File name '/.src/index.js' has a '.js' extension - stripping it. ++File '/.src/index.ts' exists - use it as a name resolution result. + ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json new file mode 100644 index 0000000000..6e070a05d0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json @@ -0,0 +1,72 @@ +======== Resolving module '#cjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +======== Resolving module '#cjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/package.json'. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +======== Resolving module '#cjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#cjs' with target './index.cjs'. +File name '/.src/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/index.cts' exists - use it as a name resolution result. +======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== +======== Resolving module '#mjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#mjs' with target './index.mjs'. +File name '/.src/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/index.mts' exists - use it as a name resolution result. +======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== +======== Resolving module '#type' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Using 'imports' subpath '#type' with target './index.js'. +File name '/.src/index.js' has a '.js' extension - stripping it. +File '/.src/index.ts' exists - use it as a name resolution result. +======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff new file mode 100644 index 0000000000..fa3650f416 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff @@ -0,0 +1,214 @@ +--- old.nodeModulesPackageImports(module=nodenext).trace.json ++++ new.nodeModulesPackageImports(module=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module '#cjs' from '/.src/index.ts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -25, +24 lines =@@ + ======== Resolving module '#cjs' from '/.src/index.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/package.json'. + Using 'imports' subpath '#cjs' with target './index.cjs'. + File name '/.src/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/index.cts' exists - use it as a name resolution result. +@@= skipped -22, +22 lines =@@ + File '/.src/index.ts' exists - use it as a name resolution result. + ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== + ======== Resolving module '#cjs' from '/.src/index.mts'. ======== +-Resolution for module '#cjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#cjs' with target './index.cjs'. ++File name '/.src/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/index.cts' exists - use it as a name resolution result. + ======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== + ======== Resolving module '#mjs' from '/.src/index.mts'. ======== +-Resolution for module '#mjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#mjs' with target './index.mjs'. ++File name '/.src/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/index.mts' exists - use it as a name resolution result. + ======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== + ======== Resolving module '#type' from '/.src/index.mts'. ======== +-Resolution for module '#type' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Using 'imports' subpath '#type' with target './index.js'. ++File name '/.src/index.js' has a '.js' extension - stripping it. ++File '/.src/index.ts' exists - use it as a name resolution result. + ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json new file mode 100644 index 0000000000..4ee363b110 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json @@ -0,0 +1,213 @@ +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/node_modules/inner/package.json'. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/package.json'. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff new file mode 100644 index 0000000000..4872206544 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff @@ -0,0 +1,310 @@ +--- old.nodeModulesPackagePatternExportsTrailers(module=node16).trace.json ++++ new.nodeModulesPackagePatternExportsTrailers(module=node16).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/.src/package.json' exists according to earlier cached lookups. + Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Found 'package.json' at '/.src/node_modules/inner/package.json'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. + Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. +@@= skipped -41, +40 lines =@@ + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/node_modules/inner/package.json'. + Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. + File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -14, +15 lines =@@ + File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. + File '/.src/node_modules/inner/index.mts' does not exist. + File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -10, +11 lines =@@ + File '/.src/node_modules/inner/index.ts' does not exist. + File '/.src/node_modules/inner/index.tsx' does not exist. + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -9, +10 lines =@@ + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. + File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -9, +10 lines =@@ + File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. + File '/.src/node_modules/inner/index.mts' does not exist. + File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -10, +11 lines =@@ + File '/.src/node_modules/inner/index.ts' does not exist. + File '/.src/node_modules/inner/index.tsx' does not exist. + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. ++File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/node_modules/inner/index.cts' does not exist. ++File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. ++File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/node_modules/inner/index.mts' does not exist. ++File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './js/*.js' with target './index.js'. ++File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. ++File '/.src/node_modules/inner/index.ts' does not exist. ++File '/.src/node_modules/inner/index.tsx' does not exist. ++File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. ++File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/node_modules/inner/index.cts' does not exist. ++File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. ++File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/node_modules/inner/index.mts' does not exist. ++File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './js/*.js' with target './index.js'. ++File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. ++File '/.src/node_modules/inner/index.ts' does not exist. ++File '/.src/node_modules/inner/index.tsx' does not exist. ++File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/package.json'. + Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +@@= skipped -60, +113 lines =@@ + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json new file mode 100644 index 0000000000..4ee363b110 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json @@ -0,0 +1,213 @@ +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/node_modules/inner/package.json'. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/package.json'. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff new file mode 100644 index 0000000000..487973a1b5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff @@ -0,0 +1,310 @@ +--- old.nodeModulesPackagePatternExportsTrailers(module=node18).trace.json ++++ new.nodeModulesPackagePatternExportsTrailers(module=node18).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/.src/package.json' exists according to earlier cached lookups. + Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Found 'package.json' at '/.src/node_modules/inner/package.json'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. + Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. +@@= skipped -41, +40 lines =@@ + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/node_modules/inner/package.json'. + Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. + File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -14, +15 lines =@@ + File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. + File '/.src/node_modules/inner/index.mts' does not exist. + File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -10, +11 lines =@@ + File '/.src/node_modules/inner/index.ts' does not exist. + File '/.src/node_modules/inner/index.tsx' does not exist. + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -9, +10 lines =@@ + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. + File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -9, +10 lines =@@ + File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. + File '/.src/node_modules/inner/index.mts' does not exist. + File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'Node16'. +@@= skipped -10, +11 lines =@@ + File '/.src/node_modules/inner/index.ts' does not exist. + File '/.src/node_modules/inner/index.tsx' does not exist. + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. ++File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/node_modules/inner/index.cts' does not exist. ++File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. ++File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/node_modules/inner/index.mts' does not exist. ++File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './js/*.js' with target './index.js'. ++File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. ++File '/.src/node_modules/inner/index.ts' does not exist. ++File '/.src/node_modules/inner/index.tsx' does not exist. ++File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. ++File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/node_modules/inner/index.cts' does not exist. ++File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. ++File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/node_modules/inner/index.mts' does not exist. ++File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'Node16'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './js/*.js' with target './index.js'. ++File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. ++File '/.src/node_modules/inner/index.ts' does not exist. ++File '/.src/node_modules/inner/index.tsx' does not exist. ++File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== + Module resolution kind is not specified, using 'Node16'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/package.json'. + Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +@@= skipped -60, +113 lines =@@ + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json new file mode 100644 index 0000000000..07a1a40899 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json @@ -0,0 +1,213 @@ +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/node_modules/inner/package.json'. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +Found 'package.json' at '/.src/package.json'. +Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. +File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. +File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. +======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. +File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. +File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. +======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +======== Resolving module 'inner/js/index.js' from '/.src/index.cts'. ======== +Module resolution kind is not specified, using 'NodeNext'. +Resolving in CJS mode with conditions 'require', 'types', 'node'. +File '/.src/package.json' exists according to earlier cached lookups. +Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Using 'exports' subpath './js/*.js' with target './index.js'. +File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. +File '/.src/node_modules/inner/index.ts' does not exist. +File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. +======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff new file mode 100644 index 0000000000..e5972ea8af --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff @@ -0,0 +1,352 @@ +--- old.nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json ++++ new.nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/.src/package.json'. + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/.src/package.json' exists according to earlier cached lookups. + Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-Found 'package.json' at '/.src/node_modules/inner/package.json'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. + Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. +@@= skipped -41, +40 lines =@@ + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/node_modules/inner/package.json'. + Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. + File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. +@@= skipped -14, +15 lines =@@ + File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. + File '/.src/node_modules/inner/index.mts' does not exist. + File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. +@@= skipped -10, +11 lines =@@ + File '/.src/node_modules/inner/index.ts' does not exist. + File '/.src/node_modules/inner/index.tsx' does not exist. + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. +@@= skipped -9, +10 lines =@@ + File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. + File '/.src/node_modules/inner/index.cts' does not exist. + File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. +@@= skipped -9, +10 lines =@@ + File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. + File '/.src/node_modules/inner/index.mts' does not exist. + File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== + Module resolution kind is not specified, using 'NodeNext'. +@@= skipped -10, +11 lines =@@ + File '/.src/node_modules/inner/index.ts' does not exist. + File '/.src/node_modules/inner/index.tsx' does not exist. + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. ++File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/node_modules/inner/index.cts' does not exist. ++File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. ++File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/node_modules/inner/index.mts' does not exist. ++File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in CJS mode with conditions 'require', 'types', 'node'. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './js/*.js' with target './index.js'. ++File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. ++File '/.src/node_modules/inner/index.ts' does not exist. ++File '/.src/node_modules/inner/index.tsx' does not exist. ++File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. ++File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. ++File '/.src/node_modules/inner/index.cts' does not exist. ++File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. + ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== + ======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. ++File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. ++File '/.src/node_modules/inner/index.mts' does not exist. ++File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. + ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== + ======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src'. ++Module resolution kind is not specified, using 'NodeNext'. ++Resolving in ESM mode with conditions 'import', 'types', 'node'. ++File '/.src/package.json' exists according to earlier cached lookups. ++Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. ++Using 'exports' subpath './js/*.js' with target './index.js'. ++File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. ++File '/.src/node_modules/inner/index.ts' does not exist. ++File '/.src/node_modules/inner/index.tsx' does not exist. ++File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== + ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== + Module resolution kind is not specified, using 'NodeNext'. + Resolving in CJS mode with conditions 'require', 'types', 'node'. +-File '/.src/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/.src/package.json'. + Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +@@= skipped -60, +113 lines =@@ + File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. + ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== +-======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== +-======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== +-Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. +-======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json new file mode 100644 index 0000000000..fb59dd4cab --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json @@ -0,0 +1,108 @@ +======== Resolving module 'foo' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +File '/node_modules/foo.ts' does not exist. +File '/node_modules/foo.tsx' does not exist. +File '/node_modules/foo.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: TypeScript, Declaration. +File '/node_modules/foo/oof.ts' does not exist. +File '/node_modules/foo/oof.tsx' does not exist. +File '/node_modules/foo/oof.d.ts' does not exist. +Directory '/node_modules/foo/oof' does not exist, skipping all lookups in it. +File '/node_modules/foo/index.ts' does not exist. +File '/node_modules/foo/index.tsx' does not exist. +File '/node_modules/foo/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +File '/node_modules/foo.js' does not exist. +File '/node_modules/foo.jsx' does not exist. +'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. +File '/node_modules/foo/oof.js' exists - use it as a name resolution result. +Resolving real path for '/node_modules/foo/oof.js', result '/node_modules/foo/oof.js'. +======== Module name 'foo' was successfully resolved to '/node_modules/foo/oof.js'. ======== +======== Resolving module 'bar' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/bar/package.json'. +File '/node_modules/bar.ts' does not exist. +File '/node_modules/bar.tsx' does not exist. +File '/node_modules/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. +File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. +File '/node_modules/bar/rab.ts' does not exist. +File '/node_modules/bar/rab.tsx' does not exist. +File '/node_modules/bar/rab.d.ts' does not exist. +Loading module as file / folder, candidate module location '/node_modules/bar/rab.js', target file types: TypeScript, Declaration. +File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. +File '/node_modules/bar/rab.ts' does not exist. +File '/node_modules/bar/rab.tsx' does not exist. +File '/node_modules/bar/rab.d.ts' does not exist. +File '/node_modules/bar/rab.js.ts' does not exist. +File '/node_modules/bar/rab.js.tsx' does not exist. +File '/node_modules/bar/rab.js.d.ts' does not exist. +Directory '/node_modules/bar/rab.js' does not exist, skipping all lookups in it. +File '/node_modules/bar/index.ts' does not exist. +File '/node_modules/bar/index.tsx' does not exist. +File '/node_modules/bar/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/bar/package.json' exists according to earlier cached lookups. +File '/node_modules/bar.js' does not exist. +File '/node_modules/bar.jsx' does not exist. +'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. +File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. +File '/node_modules/bar/rab.js' exists - use it as a name resolution result. +Resolving real path for '/node_modules/bar/rab.js', result '/node_modules/bar/rab.js'. +======== Module name 'bar' was successfully resolved to '/node_modules/bar/rab.js'. ======== +======== Resolving module 'baz' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/baz/package.json'. +File '/node_modules/baz.ts' does not exist. +File '/node_modules/baz.tsx' does not exist. +File '/node_modules/baz.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. +Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: TypeScript, Declaration. +File '/node_modules/baz/zab.ts' does not exist. +File '/node_modules/baz/zab.tsx' does not exist. +File '/node_modules/baz/zab.d.ts' does not exist. +File '/node_modules/baz/zab/index.ts' does not exist. +File '/node_modules/baz/zab/index.tsx' does not exist. +File '/node_modules/baz/zab/index.d.ts' does not exist. +File '/node_modules/baz/index.ts' does not exist. +File '/node_modules/baz/index.tsx' does not exist. +File '/node_modules/baz/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/baz/package.json' exists according to earlier cached lookups. +File '/node_modules/baz.js' does not exist. +File '/node_modules/baz.jsx' does not exist. +'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. +Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript, JSON. +File '/node_modules/baz/zab.js' does not exist. +File '/node_modules/baz/zab.jsx' does not exist. +File '/node_modules/baz/zab/index.js' exists - use it as a name resolution result. +Resolving real path for '/node_modules/baz/zab/index.js', result '/node_modules/baz/zab/index.js'. +======== Module name 'baz' was successfully resolved to '/node_modules/baz/zab/index.js'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff new file mode 100644 index 0000000000..e13d8d0270 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff @@ -0,0 +1,149 @@ +--- old.packageJsonMain.trace.json ++++ new.packageJsonMain.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/foo/package.json'. + File '/node_modules/foo.ts' does not exist. +@@= skipped -18, +20 lines =@@ + File '/node_modules/foo/index.tsx' does not exist. + File '/node_modules/foo/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/foo/package.json' exists according to earlier cached lookups. + File '/node_modules/foo.js' does not exist. + File '/node_modules/foo.jsx' does not exist. + 'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +-Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript. ++Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. + File '/node_modules/foo/oof.js' exists - use it as a name resolution result. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-File '/node_modules/foo.ts' does not exist. +-File '/node_modules/foo.tsx' does not exist. +-File '/node_modules/foo.d.ts' does not exist. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +-Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: TypeScript, Declaration. +-File '/node_modules/foo/oof.ts' does not exist. +-File '/node_modules/foo/oof.tsx' does not exist. +-File '/node_modules/foo/oof.d.ts' does not exist. +-Directory '/node_modules/foo/oof' does not exist, skipping all lookups in it. +-File '/node_modules/foo/index.ts' does not exist. +-File '/node_modules/foo/index.tsx' does not exist. +-File '/node_modules/foo/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Resolving real path for '/node_modules/foo/oof.js', result '/node_modules/foo/oof.js'. + ======== Module name 'foo' was successfully resolved to '/node_modules/foo/oof.js'. ======== + ======== Resolving module 'bar' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/bar/package.json'. + File '/node_modules/bar.ts' does not exist. +@@= skipped -58, +40 lines =@@ + File '/node_modules/bar/index.tsx' does not exist. + File '/node_modules/bar/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/bar/package.json' exists according to earlier cached lookups. + File '/node_modules/bar.js' does not exist. + File '/node_modules/bar.jsx' does not exist. + 'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. + File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. + File '/node_modules/bar/rab.js' exists - use it as a name resolution result. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/bar/package.json' exists according to earlier cached lookups. +-File '/node_modules/bar.ts' does not exist. +-File '/node_modules/bar.tsx' does not exist. +-File '/node_modules/bar.d.ts' does not exist. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. +-File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. +-File '/node_modules/bar/rab.ts' does not exist. +-File '/node_modules/bar/rab.tsx' does not exist. +-File '/node_modules/bar/rab.d.ts' does not exist. +-Loading module as file / folder, candidate module location '/node_modules/bar/rab.js', target file types: TypeScript, Declaration. +-File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. +-File '/node_modules/bar/rab.ts' does not exist. +-File '/node_modules/bar/rab.tsx' does not exist. +-File '/node_modules/bar/rab.d.ts' does not exist. +-File '/node_modules/bar/rab.js.ts' does not exist. +-File '/node_modules/bar/rab.js.tsx' does not exist. +-File '/node_modules/bar/rab.js.d.ts' does not exist. +-Directory '/node_modules/bar/rab.js' does not exist, skipping all lookups in it. +-File '/node_modules/bar/index.ts' does not exist. +-File '/node_modules/bar/index.tsx' does not exist. +-File '/node_modules/bar/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Resolving real path for '/node_modules/bar/rab.js', result '/node_modules/bar/rab.js'. + ======== Module name 'bar' was successfully resolved to '/node_modules/bar/rab.js'. ======== + ======== Resolving module 'baz' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/baz/package.json'. + File '/node_modules/baz.ts' does not exist. +@@= skipped -60, +34 lines =@@ + File '/node_modules/baz/index.tsx' does not exist. + File '/node_modules/baz/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'baz' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/baz/package.json' exists according to earlier cached lookups. + File '/node_modules/baz.js' does not exist. + File '/node_modules/baz.jsx' does not exist. + 'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. +-Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript. ++Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript, JSON. + File '/node_modules/baz/zab.js' does not exist. + File '/node_modules/baz/zab.jsx' does not exist. + File '/node_modules/baz/zab/index.js' exists - use it as a name resolution result. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/baz/package.json' exists according to earlier cached lookups. +-File '/node_modules/baz.ts' does not exist. +-File '/node_modules/baz.tsx' does not exist. +-File '/node_modules/baz.d.ts' does not exist. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. +-Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: TypeScript, Declaration. +-File '/node_modules/baz/zab.ts' does not exist. +-File '/node_modules/baz/zab.tsx' does not exist. +-File '/node_modules/baz/zab.d.ts' does not exist. +-File '/node_modules/baz/zab/index.ts' does not exist. +-File '/node_modules/baz/zab/index.tsx' does not exist. +-File '/node_modules/baz/zab/index.d.ts' does not exist. +-File '/node_modules/baz/index.ts' does not exist. +-File '/node_modules/baz/index.tsx' does not exist. +-File '/node_modules/baz/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Resolving real path for '/node_modules/baz/zab/index.js', result '/node_modules/baz/zab/index.js'. + ======== Module name 'baz' was successfully resolved to '/node_modules/baz/zab/index.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json new file mode 100644 index 0000000000..654fc3fe5c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json @@ -0,0 +1,38 @@ +======== Resolving module 'foo' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +File '/node_modules/foo.ts' does not exist. +File '/node_modules/foo.tsx' does not exist. +File '/node_modules/foo.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: TypeScript, Declaration. +File '/node_modules/foo/oof.ts' does not exist. +File '/node_modules/foo/oof.tsx' does not exist. +File '/node_modules/foo/oof.d.ts' does not exist. +File '/node_modules/foo/oof/index.ts' does not exist. +File '/node_modules/foo/oof/index.tsx' does not exist. +File '/node_modules/foo/oof/index.d.ts' does not exist. +File '/node_modules/foo/index.ts' does not exist. +File '/node_modules/foo/index.tsx' does not exist. +File '/node_modules/foo/index.d.ts' does not exist. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +File '/node_modules/foo.js' does not exist. +File '/node_modules/foo.jsx' does not exist. +'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. +File '/node_modules/foo/oof.js' does not exist. +File '/node_modules/foo/oof.jsx' does not exist. +File '/node_modules/foo/oof/index.js' does not exist. +File '/node_modules/foo/oof/index.jsx' does not exist. +File '/node_modules/foo/index.js' does not exist. +File '/node_modules/foo/index.jsx' does not exist. +======== Module name 'foo' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff new file mode 100644 index 0000000000..87e26d59f5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff @@ -0,0 +1,54 @@ +--- old.packageJsonMain_isNonRecursive.trace.json ++++ new.packageJsonMain_isNonRecursive.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'foo' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/node_modules/foo/package.json'. + File '/node_modules/foo.ts' does not exist. +@@= skipped -20, +22 lines =@@ + File '/node_modules/foo/index.tsx' does not exist. + File '/node_modules/foo/index.d.ts' does not exist. + Directory '/node_modules/@types' does not exist, skipping all lookups in it. +-Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/node_modules/foo/package.json' exists according to earlier cached lookups. + File '/node_modules/foo.js' does not exist. + File '/node_modules/foo.jsx' does not exist. + 'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +-Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript. ++Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. + File '/node_modules/foo/oof.js' does not exist. + File '/node_modules/foo/oof.jsx' does not exist. + File '/node_modules/foo/oof/index.js' does not exist. + File '/node_modules/foo/oof/index.jsx' does not exist. + File '/node_modules/foo/index.js' does not exist. + File '/node_modules/foo/index.jsx' does not exist. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. +-File '/node_modules/foo.ts' does not exist. +-File '/node_modules/foo.tsx' does not exist. +-File '/node_modules/foo.d.ts' does not exist. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. +-Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: TypeScript, Declaration. +-File '/node_modules/foo/oof.ts' does not exist. +-File '/node_modules/foo/oof.tsx' does not exist. +-File '/node_modules/foo/oof.d.ts' does not exist. +-File '/node_modules/foo/oof/index.ts' does not exist. +-File '/node_modules/foo/oof/index.tsx' does not exist. +-File '/node_modules/foo/oof/index.d.ts' does not exist. +-File '/node_modules/foo/index.ts' does not exist. +-File '/node_modules/foo/index.tsx' does not exist. +-File '/node_modules/foo/index.d.ts' does not exist. +-Directory '/node_modules/@types' does not exist, skipping all lookups in it. + ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json b/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json new file mode 100644 index 0000000000..cc9f657434 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json @@ -0,0 +1,38 @@ +======== Resolving module 'pkg' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/pkg/package.json'. +Entering conditional exports. +Saw non-matching condition 'import'. +Matched 'exports' condition 'require'. +Using 'exports' subpath '.' with target './index.js'. +File name '/node_modules/pkg/index.js' has a '.js' extension - stripping it. +File '/node_modules/pkg/index.ts' does not exist. +File '/node_modules/pkg/index.tsx' does not exist. +File '/node_modules/pkg/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'require'. +Exiting conditional exports. +Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'. +======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts' with Package ID 'pkg@1.0.0'. ======== +======== Resolving module 'pkg' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/pkg/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/pkg/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/pkg/index.mts' does not exist. +File '/node_modules/pkg/index.d.mts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/pkg/index.d.mts', result '/node_modules/pkg/index.d.mts'. +======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.mts' with Package ID 'pkg@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff new file mode 100644 index 0000000000..95fa7d2d14 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff @@ -0,0 +1,34 @@ +--- old.resolutionModeCache.trace.json ++++ new.resolutionModeCache.trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/pkg/package.json'. + ======== Resolving module 'pkg' from '/index.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'require', 'types'. + File '/package.json' does not exist. + Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/pkg/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/pkg/package.json'. + Entering conditional exports. + Saw non-matching condition 'import'. + Matched 'exports' condition 'require'. +@@= skipped -17, +16 lines =@@ + Resolved under condition 'require'. + Exiting conditional exports. + Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'. +-======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts' with Package ID 'pkg/index.d.ts@1.0.0'. ======== ++======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts' with Package ID 'pkg@1.0.0'. ======== + ======== Resolving module 'pkg' from '/index.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -14, +14 lines =@@ + File name '/node_modules/pkg/index.mjs' has a '.mjs' extension - stripping it. + File '/node_modules/pkg/index.mts' does not exist. + File '/node_modules/pkg/index.d.mts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'import'. + Exiting conditional exports. + Resolving real path for '/node_modules/pkg/index.d.mts', result '/node_modules/pkg/index.d.mts'. +-======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.mts' with Package ID 'pkg/index.d.mts@1.0.0'. ======== ++======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.mts' with Package ID 'pkg@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json new file mode 100644 index 0000000000..6c10883493 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json @@ -0,0 +1,120 @@ +======== Resolving module 'foo' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/foo/index.mts' does not exist. +File '/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +File '/node_modules/@types/foo.d.ts' does not exist. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +File '/node_modules/foo.ts' does not exist. +File '/node_modules/foo.tsx' does not exist. +File '/node_modules/foo.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'. +File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo@1.0.0'. ======== +======== Resolving module 'bar' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/bar/index.mts' does not exist. +File '/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/bar/package.json' exists according to earlier cached lookups. +File '/node_modules/bar.ts' does not exist. +File '/node_modules/bar.tsx' does not exist. +File '/node_modules/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'index.js' that references '/node_modules/bar/index.js'. +File name '/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/node_modules/bar/index.ts' does not exist. +File '/node_modules/bar/index.tsx' does not exist. +File '/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/node_modules/bar/index.ts' does not exist. +File '/node_modules/bar/index.tsx' does not exist. +File '/node_modules/bar/index.d.ts' does not exist. +File '/node_modules/bar/index.js.ts' does not exist. +File '/node_modules/bar/index.js.tsx' does not exist. +File '/node_modules/bar/index.js.d.ts' does not exist. +Directory '/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/node_modules/bar/index.ts' does not exist. +File '/node_modules/bar/index.tsx' does not exist. +File '/node_modules/bar/index.d.ts' does not exist. +File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +File '/node_modules/@types/bar.d.ts' does not exist. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. +File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar@1.0.0'. ======== +======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/node_modules/@types/bar/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. +File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. +======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff new file mode 100644 index 0000000000..de7e01f5c9 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff @@ -0,0 +1,69 @@ +--- old.resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json ++++ new.resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/foo/package.json'. +-Found 'package.json' at '/node_modules/@types/bar/package.json'. + ======== Resolving module 'foo' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/foo/package.json'. + Entering conditional exports. + Matched 'exports' condition 'import'. + Using 'exports' subpath '.' with target './index.mjs'. +@@= skipped -26, +24 lines =@@ + 'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'import'. + Exiting conditional exports. ++Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +@@= skipped -12, +13 lines =@@ + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'. + File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. +-======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== ++'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. ++======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo@1.0.0'. ======== + ======== Resolving module 'bar' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -32, +33 lines =@@ + 'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'import'. + Exiting conditional exports. ++Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +@@= skipped -30, +31 lines =@@ + File '/node_modules/bar/index.d.ts' does not exist. + File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. + File '/node_modules/@types/bar.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. + File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. +-======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== ++Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. ++======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar@1.0.0'. ======== + ======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +-File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@types/bar/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. + File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. +-======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ======== ++======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json new file mode 100644 index 0000000000..b045c091db --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json @@ -0,0 +1,109 @@ +======== Resolving module 'foo' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/foo/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/foo/index.mts' does not exist. +File '/node_modules/foo/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/foo/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/foo/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'. +File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. +======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo@1.0.0'. ======== +======== Resolving module 'bar' from '/index.mts'. ======== +Explicitly specified module resolution kind: 'Node16'. +Resolving in ESM mode with conditions 'import', 'types', 'node'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/bar/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/bar/index.mts' does not exist. +File '/node_modules/bar/index.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Exiting conditional exports. +File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Saw non-matching condition 'require'. +Exiting conditional exports. +Searching all ancestor node_modules directories for fallback extensions: JavaScript. +File '/node_modules/bar/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './index.mjs'. +File name '/node_modules/bar/index.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/bar/index.mjs' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'import'. +Exiting conditional exports. +Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. +Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' does not have a 'types' field. +'package.json' has 'main' field 'index.js' that references '/node_modules/bar/index.js'. +File name '/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/node_modules/bar/index.ts' does not exist. +File '/node_modules/bar/index.tsx' does not exist. +File '/node_modules/bar/index.d.ts' does not exist. +Loading module as file / folder, candidate module location '/node_modules/bar/index.js', target file types: TypeScript, Declaration. +File name '/node_modules/bar/index.js' has a '.js' extension - stripping it. +File '/node_modules/bar/index.ts' does not exist. +File '/node_modules/bar/index.tsx' does not exist. +File '/node_modules/bar/index.d.ts' does not exist. +File '/node_modules/bar/index.js.ts' does not exist. +File '/node_modules/bar/index.js.tsx' does not exist. +File '/node_modules/bar/index.js.d.ts' does not exist. +Directory '/node_modules/bar/index.js' does not exist, skipping all lookups in it. +File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. +File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. +======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar@1.0.0'. ======== +======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Found 'package.json' at '/node_modules/@types/bar/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. +File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. +======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff new file mode 100644 index 0000000000..7ed2db9c19 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff @@ -0,0 +1,83 @@ +--- old.resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json ++++ new.resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json +@@= skipped -0, +0 lines =@@ +-Found 'package.json' at '/node_modules/foo/package.json'. +-Found 'package.json' at '/node_modules/@types/bar/package.json'. + ======== Resolving module 'foo' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. + File '/package.json' does not exist. + Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/foo/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/foo/package.json'. + Entering conditional exports. + Matched 'exports' condition 'import'. + Using 'exports' subpath '.' with target './index.mjs'. +@@= skipped -25, +23 lines =@@ + 'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'import'. + Exiting conditional exports. ++Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +@@= skipped -9, +10 lines =@@ + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'. + File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. +-======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== ++'package.json' does not have a 'peerDependencies' field. ++Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. ++======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo@1.0.0'. ======== + ======== Resolving module 'bar' from '/index.mts'. ======== + Explicitly specified module resolution kind: 'Node16'. + Resolving in ESM mode with conditions 'import', 'types', 'node'. +@@= skipped -32, +33 lines =@@ + 'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'import'. + Exiting conditional exports. ++Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. + Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. + File '/package.json' does not exist according to earlier cached lookups. + Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +@@= skipped -23, +24 lines =@@ + File '/node_modules/bar/index.js.d.ts' does not exist. + Directory '/node_modules/bar/index.js' does not exist, skipping all lookups in it. + File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +-'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. + File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. +-Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. +-======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== ++Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. ++======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar@1.0.0'. ======== + ======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== + Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +-File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@types/bar/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. + File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. +-======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ======== +-File '/.ts/package.json' does not exist. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/.ts/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups." ++======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json b/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json new file mode 100644 index 0000000000..52e7c20137 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json @@ -0,0 +1,45 @@ +======== Resolving module '@cow/boy' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/@cow/boy/package.json' does not exist. +File '/node_modules/@cow/boy.ts' does not exist. +File '/node_modules/@cow/boy.tsx' does not exist. +File '/node_modules/@cow/boy.d.ts' does not exist. +File '/node_modules/@cow/boy/index.ts' does not exist. +File '/node_modules/@cow/boy/index.tsx' does not exist. +File '/node_modules/@cow/boy/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@cow/boy/index.d.ts', result '/node_modules/@cow/boy/index.d.ts'. +======== Module name '@cow/boy' was successfully resolved to '/node_modules/@cow/boy/index.d.ts'. ======== +======== Resolving module '@be/bop' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Scoped package detected, looking in 'be__bop' +File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/be__bop.d.ts' does not exist. +File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'. +======== Module name '@be/bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts'. ======== +======== Resolving module '@be/bop/e/z' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@be/bop/e/z' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Scoped package detected, looking in 'be__bop/e/z' +File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/be__bop/e/z.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/be__bop/e/z.d.ts', result '/node_modules/@types/be__bop/e/z.d.ts'. +======== Module name '@be/bop/e/z' was successfully resolved to '/node_modules/@types/be__bop/e/z.d.ts'. ======== +======== Resolving type reference directive 'be__bop', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/be__bop/package.json' does not exist. +File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'. +======== Type reference directive 'be__bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff b/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff new file mode 100644 index 0000000000..68cb87d51a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff @@ -0,0 +1,64 @@ +--- old.scopedPackages.trace.json ++++ new.scopedPackages.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@cow/boy' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/@cow/boy/package.json' does not exist. + File '/node_modules/@cow/boy.ts' does not exist. +@@= skipped -11, +13 lines =@@ + Resolving real path for '/node_modules/@cow/boy/index.d.ts', result '/node_modules/@cow/boy/index.d.ts'. + ======== Module name '@cow/boy' was successfully resolved to '/node_modules/@cow/boy/index.d.ts'. ======== + ======== Resolving module '@be/bop' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Scoped package detected, looking in 'be__bop' +-File '/node_modules/@types/be__bop/package.json' does not exist. ++File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. + File '/node_modules/@types/be__bop.d.ts' does not exist. + File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'. + ======== Module name '@be/bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts'. ======== + ======== Resolving module '@be/bop/e/z' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module '@be/bop/e/z' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@be/bop/e/z' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Scoped package detected, looking in 'be__bop/e/z' + File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. + File '/node_modules/@types/be__bop/e/z.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/be__bop/e/z.d.ts', result '/node_modules/@types/be__bop/e/z.d.ts'. + ======== Module name '@be/bop/e/z' was successfully resolved to '/node_modules/@types/be__bop/e/z.d.ts'. ======== +-File '/node_modules/@cow/boy/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@cow/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/be__bop/e/package.json' does not exist. +-File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/package.json' does not exist according to earlier cached lookups. +-File '/package.json' does not exist according to earlier cached lookups. ++======== Resolving type reference directive 'be__bop', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++File '/node_modules/@types/be__bop/package.json' does not exist. ++File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'. ++======== Type reference directive 'be__bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json new file mode 100644 index 0000000000..ad6915bbc7 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json @@ -0,0 +1,19 @@ +======== Resolving module '@see/saw' from '/a.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module '@see/saw' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Scoped package detected, looking in 'see__saw' +File '/node_modules/@types/see__saw/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/see__saw.d.ts' does not exist. +File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'. +======== Module name '@see/saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts'. ======== +======== Resolving type reference directive 'see__saw', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== +Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +File '/node_modules/@types/see__saw/package.json' does not exist. +File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'. +======== Type reference directive 'see__saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff new file mode 100644 index 0000000000..e5473085b3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff @@ -0,0 +1,29 @@ +--- old.scopedPackagesClassic.trace.json ++++ new.scopedPackagesClassic.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module '@see/saw' from '/a.ts'. ======== +-Explicitly specified module resolution kind: 'Classic'. +-Searching all ancestor node_modules directories for preferred extensions: Declaration. ++Explicitly specified module resolution kind: 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module '@see/saw' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Scoped package detected, looking in 'see__saw' +-File '/node_modules/@types/see__saw/package.json' does not exist. ++File '/node_modules/@types/see__saw/package.json' does not exist according to earlier cached lookups. + File '/node_modules/@types/see__saw.d.ts' does not exist. + File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'. + ======== Module name '@see/saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts'. ======== +-File '/node_modules/@types/see__saw/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. ++======== Resolving type reference directive 'see__saw', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== ++Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. ++Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++File '/node_modules/@types/see__saw/package.json' does not exist. ++File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'. ++======== Type reference directive 'see__saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json new file mode 100644 index 0000000000..9999e1b66b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json @@ -0,0 +1,50 @@ +======== Resolving module 'acorn-walk' from '/node_modules/acorn-walk/dist/walk.d.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/node_modules/acorn-walk/dist/package.json' does not exist according to earlier cached lookups. +File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './dist/walk.mjs'. +File name '/node_modules/acorn-walk/dist/walk.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/acorn-walk/dist/walk.mts' does not exist. +File '/node_modules/acorn-walk/dist/walk.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './dist/walk.js'. +File name '/node_modules/acorn-walk/dist/walk.js' has a '.js' extension - stripping it. +File '/node_modules/acorn-walk/dist/walk.ts' does not exist. +File '/node_modules/acorn-walk/dist/walk.tsx' does not exist. +File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'. +======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk@8.2.0'. ======== +======== Resolving module 'acorn-walk' from '/index.ts'. ======== +Explicitly specified module resolution kind: 'Bundler'. +Resolving in CJS mode with conditions 'import', 'types'. +File '/package.json' does not exist. +Loading module 'acorn-walk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/node_modules/acorn-walk/package.json'. +Entering conditional exports. +Matched 'exports' condition 'import'. +Using 'exports' subpath '.' with target './dist/walk.mjs'. +File name '/node_modules/acorn-walk/dist/walk.mjs' has a '.mjs' extension - stripping it. +File '/node_modules/acorn-walk/dist/walk.mts' does not exist. +File '/node_modules/acorn-walk/dist/walk.d.mts' does not exist. +Failed to resolve under condition 'import'. +Saw non-matching condition 'require'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './dist/walk.js'. +File name '/node_modules/acorn-walk/dist/walk.js' has a '.js' extension - stripping it. +File '/node_modules/acorn-walk/dist/walk.ts' does not exist. +File '/node_modules/acorn-walk/dist/walk.tsx' does not exist. +File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolved under condition 'default'. +Exiting conditional exports. +Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'. +======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk@8.2.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff new file mode 100644 index 0000000000..0b8ad63fcd --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff @@ -0,0 +1,36 @@ +--- old.selfNameModuleAugmentation.trace.json ++++ new.selfNameModuleAugmentation.trace.json +@@= skipped -0, +0 lines =@@ +-File '/node_modules/acorn-walk/dist/package.json' does not exist. +-Found 'package.json' at '/node_modules/acorn-walk/package.json'. + ======== Resolving module 'acorn-walk' from '/node_modules/acorn-walk/dist/walk.d.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. +@@= skipped -21, +19 lines =@@ + 'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'default'. + Exiting conditional exports. +-======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ======== ++Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'. ++======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk@8.2.0'. ======== + ======== Resolving module 'acorn-walk' from '/index.ts'. ======== + Explicitly specified module resolution kind: 'Bundler'. + Resolving in CJS mode with conditions 'import', 'types'. + File '/package.json' does not exist. + Loading module 'acorn-walk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/acorn-walk/package.json'. + Entering conditional exports. + Matched 'exports' condition 'import'. + Using 'exports' subpath '.' with target './dist/walk.mjs'. +@@= skipped -22, +23 lines =@@ + File '/node_modules/acorn-walk/dist/walk.ts' does not exist. + File '/node_modules/acorn-walk/dist/walk.tsx' does not exist. + File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolved under condition 'default'. + Exiting conditional exports. + Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'. +-======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ======== ++======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk@8.2.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json new file mode 100644 index 0000000000..387ace26b1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json @@ -0,0 +1,71 @@ +======== Resolving module 'ext' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/.src/node_modules/ext/package.json'. +File '/.src/node_modules/ext.ts' does not exist. +File '/.src/node_modules/ext.tsx' does not exist. +File '/.src/node_modules/ext.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/other.ts' does not exist. +File '/.src/node_modules/ext/other.tsx' does not exist. +File '/.src/node_modules/ext/other.d.ts' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.js' does not exist. +File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. +File '/.src/node_modules/ext/other.js' does not exist. +File '/.src/node_modules/ext/other.jsx' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'ext/other' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff new file mode 100644 index 0000000000..050bbee24e --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff @@ -0,0 +1,105 @@ +--- old.typesVersions.ambientModules.trace.json ++++ new.typesVersions.ambientModules.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'ext' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/.src/node_modules/ext/package.json'. + File '/.src/node_modules/ext.ts' does not exist. +@@= skipped -8, +11 lines =@@ + 'package.json' has a 'typesVersions' field with version-specific path mappings. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +@@= skipped -9, +9 lines =@@ + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +-======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== ++======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. + File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. + File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. ++File '/.src/node_modules/ext/other.ts' does not exist. ++File '/.src/node_modules/ext/other.tsx' does not exist. ++File '/.src/node_modules/ext/other.d.ts' does not exist. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. ++Module name 'index', matched pattern '*'. ++Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Loading module 'ext/other' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.js' does not exist. + File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. +-Module name 'index', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. +-Module name 'other', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +-File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +-File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +-File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. +-Module name 'index', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. +-Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. ++Module name 'index', matched pattern '*'. ++Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. ++File '/.src/node_modules/ext/other.js' does not exist. ++File '/.src/node_modules/ext/other.jsx' does not exist. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. ++Module name 'index', matched pattern '*'. ++Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'ext/other' was not resolved. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json new file mode 100644 index 0000000000..f7084a863a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'a' from '/b/user.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/b/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/b/node_modules' does not exist, skipping all lookups in it. +Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/b/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'a' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff new file mode 100644 index 0000000000..e2ba45b880 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff @@ -0,0 +1,38 @@ +--- old.typesVersions.emptyTypes.trace.json ++++ new.typesVersions.emptyTypes.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'a' from '/b/user.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'. +-Resolving module name 'a' relative to base url '/' - '/a'. +-Loading module as file / folder, candidate module location '/a', target file types: TypeScript, Declaration. +-File '/a.ts' does not exist. +-File '/a.tsx' does not exist. +-File '/a.d.ts' does not exist. +-Found 'package.json' at '/a/package.json'. +-'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' does not have a 'typings' field. +-'package.json' had a falsy 'types' field. +-'package.json' does not have a 'main' field. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. +-Module name 'index', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/a/ts3.1/index', target file types: TypeScript, Declaration. +-File '/a/ts3.1/index.ts' does not exist. +-File '/a/ts3.1/index.tsx' does not exist. +-File '/a/ts3.1/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'a' was successfully resolved to '/a/ts3.1/index.d.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/b/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json new file mode 100644 index 0000000000..f7084a863a --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json @@ -0,0 +1,15 @@ +======== Resolving module 'a' from '/b/user.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/b/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Directory '/b/node_modules' does not exist, skipping all lookups in it. +Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +Directory '/b/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'a' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff new file mode 100644 index 0000000000..df7a73923b --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff @@ -0,0 +1,38 @@ +--- old.typesVersions.justIndex.trace.json ++++ new.typesVersions.justIndex.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'a' from '/b/user.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'. +-Resolving module name 'a' relative to base url '/' - '/a'. +-Loading module as file / folder, candidate module location '/a', target file types: TypeScript, Declaration. +-File '/a.ts' does not exist. +-File '/a.tsx' does not exist. +-File '/a.d.ts' does not exist. +-Found 'package.json' at '/a/package.json'. +-'package.json' has a 'typesVersions' field with version-specific path mappings. +-'package.json' does not have a 'typings' field. +-'package.json' does not have a 'types' field. +-'package.json' does not have a 'main' field. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. +-Module name 'index', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/a/ts3.1/index', target file types: TypeScript, Declaration. +-File '/a/ts3.1/index.ts' does not exist. +-File '/a/ts3.1/index.tsx' does not exist. +-File '/a/ts3.1/index.d.ts' exists - use it as a name resolution result. +-======== Module name 'a' was successfully resolved to '/a/ts3.1/index.d.ts'. ======== ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/b/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. ++Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. ++Directory '/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. ++Directory '/b/node_modules' does not exist, skipping all lookups in it. ++Directory '/node_modules' does not exist, skipping all lookups in it. ++======== Module name 'a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json new file mode 100644 index 0000000000..43b3446387 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json @@ -0,0 +1,41 @@ +======== Resolving module 'ext' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/.src/node_modules/ext/package.json'. +File '/.src/node_modules/ext.ts' does not exist. +File '/.src/node_modules/ext.tsx' does not exist. +File '/.src/node_modules/ext.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. +======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff new file mode 100644 index 0000000000..2d40166c4c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff @@ -0,0 +1,54 @@ +--- old.typesVersions.multiFile.trace.json ++++ new.typesVersions.multiFile.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'ext' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/.src/node_modules/ext/package.json'. + File '/.src/node_modules/ext.ts' does not exist. +@@= skipped -8, +11 lines =@@ + 'package.json' has a 'typesVersions' field with version-specific path mappings. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +@@= skipped -9, +9 lines =@@ + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +-======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== ++======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. + File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. + File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. +-======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json new file mode 100644 index 0000000000..387ace26b1 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json @@ -0,0 +1,71 @@ +======== Resolving module 'ext' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/.src/node_modules/ext/package.json'. +File '/.src/node_modules/ext.ts' does not exist. +File '/.src/node_modules/ext.tsx' does not exist. +File '/.src/node_modules/ext.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/other.ts' does not exist. +File '/.src/node_modules/ext/other.tsx' does not exist. +File '/.src/node_modules/ext/other.d.ts' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. +Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.js' does not exist. +File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. +File '/.src/node_modules/ext/other.js' does not exist. +File '/.src/node_modules/ext/other.jsx' does not exist. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name 'ext/other' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff new file mode 100644 index 0000000000..bc116b7ae7 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff @@ -0,0 +1,105 @@ +--- old.typesVersionsDeclarationEmit.ambient.trace.json ++++ new.typesVersionsDeclarationEmit.ambient.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'ext' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/.src/node_modules/ext/package.json'. + File '/.src/node_modules/ext.ts' does not exist. +@@= skipped -8, +11 lines =@@ + 'package.json' has a 'typesVersions' field with version-specific path mappings. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +@@= skipped -9, +9 lines =@@ + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +-======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== ++======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. + File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. + File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. ++File '/.src/node_modules/ext/other.ts' does not exist. ++File '/.src/node_modules/ext/other.tsx' does not exist. ++File '/.src/node_modules/ext/other.d.ts' does not exist. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. ++Module name 'index', matched pattern '*'. ++Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. + Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. + Directory '/node_modules' does not exist, skipping all lookups in it. +-Loading module 'ext/other' from 'node_modules' folder, target file types: JavaScript. +-Searching all ancestor node_modules directories for fallback extensions: JavaScript. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. ++Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.js' does not exist. + File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. +-Module name 'index', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript. +-Directory '/node_modules' does not exist, skipping all lookups in it. +-Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. +-Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. +-Module name 'other', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +-File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +-File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +-File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. +-Module name 'index', matched pattern '*'. +-Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. +-Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. ++Module name 'index', matched pattern '*'. ++Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. ++File '/.src/node_modules/ext/other.js' does not exist. ++File '/.src/node_modules/ext/other.jsx' does not exist. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. ++Module name 'index', matched pattern '*'. ++Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. + Directory '/node_modules' does not exist, skipping all lookups in it. + ======== Module name 'ext/other' was not resolved. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json new file mode 100644 index 0000000000..43b3446387 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json @@ -0,0 +1,41 @@ +======== Resolving module 'ext' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/.src/node_modules/ext/package.json'. +File '/.src/node_modules/ext.ts' does not exist. +File '/.src/node_modules/ext.tsx' does not exist. +File '/.src/node_modules/ext.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. +======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff new file mode 100644 index 0000000000..59b4aa8402 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff @@ -0,0 +1,54 @@ +--- old.typesVersionsDeclarationEmit.multiFile.trace.json ++++ new.typesVersionsDeclarationEmit.multiFile.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'ext' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/.src/node_modules/ext/package.json'. + File '/.src/node_modules/ext.ts' does not exist. +@@= skipped -8, +11 lines =@@ + 'package.json' has a 'typesVersions' field with version-specific path mappings. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +@@= skipped -9, +9 lines =@@ + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +-======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== ++======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. + File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. + File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. +-======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json new file mode 100644 index 0000000000..1a6647f1f6 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -0,0 +1,66 @@ +======== Resolving module 'ext' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/.src/node_modules/ext/package.json'. +File '/.src/node_modules/ext.ts' does not exist. +File '/.src/node_modules/ext.tsx' does not exist. +File '/.src/node_modules/ext.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +Module name 'other', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. +File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. +======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module '../' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern '*'. +Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== +======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/other.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/.src/node_modules/ext/other.ts' does not exist. +File '/.src/node_modules/ext/other.tsx' does not exist. +File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'peerDependencies' field. +======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff new file mode 100644 index 0000000000..7d61d0158c --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff @@ -0,0 +1,88 @@ +--- old.typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json ++++ new.typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'ext' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/.src/node_modules/ext/package.json'. + File '/.src/node_modules/ext.ts' does not exist. +@@= skipped -8, +11 lines =@@ + 'package.json' has a 'typesVersions' field with version-specific path mappings. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +@@= skipped -9, +9 lines =@@ + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +-======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== ++======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + Module name 'other', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. + File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. + File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. + File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. +-======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module '../' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern '*'. + Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. + File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +-======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/s3.1/index.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== + ======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/other.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/.src/node_modules/ext/other.ts' does not exist. + File '/.src/node_modules/ext/other.tsx' does not exist. + File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++'package.json' does not have a 'peerDependencies' field. ++======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json new file mode 100644 index 0000000000..acbcde0cbb --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -0,0 +1,49 @@ +======== Resolving module 'ext' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. +Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Found 'package.json' at '/.src/node_modules/ext/package.json'. +File '/.src/node_modules/ext.ts' does not exist. +File '/.src/node_modules/ext.tsx' does not exist. +File '/.src/node_modules/ext.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typings' field. +'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +Module name 'index', matched pattern 'index'. +Trying substitution 'ts3.1/index', candidate module location: 'ts3.1/index'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/.src/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +File '/.src/node_modules/ext/other.ts' does not exist. +File '/.src/node_modules/ext/other.tsx' does not exist. +File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. +'package.json' does not have a 'peerDependencies' field. +Resolving real path for '/.src/node_modules/ext/other.d.ts', result '/.src/node_modules/ext/other.d.ts'. +======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== +======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. +File '/.src/node_modules/ext/other.ts' does not exist. +File '/.src/node_modules/ext/other.tsx' does not exist. +File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. +File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'peerDependencies' field. +======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff new file mode 100644 index 0000000000..202897edd0 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff @@ -0,0 +1,64 @@ +--- old.typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json ++++ new.typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'ext' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist. ++File '/package.json' does not exist. ++Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + Found 'package.json' at '/.src/node_modules/ext/package.json'. + File '/.src/node_modules/ext.ts' does not exist. +@@= skipped -8, +11 lines =@@ + 'package.json' has a 'typesVersions' field with version-specific path mappings. + 'package.json' does not have a 'typings' field. + 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. + Module name 'index', matched pattern 'index'. + Trying substitution 'ts3.1/index', candidate module location: 'ts3.1/index'. + Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. +@@= skipped -9, +9 lines =@@ + File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. + 'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. +-======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== ++======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/.src/package.json' does not exist according to earlier cached lookups. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. ++'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. + File '/.src/node_modules/ext/other.ts' does not exist. + File '/.src/node_modules/ext/other.tsx' does not exist. + File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. ++'package.json' does not have a 'peerDependencies' field. + Resolving real path for '/.src/node_modules/ext/other.d.ts', result '/.src/node_modules/ext/other.d.ts'. +-======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/ts3.1/package.json' does not exist. +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== + ======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. + File '/.src/node_modules/ext/other.ts' does not exist. + File '/.src/node_modules/ext/other.tsx' does not exist. + File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. + File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +-======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ======== +-File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. ++'package.json' does not have a 'peerDependencies' field. ++======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json new file mode 100644 index 0000000000..0febc68e1d --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json @@ -0,0 +1,12 @@ +======== Resolving type reference directive 'jquery', containing file '/a.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== +======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/jquery/package.json' does not exist. +File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff new file mode 100644 index 0000000000..0bd4471283 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff @@ -0,0 +1,24 @@ +--- old.typingsLookup1.trace.json ++++ new.typingsLookup1.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving type reference directive 'jquery', containing file '/a.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. +-File '/node_modules/@types/jquery/package.json' does not exist. +-File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. +-Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. +-======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== + File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. +-======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts'. ======== +-Resolution for type reference directive 'jquery' was found in cache from location '/'. ++File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. ++======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== ++======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== ++Resolving with primary search path '/node_modules/@types'. ++File '/node_modules/@types/jquery/package.json' does not exist. ++File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. ++Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json b/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json new file mode 100644 index 0000000000..b615d44651 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json @@ -0,0 +1,14 @@ +======== Resolving type reference directive 'JqUeRy', containing file '/a.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Directory '/node_modules/@types' does not exist, skipping all lookups in it. +Looking up in 'node_modules' folder, initial location '/'. +Searching all ancestor node_modules directories for preferred extensions: Declaration. +File '/node_modules/JqUeRy.d.ts' does not exist. +File '/node_modules/@types/JqUeRy.d.ts' does not exist. +======== Type reference directive 'JqUeRy' was not resolved. ======== +======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +File '/node_modules/@types/jquery/package.json' does not exist. +File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff new file mode 100644 index 0000000000..f565b8bc4f --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff @@ -0,0 +1,17 @@ +--- old.typingsLookup3.trace.json ++++ new.typingsLookup3.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving type reference directive 'JqUeRy', containing file '/a.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. ++Directory '/node_modules/@types' does not exist, skipping all lookups in it. + Looking up in 'node_modules' folder, initial location '/'. + Searching all ancestor node_modules directories for preferred extensions: Declaration. + File '/node_modules/JqUeRy.d.ts' does not exist. +@@= skipped -10, +11 lines =@@ + File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== +-File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. +-File '/node_modules/@types/package.json' does not exist. +-File '/node_modules/package.json' does not exist. +-File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json new file mode 100644 index 0000000000..100c208ad4 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json @@ -0,0 +1,110 @@ +======== Resolving module 'jquery' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist. +Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/jquery.ts' does not exist. +File '/node_modules/jquery.tsx' does not exist. +File '/node_modules/jquery.d.ts' does not exist. +File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. +File '/node_modules/@types/jquery.d.ts' does not exist. +'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. +File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. +======== Module name 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts'. ======== +======== Resolving module 'kquery' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/kquery.ts' does not exist. +File '/node_modules/kquery.tsx' does not exist. +File '/node_modules/kquery.d.ts' does not exist. +File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. +File '/node_modules/@types/kquery.d.ts' does not exist. +'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. +Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. +File '/node_modules/@types/kquery/kquery.ts' does not exist. +File '/node_modules/@types/kquery/kquery.tsx' does not exist. +File '/node_modules/@types/kquery/kquery.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'. +======== Module name 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts'. ======== +======== Resolving module 'lquery' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/lquery.ts' does not exist. +File '/node_modules/lquery.tsx' does not exist. +File '/node_modules/lquery.d.ts' does not exist. +File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. +File '/node_modules/@types/lquery.d.ts' does not exist. +'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. +Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. +File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_modules/@types/lquery/lquery.ts'. +======== Module name 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts'. ======== +======== Resolving module 'mquery' from '/a.ts'. ======== +Module resolution kind is not specified, using 'Bundler'. +Resolving in CJS mode with conditions 'require', 'types'. +File '/package.json' does not exist according to earlier cached lookups. +Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. +Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +File '/node_modules/mquery.ts' does not exist. +File '/node_modules/mquery.tsx' does not exist. +File '/node_modules/mquery.d.ts' does not exist. +File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. +File '/node_modules/@types/mquery.d.ts' does not exist. +'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. +Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. +File '/node_modules/@types/mquery/mquery.ts' does not exist. +File '/node_modules/@types/mquery/mquery.tsx' does not exist. +File '/node_modules/@types/mquery/mquery.d.ts' does not exist. +File '/node_modules/@types/mquery/mquery/index.ts' does not exist. +File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'. +======== Module name 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx'. ======== +======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Found 'package.json' at '/node_modules/@types/jquery/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. +File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. +======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts', primary: true. ======== +======== Resolving type reference directive 'kquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Found 'package.json' at '/node_modules/@types/kquery/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. +Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. +File '/node_modules/@types/kquery/kquery.ts' does not exist. +File '/node_modules/@types/kquery/kquery.tsx' does not exist. +File '/node_modules/@types/kquery/kquery.d.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'. +======== Type reference directive 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts', primary: true. ======== +======== Resolving type reference directive 'lquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Found 'package.json' at '/node_modules/@types/lquery/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. +Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. +File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_modules/@types/lquery/lquery.ts'. +======== Type reference directive 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts', primary: true. ======== +======== Resolving type reference directive 'mquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== +Resolving with primary search path '/node_modules/@types'. +Found 'package.json' at '/node_modules/@types/mquery/package.json'. +'package.json' does not have a 'typesVersions' field. +'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. +Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. +File '/node_modules/@types/mquery/mquery.ts' does not exist. +File '/node_modules/@types/mquery/mquery.tsx' does not exist. +File '/node_modules/@types/mquery/mquery.d.ts' does not exist. +File '/node_modules/@types/mquery/mquery/index.ts' does not exist. +File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result. +Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'. +======== Type reference directive 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff new file mode 100644 index 0000000000..29f63ffa57 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff @@ -0,0 +1,127 @@ +--- old.typingsLookup4.trace.json ++++ new.typingsLookup4.trace.json +@@= skipped -0, +0 lines =@@ + ======== Resolving module 'jquery' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist. ++Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/jquery.ts' does not exist. + File '/node_modules/jquery.tsx' does not exist. + File '/node_modules/jquery.d.ts' does not exist. +-Found 'package.json' at '/node_modules/@types/jquery/package.json'. ++File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. + File '/node_modules/@types/jquery.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. + File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. + ======== Module name 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts'. ======== + ======== Resolving module 'kquery' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/kquery.ts' does not exist. + File '/node_modules/kquery.tsx' does not exist. + File '/node_modules/kquery.d.ts' does not exist. +-Found 'package.json' at '/node_modules/@types/kquery/package.json'. ++File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. + File '/node_modules/@types/kquery.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. + Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. + File '/node_modules/@types/kquery/kquery.ts' does not exist. +@@= skipped -29, +31 lines =@@ + Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'. + ======== Module name 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts'. ======== + ======== Resolving module 'lquery' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/lquery.ts' does not exist. + File '/node_modules/lquery.tsx' does not exist. + File '/node_modules/lquery.d.ts' does not exist. +-Found 'package.json' at '/node_modules/@types/lquery/package.json'. ++File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. + File '/node_modules/@types/lquery.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. + Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. + File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_modules/@types/lquery/lquery.ts'. + ======== Module name 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts'. ======== + ======== Resolving module 'mquery' from '/a.ts'. ======== +-Module resolution kind is not specified, using 'Node10'. +-Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, Declaration. ++Module resolution kind is not specified, using 'Bundler'. ++Resolving in CJS mode with conditions 'require', 'types'. ++File '/package.json' does not exist according to earlier cached lookups. ++Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. + Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. + File '/node_modules/mquery.ts' does not exist. + File '/node_modules/mquery.tsx' does not exist. + File '/node_modules/mquery.d.ts' does not exist. +-Found 'package.json' at '/node_modules/@types/mquery/package.json'. ++File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. + File '/node_modules/@types/mquery.d.ts' does not exist. +-'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. + Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. + File '/node_modules/@types/mquery/mquery.ts' does not exist. +@@= skipped -33, +35 lines =@@ + File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'. + ======== Module name 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx'. ======== +-File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. +-File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. +-File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. +-File '/node_modules/@types/mquery/mquery/package.json' does not exist. +-File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. + ======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. +-File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@types/jquery/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. + File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. + Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. + ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts', primary: true. ======== + ======== Resolving type reference directive 'kquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. +-File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@types/kquery/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. + Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. + File '/node_modules/@types/kquery/kquery.ts' does not exist. +@@= skipped -24, +21 lines =@@ + ======== Type reference directive 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts', primary: true. ======== + ======== Resolving type reference directive 'lquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. +-File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@types/lquery/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. + Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. + File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. +@@= skipped -8, +9 lines =@@ + ======== Type reference directive 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts', primary: true. ======== + ======== Resolving type reference directive 'mquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== + Resolving with primary search path '/node_modules/@types'. +-File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. ++Found 'package.json' at '/node_modules/@types/mquery/package.json'. ++'package.json' does not have a 'typesVersions' field. + 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. + Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. + File '/node_modules/@types/mquery/mquery.ts' does not exist. \ No newline at end of file From ab0124b884189402a91b85b30f7e576f991de480 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 7 Aug 2025 14:27:57 -0700 Subject: [PATCH 03/12] Format --- internal/testutil/harnessutil/harnessutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index 284ca39206..e63992e113 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -509,7 +509,7 @@ func createCompilerHost(fs vfs.FS, defaultLibraryPath string, currentDirectory s } return &cachedCompilerHost{ CompilerHost: compiler.NewCompilerHost(currentDirectory, fs, defaultLibraryPath, nil, trace), - tracer: &tracer, + tracer: &tracer, } } From 176a63f5141e6400e218eca4b73ad1f0477a3967 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 7 Aug 2025 15:16:21 -0700 Subject: [PATCH 04/12] Dont baseline trace with old --- internal/testrunner/compiler_runner.go | 34 +- internal/testutil/baseline/baseline.go | 3 +- ...llowJsCrossMonorepoPackage.trace.json.diff | 50 - .../cachedModuleResolution1.trace.json.diff | 50 - .../cachedModuleResolution2.trace.json.diff | 50 - .../cachedModuleResolution3.trace.json.diff | 74 -- .../cachedModuleResolution4.trace.json.diff | 74 -- .../cachedModuleResolution5.trace.json.diff | 47 - .../cachedModuleResolution6.trace.json.diff | 63 - .../cachedModuleResolution7.trace.json.diff | 65 -- .../cachedModuleResolution8.trace.json.diff | 97 -- .../cachedModuleResolution9.trace.json.diff | 91 -- ...elativeImportWithinPackage.trace.json.diff | 70 -- ...ImportWithinPackage_scoped.trace.json.diff | 70 -- .../importWithTrailingSlash.trace.json.diff | 41 - ...ithTrailingSlash_noResolve.trace.json.diff | 13 - ...ment(libreplacement=false).trace.json.diff | 5 - ...ement(libreplacement=true).trace.json.diff | 1018 ----------------- ...ibTypeScriptOverrideSimple.trace.json.diff | 103 -- ...ScriptOverrideSimpleConfig.trace.json.diff | 98 -- ...TypeScriptSubfileResolving.trace.json.diff | 135 --- ...riptSubfileResolvingConfig.trace.json.diff | 127 -- ...oduleJsDepthDefaultsToZero.trace.json.diff | 23 - .../compiler/modulePreserve2.trace.json.diff | 7 - .../compiler/modulePreserve3.trace.json.diff | 29 - ...onAsTypeReferenceDirective.trace.json.diff | 34 - ...eReferenceDirectiveAmbient.trace.json.diff | 34 - ...peReferenceDirectiveScoped.trace.json.diff | 140 --- ...ithRelativeAndAbsolutePath.trace.json.diff | 120 -- ...ithExtensions_notSupported.trace.json.diff | 39 - ...thExtensions_notSupported2.trace.json.diff | 17 - ...thExtensions_notSupported3.trace.json.diff | 17 - ...nWithExtensions_unexpected.trace.json.diff | 61 - ...WithExtensions_unexpected2.trace.json.diff | 53 - ...ensions_withAmbientPresent.trace.json.diff | 23 - ...onWithExtensions_withPaths.trace.json.diff | 60 - ...lutionWithRequireAndImport.trace.json.diff | 11 - ...solutionWithSuffixes_empty.trace.json.diff | 11 - ...nWithSuffixes_notSpecified.trace.json.diff | 11 - ...ResolutionWithSuffixes_one.trace.json.diff | 11 - ...utionWithSuffixes_oneBlank.trace.json.diff | 11 - ...onWithSuffixes_oneNotFound.trace.json.diff | 17 - ...xes_one_dirModuleWithIndex.trace.json.diff | 17 - ...uffixes_one_externalModule.trace.json.diff | 20 - ...xes_one_externalModulePath.trace.json.diff | 20 - ...e_externalModule_withPaths.trace.json.diff | 61 - ...fixes_one_externalTSModule.trace.json.diff | 20 - ...nWithSuffixes_one_jsModule.trace.json.diff | 21 - ...ithSuffixes_one_jsonModule.trace.json.diff | 19 - ...Suffixes_threeLastIsBlank1.trace.json.diff | 11 - ...Suffixes_threeLastIsBlank2.trace.json.diff | 12 - ...Suffixes_threeLastIsBlank3.trace.json.diff | 12 - ...Suffixes_threeLastIsBlank4.trace.json.diff | 21 - ...duleResolutionWithSymlinks.trace.json.diff | 59 - ...hSymlinks_notInNodeModules.trace.json.diff | 23 - ...hSymlinks_preserveSymlinks.trace.json.diff | 102 -- ...ithSymlinks_referenceTypes.trace.json.diff | 33 - ...ionWithSymlinks_withOutDir.trace.json.diff | 59 - ...ckageJson_notAtPackageRoot.trace.json.diff | 21 - ...kageRoot_fakeScopedPackage.trace.json.diff | 21 - ..._packageJson_scopedPackage.trace.json.diff | 18 - ...ckageJson_yesAtPackageRoot.trace.json.diff | 41 - ...kageRoot_fakeScopedPackage.trace.json.diff | 41 - ...ot_mainFieldInSubDirectory.trace.json.diff | 24 - .../nodeColonModuleResolution.trace.json.diff | 50 - ...nodeColonModuleResolution2.trace.json.diff | 29 - .../nodeNextModuleResolution1.trace.json.diff | 45 - .../nodeNextModuleResolution2.trace.json.diff | 38 - ...asedModuleResolution3_node.trace.json.diff | 67 -- ...asedModuleResolution4_node.trace.json.diff | 65 -- ...asedModuleResolution5_node.trace.json.diff | 90 -- ...asedModuleResolution6_node.trace.json.diff | 44 - ...asedModuleResolution7_node.trace.json.diff | 120 -- ...asedModuleResolution8_node.trace.json.diff | 11 - ...n_rootImport_aliasWithRoot.trace.json.diff | 41 - ...ithRoot_differentRootTypes.trace.json.diff | 333 ------ ...asWithRoot_multipleAliases.trace.json.diff | 38 - ...aliasWithRoot_realRootFile.trace.json.diff | 41 - ...rootImport_noAliasWithRoot.trace.json.diff | 41 - ...AliasWithRoot_realRootFile.trace.json.diff | 41 - ...leResolution_withExtension.trace.json.diff | 21 - ...lution_withExtensionInName.trace.json.diff | 53 - ...tension_MapedToNodeModules.trace.json.diff | 53 - ...withExtension_failedLookup.trace.json.diff | 33 - .../compiler/pathsValidation4.trace.json.diff | 42 - .../compiler/pathsValidation5.trace.json.diff | 27 - ...ctJsxReactResolvedNodeNext.trace.json.diff | 225 ---- ...sxReactResolvedNodeNextEsm.trace.json.diff | 226 ---- ...veJsonModuleAndPathMapping.trace.json.diff | 49 - ...uireOfJsonFile_PathMapping.trace.json.diff | 47 - ...copedPackageCustomTypeRoot.trace.json.diff | 70 -- ...tiveWithFailedFromTypeRoot.trace.json.diff | 9 - ...nceDirectiveWithTypeAsFile.trace.json.diff | 14 - .../typeReferenceDirectives1.trace.json.diff | 21 - .../typeReferenceDirectives10.trace.json.diff | 31 - .../typeReferenceDirectives11.trace.json.diff | 18 - .../typeReferenceDirectives12.trace.json.diff | 52 - .../typeReferenceDirectives13.trace.json.diff | 31 - .../typeReferenceDirectives2.trace.json.diff | 11 - .../typeReferenceDirectives3.trace.json.diff | 21 - .../typeReferenceDirectives4.trace.json.diff | 21 - .../typeReferenceDirectives5.trace.json.diff | 31 - .../typeReferenceDirectives6.trace.json.diff | 21 - .../typeReferenceDirectives7.trace.json.diff | 21 - .../typeReferenceDirectives8.trace.json.diff | 18 - .../typeReferenceDirectives9.trace.json.diff | 52 - ...ipleNodeModulesDirectories.trace.json.diff | 107 -- ...deModulesInParentDirectory.trace.json.diff | 32 - ...xcludesNode(module=esnext).trace.json.diff | 22 - ...ludesNode(module=preserve).trace.json.diff | 22 - ...,moduleresolution=bundler).trace.json.diff | 10 - ...moduleresolution=nodenext).trace.json.diff | 140 --- ...,moduleresolution=bundler).trace.json.diff | 10 - ...moduleresolution=nodenext).trace.json.diff | 182 --- ...nsions=false,noemit=false).trace.json.diff | 37 - ...ensions=false,noemit=true).trace.json.diff | 37 - ...ensions=true,noemit=false).trace.json.diff | 37 - ...tensions=true,noemit=true).trace.json.diff | 37 - ...odeModules1(module=esnext).trace.json.diff | 61 - ...eModules1(module=preserve).trace.json.diff | 61 - ...erRelative1(module=esnext).trace.json.diff | 25 - ...Relative1(module=preserve).trace.json.diff | 25 - ...(moduleresolution=bundler).trace.json.diff | 22 - ...k(moduleresolution=node16).trace.json.diff | 36 - ...moduleresolution=nodenext).trace.json.diff | 36 - ...epackagejsonexports=false).trace.json.diff | 24 - ...vepackagejsonexports=true).trace.json.diff | 38 - .../library-reference-1.trace.json.diff | 28 - .../library-reference-10.trace.json.diff | 31 - .../library-reference-11.trace.json.diff | 15 - .../library-reference-12.trace.json.diff | 16 - .../library-reference-13.trace.json.diff | 2 - .../library-reference-14.trace.json.diff | 11 - .../library-reference-15.trace.json.diff | 11 - .../library-reference-2.trace.json.diff | 31 - .../library-reference-3.trace.json.diff | 10 - .../library-reference-4.trace.json.diff | 83 -- .../library-reference-5.trace.json.diff | 75 -- .../library-reference-6.trace.json.diff | 24 - .../library-reference-7.trace.json.diff | 10 - .../library-reference-8.trace.json.diff | 59 - ...-reference-scoped-packages.trace.json.diff | 33 - ...leResolutionWithExtensions.trace.json.diff | 29 - ...(moduleresolution=bundler).trace.json.diff | 17 - ...t(moduleresolution=node16).trace.json.diff | 36 - ...moduleresolution=nodenext).trace.json.diff | 36 - ...ternateResult_noResolution.trace.json.diff | 47 - ...e10Alternateresult_noTypes.trace.json.diff | 62 - .../node10IsNode_node.trace.json.diff | 36 - .../node10IsNode_node10.trace.json.diff | 36 - ...nodeModulesAtTypesPriority.trace.json.diff | 182 --- ...pesVersions(module=node16).trace.json.diff | 263 ----- ...pesVersions(module=node18).trace.json.diff | 263 ----- ...sVersions(module=nodenext).trace.json.diff | 305 ----- ...kageImports(module=node16).trace.json.diff | 172 --- ...kageImports(module=node18).trace.json.diff | 172 --- ...geImports(module=nodenext).trace.json.diff | 214 ---- ...rtsTrailers(module=node16).trace.json.diff | 310 ----- ...rtsTrailers(module=node18).trace.json.diff | 310 ----- ...sTrailers(module=nodenext).trace.json.diff | 352 ------ .../packageJsonMain.trace.json.diff | 149 --- ...ageJsonMain_isNonRecursive.trace.json.diff | 54 - .../resolutionModeCache.trace.json.diff | 34 - ...(moduleresolution=bundler).trace.json.diff | 69 -- ...1(moduleresolution=node16).trace.json.diff | 83 -- .../scopedPackages.trace.json.diff | 64 -- .../scopedPackagesClassic.trace.json.diff | 29 - ...selfNameModuleAugmentation.trace.json.diff | 36 - ...pesVersions.ambientModules.trace.json.diff | 105 -- .../typesVersions.emptyTypes.trace.json.diff | 38 - .../typesVersions.justIndex.trace.json.diff | 38 - .../typesVersions.multiFile.trace.json.diff | 54 - ...onsDeclarationEmit.ambient.trace.json.diff | 105 -- ...sDeclarationEmit.multiFile.trace.json.diff | 54 - ...ltiFileBackReferenceToSelf.trace.json.diff | 88 -- ...ileBackReferenceToUnmapped.trace.json.diff | 64 -- .../typingsLookup1.trace.json.diff | 24 - .../typingsLookup3.trace.json.diff | 17 - .../typingsLookup4.trace.json.diff | 127 -- 179 files changed, 5 insertions(+), 11604 deletions(-) delete mode 100644 testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff diff --git a/internal/testrunner/compiler_runner.go b/internal/testrunner/compiler_runner.go index 6090c1ed6b..c145fd5dda 100644 --- a/internal/testrunner/compiler_runner.go +++ b/internal/testrunner/compiler_runner.go @@ -519,37 +519,9 @@ func (c *compilerTest) verifyModuleResolution(t *testing.T, suiteName string, is t.Run("module resolution", func(t *testing.T) { defer testutil.RecoverAndFail(t, "Panic on creating module resolution baseline for test "+c.filename) tsbaseline.DoModuleResolutionBaseline(t, c.configuredName, c.result.Trace, baseline.Options{ - Subfolder: suiteName, - IsSubmodule: isSubmodule, - DiffFixupOld: func(old string) string { - var sb strings.Builder - sb.Grow(len(old)) - - removeLibReplacement := c.options.LibReplacement == core.TSUnknown - inLibResolution := false - for line := range strings.SplitSeq(old, "\n") { - if line == "[" || line == "]" { - continue - } - fixedLine := strings.TrimSuffix(strings.TrimPrefix(line, ` "`), `",`) - if removeLibReplacement { - if inLibResolution { - if strings.HasPrefix(fixedLine, `======== Module name '@typescript/lib-`) { - inLibResolution = false - } - continue - } - if strings.HasPrefix(fixedLine, `======== Resolving module '@typescript/lib-`) { - inLibResolution = true - continue - } - } - sb.WriteString(fixedLine) - sb.WriteString("\n") - } - - return sb.String()[:sb.Len()-1] - }, + Subfolder: suiteName, + IsSubmodule: isSubmodule, + SkipDiffWithOld: true, }) }) } diff --git a/internal/testutil/baseline/baseline.go b/internal/testutil/baseline/baseline.go index dcaa21e19d..372d0b0018 100644 --- a/internal/testutil/baseline/baseline.go +++ b/internal/testutil/baseline/baseline.go @@ -23,6 +23,7 @@ type Options struct { IsSubmodule bool IsSubmoduleAccepted bool DiffFixupOld func(string) string + SkipDiffWithOld bool } const NoContent = "" @@ -42,7 +43,7 @@ func Run(t *testing.T, fileName string, actual string, opts Options) { writeComparison(t, actual, localPath, referencePath, false) } - if !opts.IsSubmodule { + if !opts.IsSubmodule || opts.SkipDiffWithOld { // Not a submodule, no diffs. return } diff --git a/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff deleted file mode 100644 index 54cc71ade1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.allowJsCrossMonorepoPackage.trace.json -+++ new.allowJsCrossMonorepoPackage.trace.json -@@= skipped -11, +11 lines =@@ - File '/packages/main/node_modules/shared/index.d.ts' does not exist. - Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/packages/node_modules' does not exist, skipping all lookups in it. -+Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/shared.ts' does not exist. - File '/node_modules/shared.tsx' does not exist. - File '/node_modules/shared.d.ts' does not exist. -@@= skipped -10, +11 lines =@@ - File name '/packages/main/node_modules/shared/index.js' has a '.js' extension - stripping it. - File '/packages/main/node_modules/shared/index.js' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/packages/main/package.json' exists according to earlier cached lookups. - Loading module 'shared' from 'node_modules' folder, target file types: TypeScript, Declaration. -@@= skipped -17, +18 lines =@@ - File '/packages/main/node_modules/shared/index.d.ts' does not exist. - Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/packages/node_modules' does not exist, skipping all lookups in it. -+Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/shared.ts' does not exist. - File '/node_modules/shared.tsx' does not exist. - File '/node_modules/shared.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'. --======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared/index.js@1.0.0'. ======== -+======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared@1.0.0'. ======== - ======== Resolving module './utils.js' from '/packages/shared/index.js'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -23, +23 lines =@@ - Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/packages/shared/node_modules' does not exist, skipping all lookups in it. -+Directory '/packages/shared/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/packages/node_modules' does not exist, skipping all lookups in it. -+Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/pkg/package.json' does not exist. - File '/node_modules/pkg.ts' does not exist. - File '/node_modules/pkg.tsx' does not exist. -@@= skipped -10, +12 lines =@@ - File '/node_modules/pkg/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'. - ======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts'. ======== --File '/node_modules/pkg/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff deleted file mode 100644 index 50bed32f39..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.cachedModuleResolution1.trace.json -+++ new.cachedModuleResolution1.trace.json -@@= skipped -0, +0 lines =@@ --File '/a/b/node_modules/package.json' does not exist. --File '/a/b/package.json' does not exist. --File '/a/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - File '/a/b/node_modules/foo.ts' does not exist. - File '/a/b/node_modules/foo.tsx' does not exist. - File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Resolution for module 'foo' was found in cache from location '/a/b/c'. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+File '/a/b/node_modules/foo.ts' does not exist. -+File '/a/b/node_modules/foo.tsx' does not exist. -+File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff deleted file mode 100644 index 06e34b4358..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.cachedModuleResolution2.trace.json -+++ new.cachedModuleResolution2.trace.json -@@= skipped -0, +0 lines =@@ --File '/a/b/node_modules/package.json' does not exist. --File '/a/b/package.json' does not exist. --File '/a/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - File '/a/b/node_modules/foo.ts' does not exist. - File '/a/b/node_modules/foo.tsx' does not exist. - File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. --Resolution for module 'foo' was found in cache from location '/a/b/c'. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+File '/a/b/node_modules/foo.ts' does not exist. -+File '/a/b/node_modules/foo.tsx' does not exist. -+File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff deleted file mode 100644 index eb6f039ed3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json.diff +++ /dev/null @@ -1,74 +0,0 @@ ---- old.cachedModuleResolution3.trace.json -+++ new.cachedModuleResolution3.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --File '/a/b/c/d/e/foo.ts' does not exist. --File '/a/b/c/d/e/foo.tsx' does not exist. --File '/a/b/c/d/e/foo.d.ts' does not exist. --File '/a/b/c/d/foo.ts' does not exist. --File '/a/b/c/d/foo.tsx' does not exist. --File '/a/b/c/d/foo.d.ts' does not exist. --File '/a/b/c/foo.ts' does not exist. --File '/a/b/c/foo.tsx' does not exist. --File '/a/b/c/foo.d.ts' does not exist. --File '/a/b/foo.ts' does not exist. --File '/a/b/foo.tsx' does not exist. --File '/a/b/foo.d.ts' exists - use it as a name resolution result. --======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'foo' was not resolved. ======== - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --Resolution for module 'foo' was found in cache from location '/a/b/c'. --======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff deleted file mode 100644 index 0ebd3232d8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json.diff +++ /dev/null @@ -1,74 +0,0 @@ ---- old.cachedModuleResolution4.trace.json -+++ new.cachedModuleResolution4.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --File '/a/b/c/foo.ts' does not exist. --File '/a/b/c/foo.tsx' does not exist. --File '/a/b/c/foo.d.ts' does not exist. --File '/a/b/foo.ts' does not exist. --File '/a/b/foo.tsx' does not exist. --File '/a/b/foo.d.ts' exists - use it as a name resolution result. --======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'foo' was not resolved. ======== - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --File '/a/b/c/d/e/foo.ts' does not exist. --File '/a/b/c/d/e/foo.tsx' does not exist. --File '/a/b/c/d/e/foo.d.ts' does not exist. --File '/a/b/c/d/foo.ts' does not exist. --File '/a/b/c/d/foo.tsx' does not exist. --File '/a/b/c/d/foo.d.ts' does not exist. --Resolution for module 'foo' was found in cache from location '/a/b/c'. --======== Module name 'foo' was successfully resolved to '/a/b/foo.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff deleted file mode 100644 index f453811c12..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- old.cachedModuleResolution5.trace.json -+++ new.cachedModuleResolution5.trace.json -@@= skipped -0, +0 lines =@@ --File '/a/b/node_modules/package.json' does not exist. --File '/a/b/package.json' does not exist. --File '/a/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - File '/a/b/node_modules/foo.ts' does not exist. - File '/a/b/node_modules/foo.tsx' does not exist. - File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== - ======== Resolving module 'foo' from '/a/b/lib.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Resolution for module 'foo' was found in cache from location '/a/b'. -+File '/a/b/node_modules/foo.ts' does not exist. -+File '/a/b/node_modules/foo.tsx' does not exist. -+File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff deleted file mode 100644 index ae6b6f57a2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json.diff +++ /dev/null @@ -1,63 +0,0 @@ ---- old.cachedModuleResolution6.trace.json -+++ new.cachedModuleResolution6.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. --Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -@@= skipped -17, +29 lines =@@ - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Resolution for module 'foo' was found in cache from location '/a/b/c'. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff deleted file mode 100644 index 0305c27cfb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json.diff +++ /dev/null @@ -1,65 +0,0 @@ ---- old.cachedModuleResolution7.trace.json -+++ new.cachedModuleResolution7.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. --Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. - Directory '/a/node_modules' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. --Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. --Resolution for module 'foo' was found in cache from location '/a/b/c'. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff deleted file mode 100644 index 0d2a2e6ece..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json.diff +++ /dev/null @@ -1,97 +0,0 @@ ---- old.cachedModuleResolution8.trace.json -+++ new.cachedModuleResolution8.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --File '/a/b/c/d/e/foo.ts' does not exist. --File '/a/b/c/d/e/foo.tsx' does not exist. --File '/a/b/c/d/e/foo.d.ts' does not exist. --File '/a/b/c/d/foo.ts' does not exist. --File '/a/b/c/d/foo.tsx' does not exist. --File '/a/b/c/d/foo.d.ts' does not exist. --File '/a/b/c/foo.ts' does not exist. --File '/a/b/c/foo.tsx' does not exist. --File '/a/b/c/foo.d.ts' does not exist. --File '/a/b/foo.ts' does not exist. --File '/a/b/foo.tsx' does not exist. --File '/a/b/foo.d.ts' does not exist. --File '/a/foo.ts' does not exist. --File '/a/foo.tsx' does not exist. --File '/a/foo.d.ts' does not exist. --File '/foo.ts' does not exist. --File '/foo.tsx' does not exist. --File '/foo.d.ts' does not exist. --Searching all ancestor node_modules directories for preferred extensions: Declaration. --Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. --Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. --Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. --Directory '/a/b/node_modules' does not exist, skipping all lookups in it. --Directory '/a/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --File '/a/b/c/d/e/foo.js' does not exist. --File '/a/b/c/d/e/foo.jsx' does not exist. --File '/a/b/c/d/foo.js' does not exist. --File '/a/b/c/d/foo.jsx' does not exist. --File '/a/b/c/foo.js' does not exist. --File '/a/b/c/foo.jsx' does not exist. --File '/a/b/foo.js' does not exist. --File '/a/b/foo.jsx' does not exist. --File '/a/foo.js' does not exist. --File '/a/foo.jsx' does not exist. --File '/foo.js' does not exist. --File '/foo.jsx' does not exist. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --Resolution for module 'foo' was found in cache from location '/a/b/c'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff deleted file mode 100644 index 2f0ca2e5cb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json.diff +++ /dev/null @@ -1,91 +0,0 @@ ---- old.cachedModuleResolution9.trace.json -+++ new.cachedModuleResolution9.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --File '/a/b/c/foo.ts' does not exist. --File '/a/b/c/foo.tsx' does not exist. --File '/a/b/c/foo.d.ts' does not exist. --File '/a/b/foo.ts' does not exist. --File '/a/b/foo.tsx' does not exist. --File '/a/b/foo.d.ts' does not exist. --File '/a/foo.ts' does not exist. --File '/a/foo.tsx' does not exist. --File '/a/foo.d.ts' does not exist. --File '/foo.ts' does not exist. --File '/foo.tsx' does not exist. --File '/foo.d.ts' does not exist. --Searching all ancestor node_modules directories for preferred extensions: Declaration. --Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. --Directory '/a/b/node_modules' does not exist, skipping all lookups in it. --Directory '/a/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --File '/a/b/c/foo.js' does not exist. --File '/a/b/c/foo.jsx' does not exist. --File '/a/b/foo.js' does not exist. --File '/a/b/foo.jsx' does not exist. --File '/a/foo.js' does not exist. --File '/a/foo.jsx' does not exist. --File '/foo.js' does not exist. --File '/foo.jsx' does not exist. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --File '/a/b/c/d/e/foo.ts' does not exist. --File '/a/b/c/d/e/foo.tsx' does not exist. --File '/a/b/c/d/e/foo.d.ts' does not exist. --File '/a/b/c/d/foo.ts' does not exist. --File '/a/b/c/d/foo.tsx' does not exist. --File '/a/b/c/d/foo.d.ts' does not exist. --Resolution for module 'foo' was found in cache from location '/a/b/c'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/c/d/e/package.json' does not exist. -+File '/a/b/c/d/package.json' does not exist. -+File '/a/b/c/package.json' does not exist. -+File '/a/b/package.json' does not exist. -+File '/a/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff deleted file mode 100644 index f325a37bc6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json.diff +++ /dev/null @@ -1,70 +0,0 @@ ---- old.duplicatePackage_relativeImportWithinPackage.trace.json -+++ new.duplicatePackage_relativeImportWithinPackage.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/use' from '/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/foo/package.json'. - 'package.json' does not have a 'typesVersions' field. -@@= skipped -8, +10 lines =@@ - File '/node_modules/foo/use.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/foo/use.d.ts', result '/node_modules/foo/use.d.ts'. --======== Module name 'foo/use' was successfully resolved to '/node_modules/foo/use.d.ts' with Package ID 'foo/use.d.ts@1.2.3'. ======== -+======== Module name 'foo/use' was successfully resolved to '/node_modules/foo/use.d.ts' with Package ID 'foo@1.2.3'. ======== - ======== Resolving module 'a' from '/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/a/package.json' does not exist. - File '/node_modules/a.ts' does not exist. -@@= skipped -14, +16 lines =@@ - File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'. - ======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== --File '/node_modules/foo/package.json' exists according to earlier cached lookups. - ======== Resolving module './index' from '/node_modules/foo/use.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/node_modules/foo/index', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/node_modules/foo/index.ts' does not exist. - File '/node_modules/foo/index.tsx' does not exist. - File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. - File '/node_modules/foo/package.json' exists according to earlier cached lookups. --======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ======== --File '/node_modules/foo/package.json' exists according to earlier cached lookups. --File '/node_modules/a/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. -+'package.json' does not have a 'peerDependencies' field. -+======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo@1.2.3'. ======== - ======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/node_modules/a/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'. - File '/node_modules/a/node_modules/foo.ts' does not exist. -@@= skipped -30, +31 lines =@@ - File '/node_modules/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/a/node_modules/foo/index.d.ts', result '/node_modules/a/node_modules/foo/index.d.ts'. --======== Module name 'foo' was successfully resolved to '/node_modules/a/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ======== --File '/node_modules/a/node_modules/foo/package.json' exists according to earlier cached lookups. -+======== Module name 'foo' was successfully resolved to '/node_modules/a/node_modules/foo/index.d.ts' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff deleted file mode 100644 index c0f3fd7f96..0000000000 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json.diff +++ /dev/null @@ -1,70 +0,0 @@ ---- old.duplicatePackage_relativeImportWithinPackage_scoped.trace.json -+++ new.duplicatePackage_relativeImportWithinPackage_scoped.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@foo/bar/use' from '/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module '@foo/bar/use' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/@foo/bar/package.json'. - 'package.json' does not have a 'typesVersions' field. -@@= skipped -8, +10 lines =@@ - File '/node_modules/@foo/bar/use.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/@foo/bar/use.d.ts', result '/node_modules/@foo/bar/use.d.ts'. --======== Module name '@foo/bar/use' was successfully resolved to '/node_modules/@foo/bar/use.d.ts' with Package ID '@foo/bar/use.d.ts@1.2.3'. ======== -+======== Module name '@foo/bar/use' was successfully resolved to '/node_modules/@foo/bar/use.d.ts' with Package ID '@foo/bar@1.2.3'. ======== - ======== Resolving module 'a' from '/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/a/package.json' does not exist. - File '/node_modules/a.ts' does not exist. -@@= skipped -14, +16 lines =@@ - File '/node_modules/a/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/a/index.d.ts', result '/node_modules/a/index.d.ts'. - ======== Module name 'a' was successfully resolved to '/node_modules/a/index.d.ts'. ======== --File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. - ======== Resolving module './index' from '/node_modules/@foo/bar/use.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/node_modules/@foo/bar/index', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/node_modules/@foo/bar/index.ts' does not exist. - File '/node_modules/@foo/bar/index.tsx' does not exist. - File '/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result. - File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. --======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ======== --File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. --File '/node_modules/a/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. -+'package.json' does not have a 'peerDependencies' field. -+======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar@1.2.3'. ======== - ======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/node_modules/a/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'. - File '/node_modules/a/node_modules/@foo/bar.ts' does not exist. -@@= skipped -30, +31 lines =@@ - File '/node_modules/a/node_modules/@foo/bar/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/a/node_modules/@foo/bar/index.d.ts', result '/node_modules/a/node_modules/@foo/bar/index.d.ts'. --======== Module name '@foo/bar' was successfully resolved to '/node_modules/a/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ======== --File '/node_modules/a/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. -+======== Module name '@foo/bar' was successfully resolved to '/node_modules/a/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff deleted file mode 100644 index c8d56f1160..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.importWithTrailingSlash.trace.json -+++ new.importWithTrailingSlash.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '.' from '/a/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. --File '/a/package.json' does not exist. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/a/package.json' does not exist according to earlier cached lookups. - File '/a/index.ts' exists - use it as a name resolution result. - ======== Module name '.' was successfully resolved to '/a/index.ts'. ======== - ======== Resolving module './' from '/a/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/a/package.json' does not exist according to earlier cached lookups. - File '/a/index.ts' exists - use it as a name resolution result. - ======== Module name './' was successfully resolved to '/a/index.ts'. ======== - ======== Resolving module '..' from '/a/b/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. --File '/a/package.json' does not exist according to earlier cached lookups. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/a/package.json' does not exist. - File '/a/index.ts' exists - use it as a name resolution result. - ======== Module name '..' was successfully resolved to '/a/index.ts'. ======== - ======== Resolving module '../' from '/a/b/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/a/package.json' does not exist according to earlier cached lookups. - File '/a/index.ts' exists - use it as a name resolution result. - ======== Module name '../' was successfully resolved to '/a/index.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff deleted file mode 100644 index f5f1ce8973..0000000000 --- a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash_noResolve.trace.json.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.importWithTrailingSlash_noResolve.trace.json -+++ new.importWithTrailingSlash_noResolve.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo/' from '/a.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, Declaration. --Directory '/foo/' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/foo/', target file types: JavaScript. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo/', target file types: TypeScript, JavaScript, Declaration, JSON. - Directory '/foo/' does not exist, skipping all lookups in it. - ======== Module name './foo/' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff b/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff deleted file mode 100644 index a484855b34..0000000000 --- a/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=false).trace.json.diff +++ /dev/null @@ -1,5 +0,0 @@ ---- old.libReplacement(libreplacement=false).trace.json -+++ new.libReplacement(libreplacement=false).trace.json -@@= skipped -0, +0 lines =@@ --[] -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff b/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff deleted file mode 100644 index c02620ca25..0000000000 --- a/testdata/baselines/reference/submodule/compiler/libReplacement(libreplacement=true).trace.json.diff +++ /dev/null @@ -1,1018 +0,0 @@ ---- old.libReplacement(libreplacement=true).trace.json -+++ new.libReplacement(libreplacement=true).trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving module '@typescript/lib-esnext' from '/.src/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext' --Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024' from '/.src/__lib_node_modules_lookup_lib.es2024.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024' --Loading module '@typescript/lib-es2024' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024' was not resolved. ======== --======== Resolving module '@typescript/lib-es2023' from '/.src/__lib_node_modules_lookup_lib.es2023.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023' --Loading module '@typescript/lib-es2023' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2023' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022' from '/.src/__lib_node_modules_lookup_lib.es2022.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022' --Loading module '@typescript/lib-es2022' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022' was not resolved. ======== --======== Resolving module '@typescript/lib-es2021' from '/.src/__lib_node_modules_lookup_lib.es2021.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021' --Loading module '@typescript/lib-es2021' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2021' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020' from '/.src/__lib_node_modules_lookup_lib.es2020.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020' --Loading module '@typescript/lib-es2020' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020' was not resolved. ======== --======== Resolving module '@typescript/lib-es2019' from '/.src/__lib_node_modules_lookup_lib.es2019.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019' --Loading module '@typescript/lib-es2019' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2019' was not resolved. ======== --======== Resolving module '@typescript/lib-es2018' from '/.src/__lib_node_modules_lookup_lib.es2018.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018' --Loading module '@typescript/lib-es2018' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2018' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017' from '/.src/__lib_node_modules_lookup_lib.es2017.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017' --Loading module '@typescript/lib-es2017' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017' was not resolved. ======== --======== Resolving module '@typescript/lib-es2016' from '/.src/__lib_node_modules_lookup_lib.es2016.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2016' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2016' --Loading module '@typescript/lib-es2016' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2016' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015' from '/.src/__lib_node_modules_lookup_lib.es2015.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015' --Loading module '@typescript/lib-es2015' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015' was not resolved. ======== --======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es5' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/core' from '/.src/__lib_node_modules_lookup_lib.es2015.core.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/core' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/core' --Loading module '@typescript/lib-es2015/core' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/core' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/collection' from '/.src/__lib_node_modules_lookup_lib.es2015.collection.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/collection' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/collection' --Loading module '@typescript/lib-es2015/collection' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/collection' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/iterable' from '/.src/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/iterable' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/iterable' --Loading module '@typescript/lib-es2015/iterable' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/iterable' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/symbol' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/symbol' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/symbol' --Loading module '@typescript/lib-es2015/symbol' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/symbol' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/generator' from '/.src/__lib_node_modules_lookup_lib.es2015.generator.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/generator' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/generator' --Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/generator' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/promise' from '/.src/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/promise' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/promise' --Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/promise' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/proxy' from '/.src/__lib_node_modules_lookup_lib.es2015.proxy.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/proxy' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/proxy' --Loading module '@typescript/lib-es2015/proxy' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/proxy' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/reflect' from '/.src/__lib_node_modules_lookup_lib.es2015.reflect.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/reflect' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/reflect' --Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/reflect' was not resolved. ======== --======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/symbol-wellknown' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2015/symbol-wellknown' --Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ======== --======== Resolving module '@typescript/lib-es2016/array-include' from '/.src/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2016/array-include' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2016/array-include' --Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2016/array-include' was not resolved. ======== --======== Resolving module '@typescript/lib-es2016/intl' from '/.src/__lib_node_modules_lookup_lib.es2016.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2016/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2016/intl' --Loading module '@typescript/lib-es2016/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2016/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/arraybuffer' from '/.src/__lib_node_modules_lookup_lib.es2017.arraybuffer.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/arraybuffer' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/arraybuffer' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/arraybuffer' --Loading module '@typescript/lib-es2017/arraybuffer' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/arraybuffer' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/date' from '/.src/__lib_node_modules_lookup_lib.es2017.date.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/date' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/date' --Loading module '@typescript/lib-es2017/date' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/date' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/intl' from '/.src/__lib_node_modules_lookup_lib.es2017.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/intl' --Loading module '@typescript/lib-es2017/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/object' from '/.src/__lib_node_modules_lookup_lib.es2017.object.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/object' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/object' --Loading module '@typescript/lib-es2017/object' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/object' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2017.sharedmemory.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/sharedmemory' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/sharedmemory' --Loading module '@typescript/lib-es2017/sharedmemory' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/sharedmemory' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/string' from '/.src/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/string' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/string' --Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/string' was not resolved. ======== --======== Resolving module '@typescript/lib-es2017/typedarrays' from '/.src/__lib_node_modules_lookup_lib.es2017.typedarrays.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/typedarrays' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2017/typedarrays' --Loading module '@typescript/lib-es2017/typedarrays' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2017/typedarrays' was not resolved. ======== --======== Resolving module '@typescript/lib-es2018/asynciterable' from '/.src/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/asynciterable' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/asynciterable' --Loading module '@typescript/lib-es2018/asynciterable' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ======== --======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '/.src/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/asyncgenerator' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/asyncgenerator' --Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2018/asyncgenerator' was not resolved. ======== --======== Resolving module '@typescript/lib-es2018/promise' from '/.src/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/promise' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/promise' --Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2018/promise' was not resolved. ======== --======== Resolving module '@typescript/lib-es2018/regexp' from '/.src/__lib_node_modules_lookup_lib.es2018.regexp.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/regexp' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/regexp' --Loading module '@typescript/lib-es2018/regexp' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2018/regexp' was not resolved. ======== --======== Resolving module '@typescript/lib-es2018/intl' from '/.src/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2018/intl' --Loading module '@typescript/lib-es2018/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2018/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2019/array' from '/.src/__lib_node_modules_lookup_lib.es2019.array.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/array' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/array' --Loading module '@typescript/lib-es2019/array' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2019/array' was not resolved. ======== --======== Resolving module '@typescript/lib-es2019/object' from '/.src/__lib_node_modules_lookup_lib.es2019.object.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/object' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/object' --Loading module '@typescript/lib-es2019/object' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2019/object' was not resolved. ======== --======== Resolving module '@typescript/lib-es2019/string' from '/.src/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/string' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/string' --Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2019/string' was not resolved. ======== --======== Resolving module '@typescript/lib-es2019/symbol' from '/.src/__lib_node_modules_lookup_lib.es2019.symbol.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/symbol' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/symbol' --Loading module '@typescript/lib-es2019/symbol' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2019/symbol' was not resolved. ======== --======== Resolving module '@typescript/lib-es2019/intl' from '/.src/__lib_node_modules_lookup_lib.es2019.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2019/intl' --Loading module '@typescript/lib-es2019/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2019/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/bigint' from '/.src/__lib_node_modules_lookup_lib.es2020.bigint.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/bigint' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/bigint' --Loading module '@typescript/lib-es2020/bigint' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/bigint' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/intl' from '/.src/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/intl' --Loading module '@typescript/lib-es2020/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/date' from '/.src/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/date' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/date' --Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/date' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/number' from '/.src/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/number' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/number' --Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/number' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/promise' from '/.src/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/promise' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/promise' --Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/promise' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2020.sharedmemory.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/sharedmemory' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/sharedmemory' --Loading module '@typescript/lib-es2020/sharedmemory' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/sharedmemory' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/string' from '/.src/__lib_node_modules_lookup_lib.es2020.string.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/string' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/string' --Loading module '@typescript/lib-es2020/string' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/string' was not resolved. ======== --======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '/.src/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/symbol-wellknown' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2020/symbol-wellknown' --Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2020/symbol-wellknown' was not resolved. ======== --======== Resolving module '@typescript/lib-es2021/promise' from '/.src/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/promise' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/promise' --Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2021/promise' was not resolved. ======== --======== Resolving module '@typescript/lib-es2021/string' from '/.src/__lib_node_modules_lookup_lib.es2021.string.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/string' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/string' --Loading module '@typescript/lib-es2021/string' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2021/string' was not resolved. ======== --======== Resolving module '@typescript/lib-es2021/weakref' from '/.src/__lib_node_modules_lookup_lib.es2021.weakref.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/weakref' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/weakref' --Loading module '@typescript/lib-es2021/weakref' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2021/weakref' was not resolved. ======== --======== Resolving module '@typescript/lib-es2021/intl' from '/.src/__lib_node_modules_lookup_lib.es2021.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2021/intl' --Loading module '@typescript/lib-es2021/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2021/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022/array' from '/.src/__lib_node_modules_lookup_lib.es2022.array.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/array' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/array' --Loading module '@typescript/lib-es2022/array' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022/array' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022/error' from '/.src/__lib_node_modules_lookup_lib.es2022.error.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/error' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/error' --Loading module '@typescript/lib-es2022/error' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022/error' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022/intl' from '/.src/__lib_node_modules_lookup_lib.es2022.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/intl' --Loading module '@typescript/lib-es2022/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022/object' from '/.src/__lib_node_modules_lookup_lib.es2022.object.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/object' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/object' --Loading module '@typescript/lib-es2022/object' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022/object' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022/regexp' from '/.src/__lib_node_modules_lookup_lib.es2022.regexp.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/regexp' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/regexp' --Loading module '@typescript/lib-es2022/regexp' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022/regexp' was not resolved. ======== --======== Resolving module '@typescript/lib-es2022/string' from '/.src/__lib_node_modules_lookup_lib.es2022.string.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/string' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2022/string' --Loading module '@typescript/lib-es2022/string' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2022/string' was not resolved. ======== --======== Resolving module '@typescript/lib-es2023/array' from '/.src/__lib_node_modules_lookup_lib.es2023.array.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023/array' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023/array' --Loading module '@typescript/lib-es2023/array' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2023/array' was not resolved. ======== --======== Resolving module '@typescript/lib-es2023/collection' from '/.src/__lib_node_modules_lookup_lib.es2023.collection.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023/collection' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023/collection' --Loading module '@typescript/lib-es2023/collection' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2023/collection' was not resolved. ======== --======== Resolving module '@typescript/lib-es2023/intl' from '/.src/__lib_node_modules_lookup_lib.es2023.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2023/intl' --Loading module '@typescript/lib-es2023/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2023/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/arraybuffer' from '/.src/__lib_node_modules_lookup_lib.es2024.arraybuffer.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/arraybuffer' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/arraybuffer' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/arraybuffer' --Loading module '@typescript/lib-es2024/arraybuffer' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/arraybuffer' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/collection' from '/.src/__lib_node_modules_lookup_lib.es2024.collection.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/collection' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/collection' --Loading module '@typescript/lib-es2024/collection' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/collection' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/object' from '/.src/__lib_node_modules_lookup_lib.es2024.object.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/object' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/object' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/object' --Loading module '@typescript/lib-es2024/object' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/object' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/promise' from '/.src/__lib_node_modules_lookup_lib.es2024.promise.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/promise' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/promise' --Loading module '@typescript/lib-es2024/promise' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/promise' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/regexp' from '/.src/__lib_node_modules_lookup_lib.es2024.regexp.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/regexp' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/regexp' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/regexp' --Loading module '@typescript/lib-es2024/regexp' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/regexp' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/sharedmemory' from '/.src/__lib_node_modules_lookup_lib.es2024.sharedmemory.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/sharedmemory' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/sharedmemory' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/sharedmemory' --Loading module '@typescript/lib-es2024/sharedmemory' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/sharedmemory' was not resolved. ======== --======== Resolving module '@typescript/lib-es2024/string' from '/.src/__lib_node_modules_lookup_lib.es2024.string.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es2024/string' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/string' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es2024/string' --Loading module '@typescript/lib-es2024/string' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es2024/string' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/intl' from '/.src/__lib_node_modules_lookup_lib.esnext.intl.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/intl' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/intl' --Loading module '@typescript/lib-esnext/intl' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/intl' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/decorators' from '/.src/__lib_node_modules_lookup_lib.esnext.decorators.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/decorators' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/decorators' --Loading module '@typescript/lib-esnext/decorators' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/decorators' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/disposable' from '/.src/__lib_node_modules_lookup_lib.esnext.disposable.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/disposable' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/disposable' --Loading module '@typescript/lib-esnext/disposable' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/disposable' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/collection' from '/.src/__lib_node_modules_lookup_lib.esnext.collection.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/collection' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/collection' --Loading module '@typescript/lib-esnext/collection' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/collection' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/array' from '/.src/__lib_node_modules_lookup_lib.esnext.array.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/array' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/array' --Loading module '@typescript/lib-esnext/array' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/array' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/iterator' from '/.src/__lib_node_modules_lookup_lib.esnext.iterator.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/iterator' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/iterator' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/iterator' --Loading module '@typescript/lib-esnext/iterator' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/iterator' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/promise' from '/.src/__lib_node_modules_lookup_lib.esnext.promise.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/promise' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/promise' --Loading module '@typescript/lib-esnext/promise' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/promise' was not resolved. ======== --======== Resolving module '@typescript/lib-esnext/float16' from '/.src/__lib_node_modules_lookup_lib.esnext.float16.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-esnext/float16' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/float16' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-esnext/float16' --Loading module '@typescript/lib-esnext/float16' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-esnext/float16' was not resolved. ========" -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff deleted file mode 100644 index 3d165fceac..0000000000 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json.diff +++ /dev/null @@ -1,103 +0,0 @@ ---- old.libTypeScriptOverrideSimple.trace.json -+++ new.libTypeScriptOverrideSimple.trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@typescript/lib-dom/package.json' does not exist. --File '/node_modules/@typescript/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - Scoped package detected, looking in 'typescript__lib-dom' --File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@typescript/lib-dom/package.json' does not exist. - File '/node_modules/@typescript/lib-dom.ts' does not exist. - File '/node_modules/@typescript/lib-dom.tsx' does not exist. - File '/node_modules/@typescript/lib-dom.d.ts' does not exist. -@@= skipped -16, +16 lines =@@ - File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'. - ======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ======== --======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --File '/node_modules/@typescript/lib-es5.ts' does not exist. --File '/node_modules/@typescript/lib-es5.tsx' does not exist. --File '/node_modules/@typescript/lib-es5.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --File '/node_modules/@typescript/lib-es5.js' does not exist. --File '/node_modules/@typescript/lib-es5.jsx' does not exist. --======== Module name '@typescript/lib-es5' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --File '/node_modules/@typescript/lib-decorators.ts' does not exist. --File '/node_modules/@typescript/lib-decorators.tsx' does not exist. --File '/node_modules/@typescript/lib-decorators.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --File '/node_modules/@typescript/lib-decorators.js' does not exist. --File '/node_modules/@typescript/lib-decorators.jsx' does not exist. --======== Module name '@typescript/lib-decorators' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== --======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== --======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --File '/node_modules/@typescript/lib-scripthost.ts' does not exist. --File '/node_modules/@typescript/lib-scripthost.tsx' does not exist. --File '/node_modules/@typescript/lib-scripthost.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --File '/node_modules/@typescript/lib-scripthost.js' does not exist. --File '/node_modules/@typescript/lib-scripthost.jsx' does not exist. --======== Module name '@typescript/lib-scripthost' was not resolved. ========" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff deleted file mode 100644 index ff7db98c44..0000000000 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json.diff +++ /dev/null @@ -1,98 +0,0 @@ ---- old.libTypeScriptOverrideSimpleConfig.trace.json -+++ new.libTypeScriptOverrideSimpleConfig.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/somepath/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. - File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist. -@@= skipped -10, +13 lines =@@ - File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. - ======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ======== --File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. --File '/somepath/node_modules/@typescript/package.json' does not exist. --File '/somepath/node_modules/package.json' does not exist. --File '/somepath/package.json' does not exist. --File '/package.json' does not exist. --======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-es5.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-es5.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-es5.d.ts' does not exist. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/somepath/node_modules/@typescript/lib-es5.js' does not exist. --File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es5' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-decorators.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-decorators.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-decorators.d.ts' does not exist. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/somepath/node_modules/@typescript/lib-decorators.js' does not exist. --File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== --======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== --======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-scripthost.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-scripthost.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-scripthost.d.ts' does not exist. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist. --File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-scripthost' was not resolved. ========" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff deleted file mode 100644 index 2da7d08cd3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json.diff +++ /dev/null @@ -1,135 +0,0 @@ ---- old.libTypeScriptSubfileResolving.trace.json -+++ new.libTypeScriptSubfileResolving.trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@typescript/lib-dom/package.json' does not exist. --File '/node_modules/@typescript/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-dom/iterable' --File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@typescript/lib-dom/iterable.ts' does not exist. --File '/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. --File '/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/@typescript/lib-dom/iterable.d.ts', result '/node_modules/@typescript/lib-dom/iterable.d.ts'. --======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== --======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --File '/node_modules/@typescript/lib-es5.ts' does not exist. --File '/node_modules/@typescript/lib-es5.tsx' does not exist. --File '/node_modules/@typescript/lib-es5.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --File '/node_modules/@typescript/lib-es5.js' does not exist. --File '/node_modules/@typescript/lib-es5.jsx' does not exist. --======== Module name '@typescript/lib-es5' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --File '/node_modules/@typescript/lib-decorators.ts' does not exist. --File '/node_modules/@typescript/lib-decorators.tsx' does not exist. --File '/node_modules/@typescript/lib-decorators.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --File '/node_modules/@typescript/lib-decorators.js' does not exist. --File '/node_modules/@typescript/lib-decorators.jsx' does not exist. --======== Module name '@typescript/lib-decorators' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== - ======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - Scoped package detected, looking in 'typescript__lib-dom' --File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@typescript/lib-dom/package.json' does not exist. - File '/node_modules/@typescript/lib-dom.ts' does not exist. - File '/node_modules/@typescript/lib-dom.tsx' does not exist. - File '/node_modules/@typescript/lib-dom.d.ts' does not exist. -@@= skipped -78, +16 lines =@@ - File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@typescript/lib-dom/index.d.ts', result '/node_modules/@typescript/lib-dom/index.d.ts'. - ======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ======== --======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== --======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --File '/node_modules/@typescript/lib-scripthost.ts' does not exist. --File '/node_modules/@typescript/lib-scripthost.tsx' does not exist. --File '/node_modules/@typescript/lib-scripthost.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/.src/node_modules' does not exist, skipping all lookups in it. --File '/node_modules/@typescript/lib-scripthost.js' does not exist. --File '/node_modules/@typescript/lib-scripthost.jsx' does not exist. --======== Module name '@typescript/lib-scripthost' was not resolved. ========" -+======== Resolving module '@typescript/lib-dom/iterable' from '/.src/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/.src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Scoped package detected, looking in 'typescript__lib-dom/iterable' -+File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@typescript/lib-dom/iterable.ts' does not exist. -+File '/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. -+File '/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@typescript/lib-dom/iterable.d.ts', result '/node_modules/@typescript/lib-dom/iterable.d.ts'. -+======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff deleted file mode 100644 index aec8cd6928..0000000000 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json.diff +++ /dev/null @@ -1,127 +0,0 @@ ---- old.libTypeScriptSubfileResolvingConfig.trace.json -+++ new.libTypeScriptSubfileResolvingConfig.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving module '@typescript/lib-dom/iterable' from '/somepath/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. --File '/somepath/node_modules/@typescript/lib-dom/iterable.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. --Resolving real path for '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts', result '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. --======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== --File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. --File '/somepath/node_modules/@typescript/package.json' does not exist. --File '/somepath/node_modules/package.json' does not exist. --File '/somepath/package.json' does not exist. --File '/package.json' does not exist. --======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-es5.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-es5.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-es5.d.ts' does not exist. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-es5' --Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/somepath/node_modules/@typescript/lib-es5.js' does not exist. --File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-es5' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-decorators.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-decorators.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-decorators.d.ts' does not exist. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators' --Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/somepath/node_modules/@typescript/lib-decorators.js' does not exist. --File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators' was not resolved. ======== --======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-decorators/legacy' --Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-decorators/legacy' was not resolved. ======== - ======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/somepath/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. -+File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. - File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist. - File '/somepath/node_modules/@typescript/lib-dom.tsx' does not exist. - File '/somepath/node_modules/@typescript/lib-dom.d.ts' does not exist. -@@= skipped -71, +13 lines =@@ - File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/somepath/node_modules/@typescript/lib-dom/index.d.ts', result '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. - ======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ======== --File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. --File '/somepath/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. --File '/somepath/node_modules/package.json' does not exist according to earlier cached lookups. -+======== Resolving module '@typescript/lib-dom/iterable' from '/somepath/__lib_node_modules_lookup_lib.dom.iterable.d.ts__.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - File '/somepath/package.json' does not exist according to earlier cached lookups. - File '/package.json' does not exist according to earlier cached lookups. --======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-webworker/importscripts' --Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ======== --======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/somepath/node_modules/@typescript/lib-scripthost.ts' does not exist. --File '/somepath/node_modules/@typescript/lib-scripthost.tsx' does not exist. --File '/somepath/node_modules/@typescript/lib-scripthost.d.ts' does not exist. --Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'typescript__lib-scripthost' --Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist. --File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist. --Directory '/node_modules' does not exist, skipping all lookups in it. --======== Module name '@typescript/lib-scripthost' was not resolved. ========" -+Loading module '@typescript/lib-dom/iterable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. -+File '/somepath/node_modules/@typescript/lib-dom/iterable.ts' does not exist. -+File '/somepath/node_modules/@typescript/lib-dom/iterable.tsx' does not exist. -+File '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts', result '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. -+======== Module name '@typescript/lib-dom/iterable' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/iterable.d.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff b/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff deleted file mode 100644 index 996b805c6b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/maxNodeModuleJsDepthDefaultsToZero.trace.json.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.maxNodeModuleJsDepthDefaultsToZero.trace.json -+++ new.maxNodeModuleJsDepthDefaultsToZero.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'shortid' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/shortid/package.json' does not exist. - File '/node_modules/shortid.ts' does not exist. -@@= skipped -9, +11 lines =@@ - File '/node_modules/shortid/index.tsx' does not exist. - File '/node_modules/shortid/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'shortid' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/shortid/package.json' does not exist according to earlier cached lookups. - File '/node_modules/shortid.js' does not exist. - File '/node_modules/shortid.jsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff deleted file mode 100644 index 327889abc1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/modulePreserve2.trace.json.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.modulePreserve2.trace.json -+++ new.modulePreserve2.trace.json -@@= skipped -33, +33 lines =@@ - Exiting conditional exports. - Resolving real path for '/node_modules/dep/require.d.ts', result '/node_modules/dep/require.d.ts'. - ======== Module name 'dep' was successfully resolved to '/node_modules/dep/require.d.ts'. ======== --File '/node_modules/dep/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff deleted file mode 100644 index 6393bc991a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.modulePreserve3.trace.json -+++ new.modulePreserve3.trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@types/react/package.json' does not exist. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module 'react/jsx-runtime' from '/index.tsx'. ======== - Module resolution kind is not specified, using 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. --File '/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist. - Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. -@@= skipped -14, +10 lines =@@ - ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. --File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@types/react/package.json' does not exist. - File '/node_modules/@types/react/index.d.ts' does not exist. - Looking up in 'node_modules' folder, initial location '/.src'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/react.d.ts' does not exist. - File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. - File '/node_modules/@types/react.d.ts' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff deleted file mode 100644 index 176b22d78b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirective.trace.json.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.moduleResolutionAsTypeReferenceDirective.trace.json -+++ new.moduleResolutionAsTypeReferenceDirective.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'phaser' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. --File '/typings/phaser.d.ts' does not exist. --Found 'package.json' at '/typings/phaser/package.json'. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. --File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. --'package.json' does not have a 'peerDependencies' field. --Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. --======== Module name 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3'. ======== --======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ======== --Resolving with primary search path '/typings'. --File '/typings/phaser.d.ts' does not exist. --File '/typings/phaser/package.json' exists according to earlier cached lookups. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. --File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. --Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. --======== Type reference directive 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3', primary: true. ======== -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'phaser' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff deleted file mode 100644 index a31f463da3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json -+++ new.moduleResolutionAsTypeReferenceDirectiveAmbient.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'phaser' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'phaser' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. --File '/typings/phaser.d.ts' does not exist. --Found 'package.json' at '/typings/phaser/package.json'. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. --File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. --'package.json' does not have a 'peerDependencies' field. --Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. --======== Module name 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3'. ======== --======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ======== --Resolving with primary search path '/typings'. --File '/typings/phaser.d.ts' does not exist. --File '/typings/phaser/package.json' exists according to earlier cached lookups. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'types/phaser.d.ts' that references '/typings/phaser/types/phaser.d.ts'. --File '/typings/phaser/types/phaser.d.ts' exists - use it as a name resolution result. --Resolving real path for '/typings/phaser/types/phaser.d.ts', result '/typings/phaser/types/phaser.d.ts'. --======== Type reference directive 'phaser' was successfully resolved to '/typings/phaser/types/phaser.d.ts' with Package ID 'phaser/types/phaser.d.ts@1.2.3', primary: true. ======== -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'phaser' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff deleted file mode 100644 index 751e379338..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionAsTypeReferenceDirectiveScoped.trace.json.diff +++ /dev/null @@ -1,140 +0,0 @@ ---- old.moduleResolutionAsTypeReferenceDirectiveScoped.trace.json -+++ new.moduleResolutionAsTypeReferenceDirectiveScoped.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@scoped/typescache' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module '@scoped/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Scoped package detected, looking in 'scoped__typescache' --File '/a/types/@scoped/typescache.d.ts' does not exist. --File '/a/types/@scoped/typescache/package.json' does not exist. --File '/a/types/@scoped/typescache/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/a/types/@scoped/typescache/index.d.ts', result '/a/types/@scoped/typescache/index.d.ts'. --======== Module name '@scoped/typescache' was successfully resolved to '/a/types/@scoped/typescache/index.d.ts'. ======== -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name '@scoped/typescache' was not resolved. ======== - ======== Resolving module '@mangled/typescache' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@mangled/typescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'mangled__typescache' --Scoped package detected, looking in 'mangled__typescache' --File '/a/node_modules/@types/mangled__typescache.d.ts' does not exist. --Loading module '@mangled/typescache' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Scoped package detected, looking in 'mangled__typescache' -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name '@mangled/typescache' was not resolved. ======== - ======== Resolving module '@scoped/nodemodulescache' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@scoped/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Scoped package detected, looking in 'scoped__nodemodulescache' --File '/a/types/@scoped/nodemodulescache.d.ts' does not exist. --File '/a/node_modules/@scoped/nodemodulescache.d.ts' does not exist. --File '/a/node_modules/@scoped/nodemodulescache/package.json' does not exist. --File '/a/node_modules/@scoped/nodemodulescache/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/a/node_modules/@scoped/nodemodulescache/index.d.ts', result '/a/node_modules/@scoped/nodemodulescache/index.d.ts'. --======== Module name '@scoped/nodemodulescache' was successfully resolved to '/a/node_modules/@scoped/nodemodulescache/index.d.ts'. ======== -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name '@scoped/nodemodulescache' was not resolved. ======== - ======== Resolving module '@mangled/nodemodulescache' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'mangled__nodemodulescache' --Scoped package detected, looking in 'mangled__nodemodulescache' --File '/a/node_modules/@types/mangled__nodemodulescache.d.ts' does not exist. --Loading module '@mangled/nodemodulescache' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Scoped package detected, looking in 'mangled__nodemodulescache' -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name '@mangled/nodemodulescache' was not resolved. ======== - ======== Resolving module '@scoped/attypescache' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'scoped__attypescache' --File '/a/types/@scoped/attypescache.d.ts' does not exist. --File '/a/node_modules/@scoped/attypescache.d.ts' does not exist. --Scoped package detected, looking in 'scoped__attypescache' --File '/a/node_modules/@types/scoped__attypescache.d.ts' does not exist. --Loading module '@scoped/attypescache' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Scoped package detected, looking in 'scoped__attypescache' -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name '@scoped/attypescache' was not resolved. ======== - ======== Resolving module '@mangled/attypescache' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/node_modules' does not exist, skipping all lookups in it. --Scoped package detected, looking in 'mangled__attypescache' --Scoped package detected, looking in 'mangled__attypescache' --File '/a/node_modules/@types/mangled__attypescache.d.ts' does not exist. --File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist. --File '/a/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/a/node_modules/@types/mangled__attypescache/index.d.ts', result '/a/node_modules/@types/mangled__attypescache/index.d.ts'. --======== Module name '@mangled/attypescache' was successfully resolved to '/a/node_modules/@types/mangled__attypescache/index.d.ts'. ======== --File '/a/node_modules/@scoped/nodemodulescache/package.json' does not exist according to earlier cached lookups. --File '/a/node_modules/@scoped/package.json' does not exist. --File '/a/node_modules/package.json' does not exist. --File '/a/package.json' does not exist. --File '/package.json' does not exist. --File '/a/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups. --File '/a/node_modules/@types/package.json' does not exist. --File '/a/node_modules/package.json' does not exist according to earlier cached lookups. --File '/a/package.json' does not exist according to earlier cached lookups. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - File '/package.json' does not exist according to earlier cached lookups. --======== Resolving type reference directive 'dummy', containing file '/__inferred type names__.ts', root directory '/a/types,/a/node_modules,/a/node_modules/@types'. ======== --Resolving with primary search path '/a/types, /a/node_modules, /a/node_modules/@types'. --File '/a/types/dummy.d.ts' does not exist. --File '/a/types/dummy/package.json' does not exist. --File '/a/types/dummy/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/a/types/dummy/index.d.ts', result '/a/types/dummy/index.d.ts'. --======== Type reference directive 'dummy' was successfully resolved to '/a/types/dummy/index.d.ts', primary: true. ======== -+Loading module '@mangled/attypescache' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Scoped package detected, looking in 'mangled__attypescache' -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name '@mangled/attypescache' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff deleted file mode 100644 index c417d87fc9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json.diff +++ /dev/null @@ -1,120 +0,0 @@ ---- old.moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json -+++ new.moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'anotherLib' from '/project/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'anotherLib'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'. --Resolving module name 'anotherLib' relative to base url '/project' - '/project/anotherLib'. --Loading module as file / folder, candidate module location '/project/anotherLib', target file types: TypeScript, Declaration. --File '/project/anotherLib.ts' does not exist. --File '/project/anotherLib.tsx' does not exist. --File '/project/anotherLib.d.ts' does not exist. --Directory '/project/anotherLib' does not exist, skipping all lookups in it. --Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File '/project/src/package.json' does not exist. -+File '/project/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/project/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/project/src/node_modules/@types' does not exist, skipping all lookups in it. - File '/project/node_modules/anotherLib/package.json' does not exist. - File '/project/node_modules/anotherLib.ts' does not exist. - File '/project/node_modules/anotherLib.tsx' does not exist. -@@= skipped -21, +18 lines =@@ - Resolving real path for '/project/node_modules/anotherLib/index.d.ts', result '/project/node_modules/anotherLib/index.d.ts'. - ======== Module name 'anotherLib' was successfully resolved to '/project/node_modules/anotherLib/index.d.ts'. ======== - ======== Resolving module '@shared/lib/app' from '/project/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name '@shared/lib/app'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '@shared/lib/app'. - Module name '@shared/lib/app', matched pattern '@shared/*'. - Trying substitution '../shared/*', candidate module location: '../shared/lib/app'. --Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/shared/lib/app', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/shared/lib/app.ts' does not exist. - File '/shared/lib/app.tsx' does not exist. - File '/shared/lib/app.d.ts' exists - use it as a name resolution result. - ======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ======== --File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups. --File '/project/node_modules/package.json' does not exist. --File '/project/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'. --Resolving module name 'troublesome-lib/lib/Compactable' relative to base url '/project' - '/project/troublesome-lib/lib/Compactable'. --Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Compactable', target file types: TypeScript, Declaration. --Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups. -+File '/project/node_modules/package.json' does not exist according to earlier cached lookups. -+File '/project/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/project/node_modules/anotherLib/node_modules' does not exist, skipping all lookups in it. -+Directory '/project/node_modules/anotherLib/node_modules/@types' does not exist, skipping all lookups in it. - Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'. - 'package.json' does not have a 'typesVersions' field. - File '/project/node_modules/troublesome-lib/lib/Compactable.ts' does not exist. -@@= skipped -31, +29 lines =@@ - File '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/project/node_modules/troublesome-lib/lib/Compactable.d.ts', result '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. --======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib/lib/Compactable.d.ts@1.17.1'. ======== --File '/project/node_modules/troublesome-lib/lib/package.json' does not exist. --File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. -+======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== - ======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist. - File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist. - File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. - File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. --======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ======== --File '/project/node_modules/troublesome-lib/lib/package.json' does not exist according to earlier cached lookups. --File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. -+'package.json' does not have a 'peerDependencies' field. -+======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== - ======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Option'. --'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'. --Resolving module name 'troublesome-lib/lib/Option' relative to base url '/project' - '/project/troublesome-lib/lib/Option'. --Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Option', target file types: TypeScript, Declaration. --Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File '/shared/lib/package.json' does not exist. -+File '/shared/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/shared/lib/node_modules' does not exist, skipping all lookups in it. -+Directory '/shared/lib/node_modules/@types' does not exist, skipping all lookups in it. - Found 'package.json' at '/shared/node_modules/troublesome-lib/package.json'. - 'package.json' does not have a 'typesVersions' field. - File '/shared/node_modules/troublesome-lib/lib/Option.ts' does not exist. -@@= skipped -30, +29 lines =@@ - File '/shared/node_modules/troublesome-lib/lib/Option.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/shared/node_modules/troublesome-lib/lib/Option.d.ts', result '/shared/node_modules/troublesome-lib/lib/Option.d.ts'. --======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ======== --File '/shared/node_modules/troublesome-lib/lib/package.json' does not exist. --File '/shared/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups. -+======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib@1.17.1'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff deleted file mode 100644 index 5daea0b904..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.trace.json.diff +++ /dev/null @@ -1,39 +0,0 @@ ---- old.moduleResolutionWithExtensions_notSupported.trace.json -+++ new.moduleResolutionWithExtensions_notSupported.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './tsx' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/tsx', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/tsx.ts' does not exist. - File '/tsx.tsx' exists - use it as a name resolution result. - ======== Module name './tsx' was successfully resolved to '/tsx.tsx'. ======== - ======== Resolving module './jsx' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/jsx.ts' does not exist. - File '/jsx.tsx' does not exist. - File '/jsx.d.ts' does not exist. --Directory '/jsx' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript. - File '/jsx.js' does not exist. - File '/jsx.jsx' exists - use it as a name resolution result. - ======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== - ======== Resolving module './js' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/js', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/js', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/js.ts' does not exist. - File '/js.tsx' does not exist. - File '/js.d.ts' does not exist. --Directory '/js' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/js', target file types: JavaScript. - File '/js.js' exists - use it as a name resolution result. - ======== Module name './js' was successfully resolved to '/js.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff deleted file mode 100644 index 9b45d00a54..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.trace.json.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.moduleResolutionWithExtensions_notSupported2.trace.json -+++ new.moduleResolutionWithExtensions_notSupported2.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './jsx' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/jsx.ts' does not exist. - File '/jsx.tsx' does not exist. - File '/jsx.d.ts' does not exist. --Directory '/jsx' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript. - File '/jsx.js' does not exist. - File '/jsx.jsx' exists - use it as a name resolution result. - ======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff deleted file mode 100644 index 80582d5fd6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported3.trace.json.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.moduleResolutionWithExtensions_notSupported3.trace.json -+++ new.moduleResolutionWithExtensions_notSupported3.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './jsx' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/jsx', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/jsx.ts' does not exist. - File '/jsx.tsx' does not exist. - File '/jsx.d.ts' does not exist. --Directory '/jsx' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/jsx', target file types: JavaScript. - File '/jsx.js' does not exist. - File '/jsx.jsx' exists - use it as a name resolution result. - ======== Module name './jsx' was successfully resolved to '/jsx.jsx'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff deleted file mode 100644 index 557d89bad5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json.diff +++ /dev/null @@ -1,61 +0,0 @@ ---- old.moduleResolutionWithExtensions_unexpected.trace.json -+++ new.moduleResolutionWithExtensions_unexpected.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'normalize.css' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/normalize.css/package.json'. - File name '/node_modules/normalize.css' has a '.css' extension - stripping it. -@@= skipped -25, +27 lines =@@ - File '/node_modules/normalize.css/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. - File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it. --Loading module 'normalize.css' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups. - File name '/node_modules/normalize.css' has a '.css' extension - stripping it. - File '/node_modules/normalize.css.js' does not exist. - File '/node_modules/normalize.css.jsx' does not exist. - 'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. - File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. --Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript. -+Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript, JSON. - File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. - File '/node_modules/normalize.css/normalize.css.js' does not exist. - File '/node_modules/normalize.css/normalize.css.jsx' does not exist. - Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it. - File '/node_modules/normalize.css/index.js' does not exist. - File '/node_modules/normalize.css/index.jsx' does not exist. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups. --File name '/node_modules/normalize.css' has a '.css' extension - stripping it. --File '/node_modules/normalize.d.css.ts' does not exist. --File '/node_modules/normalize.css.ts' does not exist. --File '/node_modules/normalize.css.tsx' does not exist. --File '/node_modules/normalize.css.d.ts' does not exist. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. --File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. --File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. --Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: TypeScript, Declaration. --File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. --File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. --File '/node_modules/normalize.css/normalize.css.ts' does not exist. --File '/node_modules/normalize.css/normalize.css.tsx' does not exist. --File '/node_modules/normalize.css/normalize.css.d.ts' does not exist. --Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it. --File '/node_modules/normalize.css/index.ts' does not exist. --File '/node_modules/normalize.css/index.tsx' does not exist. --File '/node_modules/normalize.css/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it. - ======== Module name 'normalize.css' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff deleted file mode 100644 index 93f9f58d02..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json.diff +++ /dev/null @@ -1,53 +0,0 @@ ---- old.moduleResolutionWithExtensions_unexpected2.trace.json -+++ new.moduleResolutionWithExtensions_unexpected2.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/foo/package.json'. - File '/node_modules/foo.ts' does not exist. -@@= skipped -25, +27 lines =@@ - File '/node_modules/foo/index.tsx' does not exist. - File '/node_modules/foo/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/foo/package.json' exists according to earlier cached lookups. - File '/node_modules/foo.js' does not exist. - File '/node_modules/foo.jsx' does not exist. - 'package.json' does not have a 'main' field. - File '/node_modules/foo/index.js' does not exist. - File '/node_modules/foo/index.jsx' does not exist. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. --File '/node_modules/foo.ts' does not exist. --File '/node_modules/foo.tsx' does not exist. --File '/node_modules/foo.d.ts' does not exist. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'foo.js' that references '/node_modules/foo/foo.js'. --File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. --File '/node_modules/foo/foo.ts' does not exist. --File '/node_modules/foo/foo.tsx' does not exist. --File '/node_modules/foo/foo.d.ts' does not exist. --Loading module as file / folder, candidate module location '/node_modules/foo/foo.js', target file types: TypeScript, Declaration. --File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. --File '/node_modules/foo/foo.ts' does not exist. --File '/node_modules/foo/foo.tsx' does not exist. --File '/node_modules/foo/foo.d.ts' does not exist. --File '/node_modules/foo/foo.js.ts' does not exist. --File '/node_modules/foo/foo.js.tsx' does not exist. --File '/node_modules/foo/foo.js.d.ts' does not exist. --Directory '/node_modules/foo/foo.js' does not exist, skipping all lookups in it. --File '/node_modules/foo/index.ts' does not exist. --File '/node_modules/foo/index.tsx' does not exist. --File '/node_modules/foo/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff deleted file mode 100644 index ea0acd3f58..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withAmbientPresent.trace.json.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.moduleResolutionWithExtensions_withAmbientPresent.trace.json -+++ new.moduleResolutionWithExtensions_withAmbientPresent.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'js' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/js/package.json' does not exist. - File '/node_modules/js.ts' does not exist. -@@= skipped -9, +11 lines =@@ - File '/node_modules/js/index.tsx' does not exist. - File '/node_modules/js/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'js' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/js/package.json' does not exist according to earlier cached lookups. - File '/node_modules/js.js' does not exist. - File '/node_modules/js.jsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff deleted file mode 100644 index 1cc9427d50..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- old.moduleResolutionWithExtensions_withPaths.trace.json -+++ new.moduleResolutionWithExtensions_withPaths.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/test.js' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test.js'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'foo/test.js'. - Module name 'foo/test.js', matched pattern 'foo/*'. - Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test.js'. --Loading module as file / folder, candidate module location '/node_modules/foo/lib/test.js', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/node_modules/foo/lib/test.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/node_modules/foo/lib/test.js' has a '.js' extension - stripping it. - File '/node_modules/foo/lib/test.ts' does not exist. - File '/node_modules/foo/lib/test.tsx' does not exist. -@@= skipped -12, +12 lines =@@ - Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. - ======== Module name 'foo/test.js' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== - ======== Resolving module 'foo/test' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/test'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'foo/test'. - Module name 'foo/test', matched pattern 'foo/*'. - Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test'. --Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/node_modules/foo/lib/test.ts' does not exist. - File '/node_modules/foo/lib/test.tsx' does not exist. - File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. -@@= skipped -13, +13 lines =@@ - Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. - ======== Module name 'foo/test' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ======== - ======== Resolving module './relative.js' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/relative.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/relative.js' has a '.js' extension - stripping it. - File '/relative.ts' does not exist. - File '/relative.tsx' does not exist. - File '/relative.d.ts' exists - use it as a name resolution result. - ======== Module name './relative.js' was successfully resolved to '/relative.d.ts'. ======== - ======== Resolving module './relative' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/relative.ts' does not exist. - File '/relative.tsx' does not exist. - File '/relative.d.ts' exists - use it as a name resolution result. - ======== Module name './relative' was successfully resolved to '/relative.d.ts'. ======== --File '/node_modules/foo/lib/package.json' does not exist. --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff deleted file mode 100644 index fcc8ca7fde..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithRequireAndImport.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.moduleResolutionWithRequireAndImport.trace.json -+++ new.moduleResolutionWithRequireAndImport.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './other' from '/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/other', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/other', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/other.ts' exists - use it as a name resolution result. - ======== Module name './other' was successfully resolved to '/other.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff deleted file mode 100644 index 3930cb8875..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_empty.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.moduleResolutionWithSuffixes_empty.trace.json -+++ new.moduleResolutionWithSuffixes_empty.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff deleted file mode 100644 index eb8358a4d2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_notSpecified.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.moduleResolutionWithSuffixes_notSpecified.trace.json -+++ new.moduleResolutionWithSuffixes_notSpecified.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff deleted file mode 100644 index ed7e891f91..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one.trace.json -+++ new.moduleResolutionWithSuffixes_one.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ios.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo.ios.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff deleted file mode 100644 index 251b49daf6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneBlank.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.moduleResolutionWithSuffixes_oneBlank.trace.json -+++ new.moduleResolutionWithSuffixes_oneBlank.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff deleted file mode 100644 index dd4e2eeaa7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_oneNotFound.trace.json.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.moduleResolutionWithSuffixes_oneNotFound.trace.json -+++ new.moduleResolutionWithSuffixes_oneNotFound.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ios.ts' does not exist. - File '/foo.ios.tsx' does not exist. - File '/foo.ios.d.ts' does not exist. --Directory '/foo' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/foo', target file types: JavaScript. - File '/foo.ios.js' does not exist. - File '/foo.ios.jsx' does not exist. - Directory '/foo' does not exist, skipping all lookups in it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff deleted file mode 100644 index 1c0f945e27..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json -+++ new.moduleResolutionWithSuffixes_one_dirModuleWithIndex.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ios.ts' does not exist. - File '/foo.ios.tsx' does not exist. - File '/foo.ios.d.ts' does not exist. -+File '/foo.ios.js' does not exist. -+File '/foo.ios.jsx' does not exist. - File '/foo/package.json' does not exist. - File '/foo/index.ios.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo/index.ios.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff deleted file mode 100644 index 6ca688dafe..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule.trace.json.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalModule.trace.json -+++ new.moduleResolutionWithSuffixes_one_externalModule.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'some-library' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/some-library/package.json' does not exist. - File '/node_modules/some-library.ios.ts' does not exist. -@@= skipped -10, +12 lines =@@ - File '/node_modules/some-library/index.ios.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/some-library/index.ios.d.ts', result '/node_modules/some-library/index.ios.d.ts'. - ======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.d.ts'. ======== --File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff deleted file mode 100644 index f725871cd0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModulePath.trace.json.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalModulePath.trace.json -+++ new.moduleResolutionWithSuffixes_one_externalModulePath.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'some-library/foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'some-library/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/some-library/package.json' does not exist. - File '/node_modules/some-library/foo.ios.ts' does not exist. -@@= skipped -7, +9 lines =@@ - File '/node_modules/some-library/foo.ios.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/some-library/foo.ios.d.ts', result '/node_modules/some-library/foo.ios.d.ts'. - ======== Module name 'some-library/foo' was successfully resolved to '/node_modules/some-library/foo.ios.d.ts'. ======== --File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff deleted file mode 100644 index d7f1e94b1e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json.diff +++ /dev/null @@ -1,61 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json -+++ new.moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'some-library' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'some-library'. - Module name 'some-library', matched pattern 'some-library'. - Trying substitution 'node_modules/some-library/lib', candidate module location: 'node_modules/some-library/lib'. --Loading module as file / folder, candidate module location '/node_modules/some-library/lib', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/node_modules/some-library/lib', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/node_modules/some-library/lib.ios.ts' does not exist. - File '/node_modules/some-library/lib.ios.tsx' does not exist. - File '/node_modules/some-library/lib.ios.d.ts' does not exist. -+File '/node_modules/some-library/lib.ios.js' does not exist. -+File '/node_modules/some-library/lib.ios.jsx' does not exist. - File '/node_modules/some-library/lib/package.json' does not exist. - File '/node_modules/some-library/lib/index.ios.ts' does not exist. - File '/node_modules/some-library/lib/index.ios.tsx' does not exist. -@@= skipped -14, +16 lines =@@ - Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. - ======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== - ======== Resolving module 'some-library/index' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library/index'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'some-library/index'. - Module name 'some-library/index', matched pattern 'some-library/*'. - Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index'. --Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/node_modules/some-library/lib/index.ios.ts' does not exist. - File '/node_modules/some-library/lib/index.ios.tsx' does not exist. - File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. -@@= skipped -13, +13 lines =@@ - Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. - ======== Module name 'some-library/index' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== - ======== Resolving module 'some-library/index.js' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'some-library/index.js'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'some-library/index.js'. - Module name 'some-library/index.js', matched pattern 'some-library/*'. - Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index.js'. --Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/node_modules/some-library/lib/index.js' has a '.js' extension - stripping it. - File '/node_modules/some-library/lib/index.ios.ts' does not exist. - File '/node_modules/some-library/lib/index.ios.tsx' does not exist. -@@= skipped -13, +13 lines =@@ - File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. - Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. - ======== Module name 'some-library/index.js' was successfully resolved to '/node_modules/some-library/lib/index.ios.d.ts'. ======== --File '/node_modules/some-library/lib/package.json' does not exist according to earlier cached lookups. --File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff deleted file mode 100644 index a1c5a949cc..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalTSModule.trace.json.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_externalTSModule.trace.json -+++ new.moduleResolutionWithSuffixes_one_externalTSModule.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'some-library' from '/test.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/some-library/package.json' does not exist. - File '/node_modules/some-library.ios.ts' does not exist. -@@= skipped -8, +10 lines =@@ - File '/node_modules/some-library/index.ios.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/some-library/index.ios.ts', result '/node_modules/some-library/index.ios.ts'. - ======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.ts'. ======== --File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff deleted file mode 100644 index ce779c961d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsModule.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsModule.trace.json -+++ new.moduleResolutionWithSuffixes_one_jsModule.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo.js' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/foo.js' has a '.js' extension - stripping it. - File '/foo.ios.ts' does not exist. - File '/foo.ios.tsx' does not exist. - File '/foo.ios.d.ts' does not exist. --File '/foo.js.ios.ts' does not exist. --File '/foo.js.ios.tsx' does not exist. --File '/foo.js.ios.d.ts' does not exist. --Directory '/foo.js' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/foo.js', target file types: JavaScript. --File name '/foo.js' has a '.js' extension - stripping it. - File '/foo.ios.js' exists - use it as a name resolution result. - ======== Module name './foo.js' was successfully resolved to '/foo.ios.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff deleted file mode 100644 index 1111a22fe6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_jsonModule.trace.json.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.moduleResolutionWithSuffixes_one_jsonModule.trace.json -+++ new.moduleResolutionWithSuffixes_one_jsonModule.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo.json' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/foo.json' has a '.json' extension - stripping it. - File '/foo.d.json.ios.ts' does not exist. --File '/foo.json.ios.ts' does not exist. --File '/foo.json.ios.tsx' does not exist. --File '/foo.json.ios.d.ts' does not exist. --Directory '/foo.json' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/foo.json', target file types: JavaScript, JSON. --File name '/foo.json' has a '.json' extension - stripping it. - File '/foo.ios.json' exists - use it as a name resolution result. - ======== Module name './foo.json' was successfully resolved to '/foo.ios.json'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff deleted file mode 100644 index 9a78e3e0d8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank1.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo-ios.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo-ios.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff deleted file mode 100644 index a671b29e07..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank2.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo-ios.ts' does not exist. - File '/foo__native.ts' exists - use it as a name resolution result. - ======== Module name './foo' was successfully resolved to '/foo__native.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff deleted file mode 100644 index eb4fe819ce..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank3.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo-ios.ts' does not exist. - File '/foo__native.ts' does not exist. - File '/foo.ts' exists - use it as a name resolution result. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff deleted file mode 100644 index e5324655a5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json -+++ new.moduleResolutionWithSuffixes_threeLastIsBlank4.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './foo' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo-ios.ts' does not exist. - File '/foo__native.ts' does not exist. - File '/foo.ts' does not exist. -@@= skipped -9, +10 lines =@@ - File '/foo-ios.d.ts' does not exist. - File '/foo__native.d.ts' does not exist. - File '/foo.d.ts' does not exist. --Directory '/foo' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/foo', target file types: JavaScript. - File '/foo-ios.js' does not exist. - File '/foo__native.js' does not exist. - File '/foo.js' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff deleted file mode 100644 index d2e338ebe6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks.trace.json.diff +++ /dev/null @@ -1,59 +0,0 @@ ---- old.moduleResolutionWithSymlinks.trace.json -+++ new.moduleResolutionWithSymlinks.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './library-a' from '/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/src/library-a.ts' does not exist. - File '/src/library-a.tsx' does not exist. - File '/src/library-a.d.ts' does not exist. -+File '/src/library-a.js' does not exist. -+File '/src/library-a.jsx' does not exist. - File '/src/library-a/package.json' does not exist. - File '/src/library-a/index.ts' exists - use it as a name resolution result. - ======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ======== - ======== Resolving module './library-b' from '/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/src/library-b.ts' does not exist. - File '/src/library-b.tsx' does not exist. - File '/src/library-b.d.ts' does not exist. -+File '/src/library-b.js' does not exist. -+File '/src/library-b.jsx' does not exist. - File '/src/library-b/package.json' does not exist. - File '/src/library-b/index.ts' exists - use it as a name resolution result. - ======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ======== - ======== Resolving module 'library-a' from '/src/library-b/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/src/library-b/package.json' does not exist according to earlier cached lookups. -+File '/src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/src/library-b/node_modules/library-a/package.json' does not exist. --File '/src/library-b/node_modules/library-a.ts' does not exist. --File '/src/library-b/node_modules/library-a.tsx' does not exist. --File '/src/library-b/node_modules/library-a.d.ts' does not exist. --File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result. --Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'. --======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ======== -+Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/library-b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'library-a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff deleted file mode 100644 index 20e766f988..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_notInNodeModules.trace.json.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.moduleResolutionWithSymlinks_notInNodeModules.trace.json -+++ new.moduleResolutionWithSymlinks_notInNodeModules.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './shared/abc' from '/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, Declaration. --File '/src/shared/abc.ts' exists - use it as a name resolution result. --======== Module name './shared/abc' was successfully resolved to '/src/shared/abc.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/shared/abc', target file types: TypeScript, JavaScript, Declaration, JSON. -+Directory '/src/shared' does not exist, skipping all lookups in it. -+======== Module name './shared/abc' was not resolved. ======== - ======== Resolving module './shared2/abc' from '/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, Declaration. --File '/src/shared2/abc.ts' exists - use it as a name resolution result. --======== Module name './shared2/abc' was successfully resolved to '/src/shared2/abc.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/shared2/abc', target file types: TypeScript, JavaScript, Declaration, JSON. -+Directory '/src/shared2' does not exist, skipping all lookups in it. -+======== Module name './shared2/abc' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff deleted file mode 100644 index 9414172eda..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json.diff +++ /dev/null @@ -1,102 +0,0 @@ ---- old.moduleResolutionWithSymlinks_preserveSymlinks.trace.json -+++ new.moduleResolutionWithSymlinks_preserveSymlinks.trace.json -@@= skipped -3, +3 lines =@@ - Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/app'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. --File '/app/node_modules/linked/package.json' does not exist. - File '/app/node_modules/linked.d.ts' does not exist. --File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result. --======== Type reference directive 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts', primary: false. ======== --File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups. --File '/app/node_modules/package.json' does not exist. -+Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'linked' was not resolved. ======== -+======== Resolving module 'linked' from '/app/app.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - File '/app/package.json' does not exist. - File '/package.json' does not exist. --======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/app/node_modules/linked/node_modules' does not exist, skipping all lookups in it. --File '/app/node_modules/real/package.json' does not exist. --File '/app/node_modules/real.ts' does not exist. --File '/app/node_modules/real.tsx' does not exist. --File '/app/node_modules/real.d.ts' does not exist. --File '/app/node_modules/real/index.ts' does not exist. --File '/app/node_modules/real/index.tsx' does not exist. --File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result. --======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ======== --File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups. --File '/app/node_modules/package.json' does not exist according to earlier cached lookups. --File '/app/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --======== Resolving module 'linked' from '/app/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups. -+Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/app/node_modules/linked.ts' does not exist. - File '/app/node_modules/linked.tsx' does not exist. - File '/app/node_modules/linked.d.ts' does not exist. --File '/app/node_modules/linked/index.ts' does not exist. --File '/app/node_modules/linked/index.tsx' does not exist. --File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result. --======== Module name 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts'. ======== -+Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+File '/app/node_modules/linked.js' does not exist. -+File '/app/node_modules/linked.jsx' does not exist. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'linked' was not resolved. ======== - ======== Resolving module 'linked2' from '/app/app.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/app/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/app/node_modules/linked2/package.json' does not exist. - File '/app/node_modules/linked2.ts' does not exist. - File '/app/node_modules/linked2.tsx' does not exist. - File '/app/node_modules/linked2.d.ts' does not exist. --File '/app/node_modules/linked2/index.ts' does not exist. --File '/app/node_modules/linked2/index.tsx' does not exist. --File '/app/node_modules/linked2/index.d.ts' exists - use it as a name resolution result. --======== Module name 'linked2' was successfully resolved to '/app/node_modules/linked2/index.d.ts'. ======== --File '/app/node_modules/linked2/package.json' does not exist according to earlier cached lookups. --File '/app/node_modules/package.json' does not exist according to earlier cached lookups. --File '/app/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --======== Resolving module 'real' from '/app/node_modules/linked2/index.d.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Directory '/app/node_modules/linked2/node_modules' does not exist, skipping all lookups in it. --File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups. --File '/app/node_modules/real.ts' does not exist. --File '/app/node_modules/real.tsx' does not exist. --File '/app/node_modules/real.d.ts' does not exist. --File '/app/node_modules/real/index.ts' does not exist. --File '/app/node_modules/real/index.tsx' does not exist. --File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result. --======== Module name 'real' was successfully resolved to '/app/node_modules/real/index.d.ts'. ======== -+Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+File '/app/node_modules/linked2.js' does not exist. -+File '/app/node_modules/linked2.jsx' does not exist. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'linked2' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff deleted file mode 100644 index 62335d7d95..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.moduleResolutionWithSymlinks_referenceTypes.trace.json -+++ new.moduleResolutionWithSymlinks_referenceTypes.trace.json -@@= skipped -17, +17 lines =@@ - File '/node_modules/@types/library-b/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/library-b/index.d.ts', result '/node_modules/@types/library-b/index.d.ts'. - ======== Type reference directive 'library-b' was successfully resolved to '/node_modules/@types/library-b/index.d.ts', primary: false. ======== --File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --File '/node_modules/@types/library-b/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. - ======== Resolving type reference directive 'library-a', containing file '/node_modules/@types/library-b/index.d.ts', root directory ''. ======== - Root directory cannot be determined, skipping primary search paths. - Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. --File '/node_modules/@types/library-b/node_modules/library-a.d.ts' does not exist. --File '/node_modules/@types/library-b/node_modules/@types/library-a/package.json' does not exist. --File '/node_modules/@types/library-b/node_modules/@types/library-a.d.ts' does not exist. --File '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. -+Directory '/node_modules/@types/library-b/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types/library-b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. -+File '/node_modules/library-a.d.ts' does not exist. -+File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@types/library-a.d.ts' does not exist. -+File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. - ======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff deleted file mode 100644 index a9d50fe087..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_withOutDir.trace.json.diff +++ /dev/null @@ -1,59 +0,0 @@ ---- old.moduleResolutionWithSymlinks_withOutDir.trace.json -+++ new.moduleResolutionWithSymlinks_withOutDir.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './library-a' from '/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/library-a', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/src/library-a.ts' does not exist. - File '/src/library-a.tsx' does not exist. - File '/src/library-a.d.ts' does not exist. -+File '/src/library-a.js' does not exist. -+File '/src/library-a.jsx' does not exist. - File '/src/library-a/package.json' does not exist. - File '/src/library-a/index.ts' exists - use it as a name resolution result. - ======== Module name './library-a' was successfully resolved to '/src/library-a/index.ts'. ======== - ======== Resolving module './library-b' from '/src/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/library-b', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/src/library-b.ts' does not exist. - File '/src/library-b.tsx' does not exist. - File '/src/library-b.d.ts' does not exist. -+File '/src/library-b.js' does not exist. -+File '/src/library-b.jsx' does not exist. - File '/src/library-b/package.json' does not exist. - File '/src/library-b/index.ts' exists - use it as a name resolution result. - ======== Module name './library-b' was successfully resolved to '/src/library-b/index.ts'. ======== - ======== Resolving module 'library-a' from '/src/library-b/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/src/library-b/package.json' does not exist according to earlier cached lookups. -+File '/src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/src/library-b/node_modules/library-a/package.json' does not exist. --File '/src/library-b/node_modules/library-a.ts' does not exist. --File '/src/library-b/node_modules/library-a.tsx' does not exist. --File '/src/library-b/node_modules/library-a.d.ts' does not exist. --File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result. --Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'. --======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ======== -+Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/library-b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/src/library-b/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'library-a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff deleted file mode 100644 index 8012715c72..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleResolution_packageJson_notAtPackageRoot.trace.json -+++ new.moduleResolution_packageJson_notAtPackageRoot.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/foo/bar/package.json'. -+Found 'package.json' at '/node_modules/foo/package.json'. - File '/node_modules/foo/bar.ts' does not exist. - File '/node_modules/foo/bar.tsx' does not exist. - File '/node_modules/foo/bar.d.ts' does not exist. -@@= skipped -11, +14 lines =@@ - File '/node_modules/foo/bar/types.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/foo/bar/types.d.ts', result '/node_modules/foo/bar/types.d.ts'. - ======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/types.d.ts'. ======== --File '/node_modules/foo/bar/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff deleted file mode 100644 index 9a0c9ead6d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json -+++ new.moduleResolution_packageJson_notAtPackageRoot_fakeScopedPackage.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/@bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/foo/@bar/package.json'. -+Found 'package.json' at '/node_modules/foo/package.json'. - File '/node_modules/foo/@bar.ts' does not exist. - File '/node_modules/foo/@bar.tsx' does not exist. - File '/node_modules/foo/@bar.d.ts' does not exist. -@@= skipped -11, +14 lines =@@ - File '/node_modules/foo/@bar/types.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/foo/@bar/types.d.ts', result '/node_modules/foo/@bar/types.d.ts'. - ======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/types.d.ts'. ======== --File '/node_modules/foo/@bar/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff deleted file mode 100644 index 311e441015..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_scopedPackage.trace.json.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.moduleResolution_packageJson_scopedPackage.trace.json -+++ new.moduleResolution_packageJson_scopedPackage.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@foo/bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/@foo/bar/package.json'. - File '/node_modules/@foo/bar.ts' does not exist. -@@= skipped -11, +13 lines =@@ - File '/node_modules/@foo/bar/types.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@foo/bar/types.d.ts', result '/node_modules/@foo/bar/types.d.ts'. - ======== Module name '@foo/bar' was successfully resolved to '/node_modules/@foo/bar/types.d.ts'. ======== --File '/node_modules/@foo/bar/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff deleted file mode 100644 index 14c185a2b5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.moduleResolution_packageJson_yesAtPackageRoot.trace.json -+++ new.moduleResolution_packageJson_yesAtPackageRoot.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/foo/bar/package.json' does not exist. - Found 'package.json' at '/node_modules/foo/package.json'. -@@= skipped -11, +13 lines =@@ - File '/node_modules/foo/bar/index.tsx' does not exist. - File '/node_modules/foo/bar/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'foo/bar' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups. - File '/node_modules/foo/package.json' exists according to earlier cached lookups. - File '/node_modules/foo/bar.js' does not exist. - File '/node_modules/foo/bar.jsx' does not exist. - File '/node_modules/foo/bar/index.js' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. --File '/node_modules/foo/bar.ts' does not exist. --File '/node_modules/foo/bar.tsx' does not exist. --File '/node_modules/foo/bar.d.ts' does not exist. --File '/node_modules/foo/bar/index.ts' does not exist. --File '/node_modules/foo/bar/index.tsx' does not exist. --File '/node_modules/foo/bar/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Resolving real path for '/node_modules/foo/bar/index.js', result '/node_modules/foo/bar/index.js'. --======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo/bar/index.js@1.2.3'. ======== -+======== Module name 'foo/bar' was successfully resolved to '/node_modules/foo/bar/index.js' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff deleted file mode 100644 index 2741fab246..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json -+++ new.moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/@bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/foo/@bar/package.json' does not exist. - Found 'package.json' at '/node_modules/foo/package.json'. -@@= skipped -11, +13 lines =@@ - File '/node_modules/foo/@bar/index.tsx' does not exist. - File '/node_modules/foo/@bar/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'foo/@bar' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups. - File '/node_modules/foo/package.json' exists according to earlier cached lookups. - File '/node_modules/foo/@bar.js' does not exist. - File '/node_modules/foo/@bar.jsx' does not exist. - File '/node_modules/foo/@bar/index.js' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'foo/@bar' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. --File '/node_modules/foo/@bar.ts' does not exist. --File '/node_modules/foo/@bar.tsx' does not exist. --File '/node_modules/foo/@bar.d.ts' does not exist. --File '/node_modules/foo/@bar/index.ts' does not exist. --File '/node_modules/foo/@bar/index.tsx' does not exist. --File '/node_modules/foo/@bar/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Resolving real path for '/node_modules/foo/@bar/index.js', result '/node_modules/foo/@bar/index.js'. --======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo/@bar/index.js@1.2.3'. ======== -+======== Module name 'foo/@bar' was successfully resolved to '/node_modules/foo/@bar/index.js' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff deleted file mode 100644 index b1c38e1339..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json -+++ new.moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/foo/src/package.json' does not exist. --Found 'package.json' at '/node_modules/foo/package.json'. - ======== Resolving module 'foo' from '/index.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/foo/package.json'. - File '/node_modules/foo.ts' does not exist. - File '/node_modules/foo.tsx' does not exist. - File '/node_modules/foo.d.ts' does not exist. -@@= skipped -17, +17 lines =@@ - File '/node_modules/foo/src/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/foo/src/index.d.ts', result '/node_modules/foo/src/index.d.ts'. --======== Module name 'foo' was successfully resolved to '/node_modules/foo/src/index.d.ts' with Package ID 'foo/src/index.d.ts@1.2.3'. ======== -+======== Module name 'foo' was successfully resolved to '/node_modules/foo/src/index.d.ts' with Package ID 'foo@1.2.3'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff deleted file mode 100644 index 7016bf1d27..0000000000 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.nodeColonModuleResolution.trace.json -+++ new.nodeColonModuleResolution.trace.json -@@= skipped -0, +0 lines =@@ --File '/a/b/node_modules/@types/node/package.json' does not exist. --File '/a/b/node_modules/@types/package.json' does not exist. --File '/a/b/node_modules/package.json' does not exist. -+======== Resolving module 'ph' from '/a/b/node_modules/@types/node/ph.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/a/b/node_modules/@types/node/package.json' does not exist according to earlier cached lookups. -+File '/a/b/node_modules/@types/package.json' does not exist according to earlier cached lookups. -+File '/a/b/node_modules/package.json' does not exist according to earlier cached lookups. -+File '/a/b/package.json' does not exist according to earlier cached lookups. -+File '/a/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ph' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types/node/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. -+File '/a/b/node_modules/ph.ts' does not exist. -+File '/a/b/node_modules/ph.tsx' does not exist. -+File '/a/b/node_modules/ph.d.ts' does not exist. -+File '/a/b/node_modules/@types/ph.d.ts' does not exist. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types/node_modules' does not exist, skipping all lookups in it. -+File '/a/b/node_modules/ph.js' does not exist. -+File '/a/b/node_modules/ph.jsx' does not exist. -+Directory '/a/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'ph' was not resolved. ======== -+======== Resolving module 'node:ph' from '/a/b/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - File '/a/b/package.json' does not exist. - File '/a/package.json' does not exist. - File '/package.json' does not exist. --Module 'ph' was resolved as locally declared ambient module in file '/a/b/node_modules/@types/node/ph.d.ts'. --======== Resolving module 'node:ph' from '/a/b/main.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, Declaration. --Skipping module 'node:ph' that looks like an absolute URI, target file types: JavaScript. -+Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, JavaScript, Declaration, JSON. - ======== Module name 'node:ph' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff deleted file mode 100644 index a2abf5f5b0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution2.trace.json.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.nodeColonModuleResolution2.trace.json -+++ new.nodeColonModuleResolution2.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'fake:thing' from '/a/b/main.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'fake:thing'. - Module name 'fake:thing', matched pattern 'fake:thing'. - Trying substitution './node_modules/fake/thing', candidate module location: './node_modules/fake/thing'. --Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/a/b/node_modules/fake/thing.ts' does not exist. - File '/a/b/node_modules/fake/thing.tsx' does not exist. - File '/a/b/node_modules/fake/thing.d.ts' does not exist. -+File '/a/b/node_modules/fake/thing.js' does not exist. -+File '/a/b/node_modules/fake/thing.jsx' does not exist. - File '/a/b/node_modules/fake/thing/package.json' does not exist. - File '/a/b/node_modules/fake/thing/index.ts' does not exist. - File '/a/b/node_modules/fake/thing/index.tsx' does not exist. - File '/a/b/node_modules/fake/thing/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/b/node_modules/fake/thing/index.d.ts', result '/a/b/node_modules/fake/thing/index.d.ts'. - ======== Module name 'fake:thing' was successfully resolved to '/a/b/node_modules/fake/thing/index.d.ts'. ======== --File '/a/b/node_modules/fake/thing/package.json' does not exist according to earlier cached lookups. --File '/a/b/node_modules/fake/package.json' does not exist. --File '/a/b/node_modules/package.json' does not exist. --File '/a/b/package.json' does not exist. --File '/a/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff deleted file mode 100644 index 1df9f7672f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json.diff +++ /dev/null @@ -1,45 +0,0 @@ ---- old.nodeNextModuleResolution1.trace.json -+++ new.nodeNextModuleResolution1.trace.json -@@= skipped -0, +0 lines =@@ --File '/a/node_modules/package.json' does not exist. --File '/a/package.json' does not exist. --File '/package.json' does not exist. --Found 'package.json' at '/a/b/c/d/e/package.json'. - ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== - Explicitly specified module resolution kind: 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -8, +4 lines =@@ - Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Searching all ancestor node_modules directories for fallback extensions: JavaScript. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -@@= skipped -12, +17 lines =@@ - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff deleted file mode 100644 index 83d02f9862..0000000000 --- a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution2.trace.json.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.nodeNextModuleResolution2.trace.json -+++ new.nodeNextModuleResolution2.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/a/node_modules/foo/package.json'. - ======== Resolving module 'foo' from '/a/b/c/d/e/app.mts'. ======== - Explicitly specified module resolution kind: 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -10, +9 lines =@@ - Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/e/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. --File '/a/node_modules/foo/package.json' exists according to earlier cached lookups. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. -+Found 'package.json' at '/a/node_modules/foo/package.json'. - Using 'exports' subpath '.' with target './index.d.ts'. - File '/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/node_modules/foo/index.d.ts', result '/a/node_modules/foo/index.d.ts'. - ======== Module name 'foo' was successfully resolved to '/a/node_modules/foo/index.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff deleted file mode 100644 index c69a404b5a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json.diff +++ /dev/null @@ -1,67 +0,0 @@ ---- old.pathMappingBasedModuleResolution3_node.trace.json -+++ new.pathMappingBasedModuleResolution3_node.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'. --Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'. --Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration. --File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result. --======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File 'c:/root/folder1/package.json' does not exist. -+File 'c:/root/package.json' does not exist according to earlier cached lookups. -+File 'c:/package.json' does not exist according to earlier cached lookups. -+Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -+Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'folder2/file2' was not resolved. ======== - ======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. - ======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== - ======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'. --Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'. --Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration. --File 'c:/root/file4.ts' does not exist. --File 'c:/root/file4.tsx' does not exist. --File 'c:/root/file4.d.ts' does not exist. --Directory 'c:/root/file4' does not exist, skipping all lookups in it. --Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File 'c:/root/folder2/package.json' does not exist. -+File 'c:/root/package.json' does not exist. -+File 'c:/package.json' does not exist according to earlier cached lookups. -+Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. - Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. --File 'c:/node_modules/file4/package.json' does not exist. -+Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -+File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. - File 'c:/node_modules/file4.ts' does not exist. - File 'c:/node_modules/file4.tsx' does not exist. - File 'c:/node_modules/file4.d.ts' does not exist. -@@= skipped -31, +41 lines =@@ - File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result. - Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'. - ======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ======== --File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. --File 'c:/node_modules/package.json' does not exist. --File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff deleted file mode 100644 index 83593d050e..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json.diff +++ /dev/null @@ -1,65 +0,0 @@ ---- old.pathMappingBasedModuleResolution4_node.trace.json -+++ new.pathMappingBasedModuleResolution4_node.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'. --Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'. --Loading module as file / folder, candidate module location 'c:/root/folder2/file2', target file types: TypeScript, Declaration. --File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result. --======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File 'c:/root/folder1/package.json' does not exist. -+File 'c:/root/package.json' does not exist according to earlier cached lookups. -+File 'c:/package.json' does not exist according to earlier cached lookups. -+Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -+Directory 'c:/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'folder2/file2' was not resolved. ======== - ======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location 'c:/root/folder2/file3', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. - ======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ======== - ======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'. --Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'. --Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration. --File 'c:/root/file4.ts' does not exist. --File 'c:/root/file4.tsx' does not exist. --File 'c:/root/file4.d.ts' does not exist. --Directory 'c:/root/file4' does not exist, skipping all lookups in it. --Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File 'c:/root/folder2/package.json' does not exist. -+File 'c:/root/package.json' does not exist. -+File 'c:/package.json' does not exist. -+Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. - Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. - File 'c:/node_modules/file4/package.json' does not exist. - File 'c:/node_modules/file4.ts' does not exist. - File 'c:/node_modules/file4.tsx' does not exist. -@@= skipped -31, +41 lines =@@ - File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result. - Resolving real path for 'c:/node_modules/file4/index.d.ts', result 'c:/node_modules/file4/index.d.ts'. - ======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.d.ts'. ======== --File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. --File 'c:/node_modules/package.json' does not exist. --File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff deleted file mode 100644 index a160098063..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution5_node.trace.json.diff +++ /dev/null @@ -1,90 +0,0 @@ ---- old.pathMappingBasedModuleResolution5_node.trace.json -+++ new.pathMappingBasedModuleResolution5_node.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'folder2/file1' from 'c:/root/folder1/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file1'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'folder2/file1'. - Module name 'folder2/file1', matched pattern '*'. - Trying substitution '*', candidate module location: 'folder2/file1'. --Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/root/folder2/file1', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/folder2/file1.ts' exists - use it as a name resolution result. - ======== Module name 'folder2/file1' was successfully resolved to 'c:/root/folder2/file1.ts'. ======== - ======== Resolving module 'folder3/file2' from 'c:/root/folder1/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder3/file2'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'folder3/file2'. - Module name 'folder3/file2', matched pattern '*'. - Trying substitution '*', candidate module location: 'folder3/file2'. --Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/root/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. - Trying substitution 'generated/*', candidate module location: 'generated/folder3/file2'. --Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/root/generated/folder3/file2', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/generated/folder3/file2.ts' exists - use it as a name resolution result. - ======== Module name 'folder3/file2' was successfully resolved to 'c:/root/generated/folder3/file2.ts'. ======== - ======== Resolving module 'components/file3' from 'c:/root/folder1/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'components/file3'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'components/file3'. - Module name 'components/file3', matched pattern 'components/*'. - Trying substitution 'shared/components/*', candidate module location: 'shared/components/file3'. --Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/root/shared/components/file3', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/shared/components/file3.ts' does not exist. - File 'c:/root/shared/components/file3.tsx' does not exist. - File 'c:/root/shared/components/file3.d.ts' does not exist. -+File 'c:/root/shared/components/file3.js' does not exist. -+File 'c:/root/shared/components/file3.jsx' does not exist. - File 'c:/root/shared/components/file3/package.json' does not exist. - File 'c:/root/shared/components/file3/index.ts' does not exist. - File 'c:/root/shared/components/file3/index.tsx' does not exist. - File 'c:/root/shared/components/file3/index.d.ts' exists - use it as a name resolution result. - ======== Module name 'components/file3' was successfully resolved to 'c:/root/shared/components/file3/index.d.ts'. ======== - ======== Resolving module 'file4' from 'c:/root/folder1/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file4'. - Module name 'file4', matched pattern '*'. - Trying substitution '*', candidate module location: 'file4'. --Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/root/file4', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/file4.ts' does not exist. - File 'c:/root/file4.tsx' does not exist. - File 'c:/root/file4.d.ts' does not exist. -+File 'c:/root/file4.js' does not exist. -+File 'c:/root/file4.jsx' does not exist. - Directory 'c:/root/file4' does not exist, skipping all lookups in it. - Trying substitution 'generated/*', candidate module location: 'generated/file4'. --Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/root/generated/file4', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/root/generated/file4.ts' does not exist. - File 'c:/root/generated/file4.tsx' does not exist. - File 'c:/root/generated/file4.d.ts' does not exist. -+File 'c:/root/generated/file4.js' does not exist. -+File 'c:/root/generated/file4.jsx' does not exist. - Directory 'c:/root/generated/file4' does not exist, skipping all lookups in it. --Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File 'c:/root/folder1/package.json' does not exist. -+File 'c:/root/package.json' does not exist. -+File 'c:/package.json' does not exist. -+Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/folder1/node_modules/@types' does not exist, skipping all lookups in it. - Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. - File 'c:/node_modules/file4.ts' exists - use it as a name resolution result. - Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'. - ======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ======== --File 'c:/node_modules/package.json' does not exist. --File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff deleted file mode 100644 index fd5c3ba2e3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution6_node.trace.json.diff +++ /dev/null @@ -1,44 +0,0 @@ ---- old.pathMappingBasedModuleResolution6_node.trace.json -+++ new.pathMappingBasedModuleResolution6_node.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './project/file3' from 'c:/root/src/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'rootDirs' option is set, using it to resolve relative module name './project/file3'. --Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'true'. --Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file3' - 'false'. --Longest matching prefix for 'c:/root/src/project/file3' is 'c:/root/src/'. --Loading 'project/file3' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file3'. --Loading module as file / folder, candidate module location 'c:/root/src/project/file3', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location 'c:/root/src/project/file3', target file types: TypeScript, JavaScript, Declaration, JSON. - Directory 'c:/root/src/project' does not exist, skipping all lookups in it. --Trying other entries in 'rootDirs'. --Loading 'project/file3' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file3'. --Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file3', target file types: TypeScript, Declaration. --File 'c:/root/generated/src/project/file3.ts' exists - use it as a name resolution result. --======== Module name './project/file3' was successfully resolved to 'c:/root/generated/src/project/file3.ts'. ======== --======== Resolving module '../file2' from 'c:/root/generated/src/project/file3.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'rootDirs' option is set, using it to resolve relative module name '../file2'. --Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'false'. --Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file2' - 'true'. --Longest matching prefix for 'c:/root/generated/src/file2' is 'c:/root/generated/src/'. --Loading 'file2' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file2'. --Loading module as file / folder, candidate module location 'c:/root/generated/src/file2', target file types: TypeScript, Declaration. --File 'c:/root/generated/src/file2.ts' does not exist. --File 'c:/root/generated/src/file2.tsx' does not exist. --File 'c:/root/generated/src/file2.d.ts' does not exist. --Directory 'c:/root/generated/src/file2' does not exist, skipping all lookups in it. --Trying other entries in 'rootDirs'. --Loading 'file2' from the root dir 'c:/root/src', candidate location 'c:/root/src/file2'. --Loading module as file / folder, candidate module location 'c:/root/src/file2', target file types: TypeScript, Declaration. --File 'c:/root/src/file2.ts' does not exist. --File 'c:/root/src/file2.tsx' does not exist. --File 'c:/root/src/file2.d.ts' does not exist. --File 'c:/root/src/file2/package.json' does not exist. --File 'c:/root/src/file2/index.ts' does not exist. --File 'c:/root/src/file2/index.tsx' does not exist. --File 'c:/root/src/file2/index.d.ts' exists - use it as a name resolution result. --======== Module name '../file2' was successfully resolved to 'c:/root/src/file2/index.d.ts'. ======== -+======== Module name './project/file3' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff deleted file mode 100644 index 78750a4e91..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution7_node.trace.json.diff +++ /dev/null @@ -1,120 +0,0 @@ ---- old.pathMappingBasedModuleResolution7_node.trace.json -+++ new.pathMappingBasedModuleResolution7_node.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './project/file2' from 'c:/root/src/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'rootDirs' option is set, using it to resolve relative module name './project/file2'. --Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'true'. --Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/src/project/file2' - 'false'. --Longest matching prefix for 'c:/root/src/project/file2' is 'c:/root/src/'. --Loading 'project/file2' from the root dir 'c:/root/src/', candidate location 'c:/root/src/project/file2'. --Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location 'c:/root/src/project/file2', target file types: TypeScript, JavaScript, Declaration, JSON. - Directory 'c:/root/src/project' does not exist, skipping all lookups in it. --Trying other entries in 'rootDirs'. --Loading 'project/file2' from the root dir 'c:/root/generated/src', candidate location 'c:/root/generated/src/project/file2'. --Loading module as file / folder, candidate module location 'c:/root/generated/src/project/file2', target file types: TypeScript, Declaration. --File 'c:/root/generated/src/project/file2.ts' exists - use it as a name resolution result. --======== Module name './project/file2' was successfully resolved to 'c:/root/generated/src/project/file2.ts'. ======== -+======== Module name './project/file2' was not resolved. ======== - ======== Resolving module 'module3' from 'c:/root/src/file1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module3'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'module3'. - Module name 'module3', matched pattern '*'. - Trying substitution '*', candidate module location: 'module3'. --Loading module as file / folder, candidate module location 'c:/root/module3', target file types: TypeScript, Declaration. --File 'c:/root/module3.ts' does not exist. --File 'c:/root/module3.tsx' does not exist. --File 'c:/root/module3.d.ts' does not exist. --Directory 'c:/root/module3' does not exist, skipping all lookups in it. -+Loading module as file / folder, candidate module location 'c:/root/src/module3', target file types: TypeScript, JavaScript, Declaration, JSON. -+File 'c:/root/src/module3.ts' does not exist. -+File 'c:/root/src/module3.tsx' does not exist. -+File 'c:/root/src/module3.d.ts' does not exist. -+File 'c:/root/src/module3.js' does not exist. -+File 'c:/root/src/module3.jsx' does not exist. -+Directory 'c:/root/src/module3' does not exist, skipping all lookups in it. - Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module3'. --Loading module as file / folder, candidate module location 'c:/shared/module3', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location 'c:/shared/module3', target file types: TypeScript, JavaScript, Declaration, JSON. - File 'c:/shared/module3.ts' does not exist. - File 'c:/shared/module3.tsx' does not exist. - File 'c:/shared/module3.d.ts' does not exist. -+File 'c:/shared/module3.js' does not exist. -+File 'c:/shared/module3.jsx' does not exist. - Directory 'c:/shared/module3' does not exist, skipping all lookups in it. --Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File 'c:/root/src/package.json' does not exist. -+File 'c:/root/package.json' does not exist. -+File 'c:/package.json' does not exist. -+Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/src/node_modules/@types' does not exist, skipping all lookups in it. - Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. -+Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. - File 'c:/node_modules/module3.ts' does not exist. - File 'c:/node_modules/module3.tsx' does not exist. - File 'c:/node_modules/module3.d.ts' exists - use it as a name resolution result. - Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'. - ======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ======== --======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'. --'paths' option is specified, looking for a pattern to match module name 'module1'. --Module name 'module1', matched pattern '*'. --Trying substitution '*', candidate module location: 'module1'. --Loading module as file / folder, candidate module location 'c:/root/module1', target file types: TypeScript, Declaration. --File 'c:/root/module1.ts' does not exist. --File 'c:/root/module1.tsx' does not exist. --File 'c:/root/module1.d.ts' does not exist. --Directory 'c:/root/module1' does not exist, skipping all lookups in it. --Trying substitution 'c:/shared/*', candidate module location: 'c:/shared/module1'. --Loading module as file / folder, candidate module location 'c:/shared/module1', target file types: TypeScript, Declaration. --File 'c:/shared/module1.ts' does not exist. --File 'c:/shared/module1.tsx' does not exist. --File 'c:/shared/module1.d.ts' does not exist. --File 'c:/shared/module1/package.json' does not exist. --File 'c:/shared/module1/index.ts' does not exist. --File 'c:/shared/module1/index.tsx' does not exist. --File 'c:/shared/module1/index.d.ts' exists - use it as a name resolution result. --======== Module name 'module1' was successfully resolved to 'c:/shared/module1/index.d.ts'. ======== --======== Resolving module 'templates/module2' from 'c:/root/generated/src/project/file2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'templates/module2'. --'paths' option is specified, looking for a pattern to match module name 'templates/module2'. --Module name 'templates/module2', matched pattern 'templates/*'. --Trying substitution 'generated/src/templates/*', candidate module location: 'generated/src/templates/module2'. --Loading module as file / folder, candidate module location 'c:/root/generated/src/templates/module2', target file types: TypeScript, Declaration. --File 'c:/root/generated/src/templates/module2.ts' exists - use it as a name resolution result. --======== Module name 'templates/module2' was successfully resolved to 'c:/root/generated/src/templates/module2.ts'. ======== --======== Resolving module '../file3' from 'c:/root/generated/src/project/file2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'rootDirs' option is set, using it to resolve relative module name '../file3'. --Checking if 'c:/root/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'false'. --Checking if 'c:/root/generated/src/' is the longest matching prefix for 'c:/root/generated/src/file3' - 'true'. --Longest matching prefix for 'c:/root/generated/src/file3' is 'c:/root/generated/src/'. --Loading 'file3' from the root dir 'c:/root/generated/src/', candidate location 'c:/root/generated/src/file3'. --Loading module as file / folder, candidate module location 'c:/root/generated/src/file3', target file types: TypeScript, Declaration. --File 'c:/root/generated/src/file3.ts' does not exist. --File 'c:/root/generated/src/file3.tsx' does not exist. --File 'c:/root/generated/src/file3.d.ts' does not exist. --Directory 'c:/root/generated/src/file3' does not exist, skipping all lookups in it. --Trying other entries in 'rootDirs'. --Loading 'file3' from the root dir 'c:/root/src', candidate location 'c:/root/src/file3'. --Loading module as file / folder, candidate module location 'c:/root/src/file3', target file types: TypeScript, Declaration. --File 'c:/root/src/file3.ts' does not exist. --File 'c:/root/src/file3.tsx' does not exist. --File 'c:/root/src/file3.d.ts' does not exist. --File 'c:/root/src/file3/package.json' does not exist. --File 'c:/root/src/file3/index.ts' does not exist. --File 'c:/root/src/file3/index.tsx' does not exist. --File 'c:/root/src/file3/index.d.ts' exists - use it as a name resolution result. --======== Module name '../file3' was successfully resolved to 'c:/root/src/file3/index.d.ts'. ======== --File 'c:/node_modules/package.json' does not exist. --File 'c:/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff deleted file mode 100644 index 7bac31953a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution8_node.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.pathMappingBasedModuleResolution8_node.trace.json -+++ new.pathMappingBasedModuleResolution8_node.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@speedy/folder1/testing' from 'c:/root/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name '@speedy/folder1/testing'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '@speedy/folder1/testing'. - Module name '@speedy/folder1/testing', matched pattern '@speedy/*/testing'. - Trying substitution '*/dist/index.ts', candidate module location: 'folder1/dist/index.ts'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff deleted file mode 100644 index 5c157ddf00..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/foo'. - Module name '/foo', matched pattern '/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module '/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/bar'. - Module name '/bar', matched pattern '/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. --File '/bar.ts' does not exist. --File '/bar.tsx' does not exist. --File '/bar.d.ts' does not exist. --Directory '/bar' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. --'paths' option is specified, looking for a pattern to match module name '/bar'. --Module name '/bar', matched pattern '/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff deleted file mode 100644 index 549ffd1da3..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json.diff +++ /dev/null @@ -1,333 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/foo'. - Module name '/foo', matched pattern '/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module '/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/bar'. - Module name '/bar', matched pattern '/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. --File '/bar.ts' does not exist. --File '/bar.tsx' does not exist. --File '/bar.d.ts' does not exist. --Directory '/bar' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. --'paths' option is specified, looking for a pattern to match module name '/bar'. --Module name '/bar', matched pattern '/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== - ======== Resolving module 'c:/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'c:/foo'. - Module name 'c:/foo', matched pattern 'c:/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name 'c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module 'c:/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'c:/bar'. - Module name 'c:/bar', matched pattern 'c:/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location 'c:/bar', target file types: TypeScript, Declaration. --Directory 'c:/' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:/bar'. --'paths' option is specified, looking for a pattern to match module name 'c:/bar'. --Module name 'c:/bar', matched pattern 'c:/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name 'c:/bar' was successfully resolved to '/root/src/bar.js'. ======== --======== Resolving module 'c:\\foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\foo'. --'paths' option is specified, looking for a pattern to match module name 'c:\\foo'. --Module name 'c:\\foo', matched pattern 'c:\\*'. -+======== Resolving module 'c:\foo' from '/root/a.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+'paths' option is specified, looking for a pattern to match module name 'c:\foo'. -+Module name 'c:\foo', matched pattern 'c:\*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. --======== Module name 'c:\\foo' was successfully resolved to '/root/src/foo.ts'. ======== --======== Resolving module 'c:\\bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\bar'. --'paths' option is specified, looking for a pattern to match module name 'c:\\bar'. --Module name 'c:\\bar', matched pattern 'c:\\*'. -+======== Module name 'c:\foo' was successfully resolved to '/root/src/foo.ts'. ======== -+======== Resolving module 'c:\bar' from '/root/a.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+'paths' option is specified, looking for a pattern to match module name 'c:\bar'. -+Module name 'c:\bar', matched pattern 'c:\*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location 'c:/bar', target file types: TypeScript, Declaration. --Directory 'c:/' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'c:\\bar'. --'paths' option is specified, looking for a pattern to match module name 'c:\\bar'. --Module name 'c:\\bar', matched pattern 'c:\\*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. --======== Module name 'c:\\bar' was successfully resolved to '/root/src/bar.js'. ======== -+======== Module name 'c:\bar' was successfully resolved to '/root/src/bar.js'. ======== - ======== Resolving module '//server/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '//server/foo'. - Module name '//server/foo', matched pattern '//server/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name '//server/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module '//server/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '//server/bar'. - Module name '//server/bar', matched pattern '//server/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '//server/bar', target file types: TypeScript, Declaration. --Directory '//server/' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '//server/bar'. --'paths' option is specified, looking for a pattern to match module name '//server/bar'. --Module name '//server/bar', matched pattern '//server/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name '//server/bar' was successfully resolved to '/root/src/bar.js'. ======== --======== Resolving module '\\\\server\\foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\foo'. --'paths' option is specified, looking for a pattern to match module name '\\\\server\\foo'. --Module name '\\\\server\\foo', matched pattern '\\\\server\\*'. -+======== Resolving module '\\server\foo' from '/root/a.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+'paths' option is specified, looking for a pattern to match module name '\\server\foo'. -+Module name '\\server\foo', matched pattern '\\server\*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. --======== Module name '\\\\server\\foo' was successfully resolved to '/root/src/foo.ts'. ======== --======== Resolving module '\\\\server\\bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\bar'. --'paths' option is specified, looking for a pattern to match module name '\\\\server\\bar'. --Module name '\\\\server\\bar', matched pattern '\\\\server\\*'. -+======== Module name '\\server\foo' was successfully resolved to '/root/src/foo.ts'. ======== -+======== Resolving module '\\server\bar' from '/root/a.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+'paths' option is specified, looking for a pattern to match module name '\\server\bar'. -+Module name '\\server\bar', matched pattern '\\server\*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '//server/bar', target file types: TypeScript, Declaration. --Directory '//server/' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '\\\\server\\bar'. --'paths' option is specified, looking for a pattern to match module name '\\\\server\\bar'. --Module name '\\\\server\\bar', matched pattern '\\\\server\\*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. --======== Module name '\\\\server\\bar' was successfully resolved to '/root/src/bar.js'. ======== -+======== Module name '\\server\bar' was successfully resolved to '/root/src/bar.js'. ======== - ======== Resolving module 'file:///foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file:///foo'. - Module name 'file:///foo', matched pattern 'file:///*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name 'file:///foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module 'file:///bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file:///bar'. - Module name 'file:///bar', matched pattern 'file:///*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Skipping module 'file:///bar' that looks like an absolute URI, target file types: TypeScript, Declaration. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'. --'paths' option is specified, looking for a pattern to match module name 'file:///bar'. --Module name 'file:///bar', matched pattern 'file:///*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name 'file:///bar' was successfully resolved to '/root/src/bar.js'. ======== - ======== Resolving module 'file://c:/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file://c:/foo'. - Module name 'file://c:/foo', matched pattern 'file://c:/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name 'file://c:/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module 'file://c:/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'. - Module name 'file://c:/bar', matched pattern 'file://c:/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Skipping module 'file://c:/bar' that looks like an absolute URI, target file types: TypeScript, Declaration. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'. --'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'. --Module name 'file://c:/bar', matched pattern 'file://c:/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name 'file://c:/bar' was successfully resolved to '/root/src/bar.js'. ======== - ======== Resolving module 'file://server/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file://server/foo'. - Module name 'file://server/foo', matched pattern 'file://server/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name 'file://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module 'file://server/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'file://server/bar'. - Module name 'file://server/bar', matched pattern 'file://server/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Skipping module 'file://server/bar' that looks like an absolute URI, target file types: TypeScript, Declaration. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'. --'paths' option is specified, looking for a pattern to match module name 'file://server/bar'. --Module name 'file://server/bar', matched pattern 'file://server/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name 'file://server/bar' was successfully resolved to '/root/src/bar.js'. ======== - ======== Resolving module 'http://server/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'http://server/foo'. - Module name 'http://server/foo', matched pattern 'http://server/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name 'http://server/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module 'http://server/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'http://server/bar'. - Module name 'http://server/bar', matched pattern 'http://server/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Skipping module 'http://server/bar' that looks like an absolute URI, target file types: TypeScript, Declaration. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'. --'paths' option is specified, looking for a pattern to match module name 'http://server/bar'. --Module name 'http://server/bar', matched pattern 'http://server/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name 'http://server/bar' was successfully resolved to '/root/src/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff deleted file mode 100644 index 701a3fb6b7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_multipleAliases.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '/import/foo' from '/root/src/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/import/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/import/foo'. - Module name '/import/foo', matched pattern '/import/*'. - Trying substitution './import/*', candidate module location: './import/foo'. --Loading module as file / folder, candidate module location '/root/import/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/import/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/import/foo.ts' exists - use it as a name resolution result. - ======== Module name '/import/foo' was successfully resolved to '/root/import/foo.ts'. ======== - ======== Resolving module '/client/bar' from '/root/src/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/client/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/client/bar'. - Module name '/client/bar', matched pattern '/client/*'. - Trying substitution './client/*', candidate module location: './client/bar'. --Loading module as file / folder, candidate module location '/root/client/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/client/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/client/bar.ts' does not exist. - File '/root/client/bar.tsx' does not exist. - File '/root/client/bar.d.ts' does not exist. --Directory '/root/client/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/client/bar', target file types: TypeScript, Declaration. --Directory '/client' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/client/bar'. --'paths' option is specified, looking for a pattern to match module name '/client/bar'. --Module name '/client/bar', matched pattern '/client/*'. --Trying substitution './client/*', candidate module location: './client/bar'. --Loading module as file / folder, candidate module location '/root/client/bar', target file types: JavaScript. - File '/root/client/bar.js' exists - use it as a name resolution result. - ======== Module name '/client/bar' was successfully resolved to '/root/client/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff deleted file mode 100644 index 853490f3ea..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json -+++ new.pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/foo'. - Module name '/foo', matched pattern '/*'. - Trying substitution './src/*', candidate module location: './src/foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ts' exists - use it as a name resolution result. - ======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== - ======== Resolving module '/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/bar'. - Module name '/bar', matched pattern '/*'. - Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. --Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -+Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/bar.ts' does not exist. - File '/bar.tsx' does not exist. - File '/bar.d.ts' does not exist. --Directory '/bar' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. --'paths' option is specified, looking for a pattern to match module name '/bar'. --Module name '/bar', matched pattern '/*'. --Trying substitution './src/*', candidate module location: './src/bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. --Loading module as file / folder, candidate module location '/bar', target file types: JavaScript. - File '/bar.js' exists - use it as a name resolution result. - ======== Module name '/bar' was successfully resolved to '/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff deleted file mode 100644 index ec1ecf3a1d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json -+++ new.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/foo'. - Module name '/foo', matched pattern '*'. - Trying substitution './src/*', candidate module location: './src//foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/foo.ts' exists - use it as a name resolution result. - ======== Module name '/foo' was successfully resolved to '/root/src/foo.ts'. ======== - ======== Resolving module '/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/bar'. - Module name '/bar', matched pattern '*'. - Trying substitution './src/*', candidate module location: './src//bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/root/src/bar.ts' does not exist. - File '/root/src/bar.tsx' does not exist. - File '/root/src/bar.d.ts' does not exist. --Directory '/root/src/bar' does not exist, skipping all lookups in it. --Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. --File '/bar.ts' does not exist. --File '/bar.tsx' does not exist. --File '/bar.d.ts' does not exist. --Directory '/bar' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. --'paths' option is specified, looking for a pattern to match module name '/bar'. --Module name '/bar', matched pattern '*'. --Trying substitution './src/*', candidate module location: './src//bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. - File '/root/src/bar.js' exists - use it as a name resolution result. - ======== Module name '/bar' was successfully resolved to '/root/src/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff deleted file mode 100644 index 5df048c748..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json -+++ new.pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '/foo' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/foo'. - Module name '/foo', matched pattern '*'. - Trying substitution './src/*', candidate module location: './src//foo'. --Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, Declaration. --Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/foo', target file types: TypeScript, JavaScript, Declaration, JSON. -+Loading module as file / folder, candidate module location '/foo', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/foo.ts' exists - use it as a name resolution result. - ======== Module name '/foo' was successfully resolved to '/foo.ts'. ======== - ======== Resolving module '/bar' from '/root/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name '/bar'. - Module name '/bar', matched pattern '*'. - Trying substitution './src/*', candidate module location: './src//bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, Declaration. --Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -+Loading module as file / folder, candidate module location '/bar', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/bar.ts' does not exist. - File '/bar.tsx' does not exist. - File '/bar.d.ts' does not exist. --Directory '/bar' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/root', using this value to resolve non-relative module name '/bar'. --'paths' option is specified, looking for a pattern to match module name '/bar'. --Module name '/bar', matched pattern '*'. --Trying substitution './src/*', candidate module location: './src//bar'. --Loading module as file / folder, candidate module location '/root/src/bar', target file types: JavaScript. --Loading module as file / folder, candidate module location '/bar', target file types: JavaScript. - File '/bar.js' exists - use it as a name resolution result. - ======== Module name '/bar' was successfully resolved to '/bar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff deleted file mode 100644 index 3b15d9d0a4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtension.trace.json -+++ new.pathMappingBasedModuleResolution_withExtension.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. - File '/foo/foo.ts' exists - use it as a name resolution result. - ======== Module name 'foo' was successfully resolved to '/foo/foo.ts'. ======== - ======== Resolving module 'bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'bar'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'bar'. - Module name 'bar', matched pattern 'bar'. - Trying substitution 'bar/bar.js', candidate module location: 'bar/bar.js'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff deleted file mode 100644 index 829cf92042..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json.diff +++ /dev/null @@ -1,53 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtensionInName.trace.json -+++ new.pathMappingBasedModuleResolution_withExtensionInName.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'zone.js' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.js'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'zone.js'. - Module name 'zone.js', matched pattern '*'. - Trying substitution 'foo/*', candidate module location: 'foo/zone.js'. --Loading module as file / folder, candidate module location '/foo/zone.js', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/foo/zone.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/foo/zone.js' has a '.js' extension - stripping it. - File '/foo/zone.ts' does not exist. - File '/foo/zone.tsx' does not exist. - File '/foo/zone.d.ts' does not exist. -+File '/foo/zone.js' does not exist. -+File '/foo/zone.jsx' does not exist. - File '/foo/zone.js.ts' does not exist. - File '/foo/zone.js.tsx' does not exist. - File '/foo/zone.js.d.ts' does not exist. -+File '/foo/zone.js.js' does not exist. -+File '/foo/zone.js.jsx' does not exist. - File '/foo/zone.js/package.json' does not exist. - File '/foo/zone.js/index.ts' does not exist. - File '/foo/zone.js/index.tsx' does not exist. - File '/foo/zone.js/index.d.ts' exists - use it as a name resolution result. - ======== Module name 'zone.js' was successfully resolved to '/foo/zone.js/index.d.ts'. ======== - ======== Resolving module 'zone.tsx' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'zone.tsx'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'zone.tsx'. - Module name 'zone.tsx', matched pattern '*'. - Trying substitution 'foo/*', candidate module location: 'foo/zone.tsx'. --Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/foo/zone.tsx' has a '.tsx' extension - stripping it. - File '/foo/zone.tsx' does not exist. - File '/foo/zone.ts' does not exist. - File '/foo/zone.d.ts' does not exist. -+File '/foo/zone.jsx' does not exist. -+File '/foo/zone.js' does not exist. - File '/foo/zone.tsx.ts' does not exist. - File '/foo/zone.tsx.tsx' does not exist. - File '/foo/zone.tsx.d.ts' does not exist. -+File '/foo/zone.tsx.js' does not exist. -+File '/foo/zone.tsx.jsx' does not exist. - File '/foo/zone.tsx/package.json' does not exist. - File '/foo/zone.tsx/index.ts' does not exist. - File '/foo/zone.tsx/index.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff deleted file mode 100644 index f53be68120..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json.diff +++ /dev/null @@ -1,53 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json -+++ new.pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/bar/foobar.js' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.js'. --'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. --Module name 'foo/bar/foobar.js', matched pattern '*'. --Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. --Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: TypeScript, Declaration. --File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. --File '/node_modules/foo/bar/foobar.ts' does not exist. --File '/node_modules/foo/bar/foobar.tsx' does not exist. --File '/node_modules/foo/bar/foobar.d.ts' does not exist. --File '/node_modules/foo/bar/foobar.js.ts' does not exist. --File '/node_modules/foo/bar/foobar.js.tsx' does not exist. --File '/node_modules/foo/bar/foobar.js.d.ts' does not exist. --Directory '/node_modules/foo/bar/foobar.js' does not exist, skipping all lookups in it. --Trying substitution 'src/types', candidate module location: 'src/types'. --Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration. --Loading module 'foo/bar/foobar.js' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' does not exist. --File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. --File '/node_modules/foo/bar/foobar.ts' does not exist. --File '/node_modules/foo/bar/foobar.tsx' does not exist. --File '/node_modules/foo/bar/foobar.d.ts' does not exist. --File '/node_modules/foo/bar/foobar.js.ts' does not exist. --File '/node_modules/foo/bar/foobar.js.tsx' does not exist. --File '/node_modules/foo/bar/foobar.js.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --File name '/node_modules/@types/foo/bar/foobar.js' has a '.js' extension - stripping it. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.js'. --'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. --Module name 'foo/bar/foobar.js', matched pattern '*'. --Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. --Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: JavaScript. --File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.js'. -+Module name 'foo/bar/foobar.js', matched pattern '*'. -+Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.js'. -+Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.js', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it. -+File '/node_modules/foo/bar/foobar.ts' does not exist. -+File '/node_modules/foo/bar/foobar.tsx' does not exist. -+File '/node_modules/foo/bar/foobar.d.ts' does not exist. - File '/node_modules/foo/bar/foobar.js' exists - use it as a name resolution result. --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/foo/package.json' does not exist. - Resolving real path for '/node_modules/foo/bar/foobar.js', result '/node_modules/foo/bar/foobar.js'. - ======== Module name 'foo/bar/foobar.js' was successfully resolved to '/node_modules/foo/bar/foobar.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff deleted file mode 100644 index 236cb54a48..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json -+++ new.pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. - File '/foo/foo.ts' does not exist. --Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/foo/foo.ts' has a '.ts' extension - stripping it. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/node_modules' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'. --'paths' option is specified, looking for a pattern to match module name 'foo'. --Module name 'foo', matched pattern 'foo'. --Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'. --File '/foo/foo.ts' does not exist. --Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: JavaScript. --File name '/foo/foo.ts' has a '.ts' extension - stripping it. --Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff deleted file mode 100644 index e90b9cca32..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation4.trace.json.diff +++ /dev/null @@ -1,42 +0,0 @@ ---- old.pathsValidation4.trace.json -+++ new.pathsValidation4.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'someModule'. --'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. --Resolving module name 'someModule' relative to base url '/.src/src' - '/.src/src/someModule'. --Loading module as file / folder, candidate module location '/.src/src/someModule', target file types: TypeScript, Declaration. --File '/.src/src/someModule.ts' does not exist. --File '/.src/src/someModule.tsx' does not exist. --File '/.src/src/someModule.d.ts' does not exist. --Directory '/.src/src/someModule' does not exist, skipping all lookups in it. --Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File '/.src/src/package.json' does not exist. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. --'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. --'paths' option is specified, looking for a pattern to match module name 'someModule'. --'baseUrl' option is set to '/.src/src', using this value to resolve non-relative module name 'someModule'. --Resolving module name 'someModule' relative to base url '/.src/src' - '/.src/src/someModule'. --Loading module as file / folder, candidate module location '/.src/src/someModule', target file types: JavaScript. --File '/.src/src/someModule.js' does not exist. --File '/.src/src/someModule.jsx' does not exist. --Directory '/.src/src/someModule' does not exist, skipping all lookups in it. --Loading module 'someModule' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff b/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff deleted file mode 100644 index 420f42b912..0000000000 --- a/testdata/baselines/reference/submodule/compiler/pathsValidation5.trace.json.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.pathsValidation5.trace.json -+++ new.pathsValidation5.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'someModule' from '/.src/src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'someModule'. --Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, Declaration. -+File '/.src/src/package.json' does not exist. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'someModule' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/src/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. --'paths' option is specified, looking for a pattern to match module name 'someModule'. --Loading module 'someModule' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/.src/src/node_modules' does not exist, skipping all lookups in it. - Directory '/.src/node_modules' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff deleted file mode 100644 index d6c1cbb926..0000000000 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json.diff +++ /dev/null @@ -1,225 +0,0 @@ ---- old.reactJsxReactResolvedNodeNext.trace.json -+++ new.reactJsxReactResolvedNodeNext.trace.json -@@= skipped -0, +0 lines =@@ --File '/.src/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -6, +4 lines =@@ - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Found 'package.json' at '/.src/node_modules/@types/react/package.json'. --'package.json' does not have a 'typesVersions' field. -+File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. - File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. --======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react/jsx-runtime.d.ts@0.0.1'. ======== --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react@0.0.1'. ======== - ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -15, +13 lines =@@ - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. - File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. --======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. --======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== --Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. --======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== - ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ======== --Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. --======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. -+File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+'package.json' does not have a 'typings' field. -+'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. -+File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. -+======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== - ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/node_modules/@types/react/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. - File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'. --======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/index.d.ts@0.0.1', primary: true. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." -+======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff deleted file mode 100644 index c65f079607..0000000000 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json.diff +++ /dev/null @@ -1,226 +0,0 @@ ---- old.reactJsxReactResolvedNodeNextEsm.trace.json -+++ new.reactJsxReactResolvedNodeNextEsm.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/.src/package.json' exists according to earlier cached lookups. - Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Found 'package.json' at '/.src/node_modules/@types/react/package.json'. -+File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. - Using 'exports' subpath './*' with target './jsx-runtime.js'. - File name '/.src/node_modules/@types/react/jsx-runtime.js' has a '.js' extension - stripping it. - File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. --======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react/jsx-runtime.d.ts@0.0.1'. ======== --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+======== Module name 'react/jsx-runtime' was successfully resolved to '/.src/node_modules/@types/react/jsx-runtime.d.ts' with Package ID '@types/react@0.0.1'. ======== - ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. - Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. - File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. --'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. - File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. --======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. --======== Resolving module './' from '/.src/node_modules/@types/react/jsx-runtime.d.ts'. ======== --Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. --======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== - ======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ======== --Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'. --======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ======== -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. -+File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+'package.json' does not have a 'typings' field. -+'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. -+File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. -+======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== - ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. --File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/node_modules/@types/react/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. - File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'. --======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/index.d.ts@0.0.1', primary: true. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." -+======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff deleted file mode 100644 index fcd382e2d1..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json.diff +++ /dev/null @@ -1,49 +0,0 @@ ---- old.requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json -+++ new.requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. - 'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. - Module name 'foo/bar/foobar.json', matched pattern '*'. - Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. --Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration. - File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. - File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. - File '/node_modules/foo/bar/foobar.json.ts' does not exist. - File '/node_modules/foo/bar/foobar.json.tsx' does not exist. - File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. -+File '/node_modules/foo/bar/foobar.json.js' does not exist. -+File '/node_modules/foo/bar/foobar.json.jsx' does not exist. - Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. - Trying substitution 'src/types', candidate module location: 'src/types'. --Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration. --Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, JavaScript, Declaration. -+File '/package.json' does not exist. -+Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/foo/package.json' does not exist. - File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -@@= skipped -22, +25 lines =@@ - File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. - File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. --'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. --Module name 'foo/bar/foobar.json', matched pattern '*'. --Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. --Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: JavaScript. --File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. --File '/node_modules/foo/bar/foobar.json.js' does not exist. --File '/node_modules/foo/bar/foobar.json.jsx' does not exist. --Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. --Trying substitution 'src/types', candidate module location: 'src/types'. --Loading module as file / folder, candidate module location '/src/types', target file types: JavaScript. --Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: JavaScript. - Searching all ancestor node_modules directories for fallback extensions: JavaScript. - File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. - File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff b/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff deleted file mode 100644 index 627c5becd2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFile_PathMapping.trace.json.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- old.requireOfJsonFile_PathMapping.trace.json -+++ new.requireOfJsonFile_PathMapping.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. --'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. --Module name 'foo/bar/foobar.json', matched pattern '*'. --Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. --Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, Declaration. --File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. --File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. --File '/node_modules/foo/bar/foobar.json.ts' does not exist. --File '/node_modules/foo/bar/foobar.json.tsx' does not exist. --File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. --Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it. --Trying substitution 'src/types', candidate module location: 'src/types'. --Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration. --Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' does not exist. --File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. --File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. --File '/node_modules/foo/bar/foobar.json.ts' does not exist. --File '/node_modules/foo/bar/foobar.json.tsx' does not exist. --File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'. --'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. --Module name 'foo/bar/foobar.json', matched pattern '*'. --Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. --Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: JavaScript, JSON. --File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'. -+Module name 'foo/bar/foobar.json', matched pattern '*'. -+Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'. -+Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -+File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. - File '/node_modules/foo/bar/foobar.json' exists - use it as a name resolution result. --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/foo/package.json' does not exist. - Resolving real path for '/node_modules/foo/bar/foobar.json', result '/node_modules/foo/bar/foobar.json'. - ======== Module name 'foo/bar/foobar.json' was successfully resolved to '/node_modules/foo/bar/foobar.json'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff deleted file mode 100644 index bf97d33f47..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json.diff +++ /dev/null @@ -1,70 +0,0 @@ ---- old.typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json -+++ new.typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive '@scoped/typescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== --Resolving with primary search path '/types, /node_modules, /node_modules/@types'. --File '/types/@scoped/typescache.d.ts' does not exist. --File '/types/@scoped/typescache/package.json' does not exist. --File '/types/@scoped/typescache/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/@scoped/typescache/index.d.ts', result '/types/@scoped/typescache/index.d.ts'. --======== Type reference directive '@scoped/typescache' was successfully resolved to '/types/@scoped/typescache/index.d.ts', primary: true. ======== --======== Resolving type reference directive '@scoped/nodemodulescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== --Resolving with primary search path '/types, /node_modules, /node_modules/@types'. --File '/types/@scoped/nodemodulescache.d.ts' does not exist. --File '/node_modules/@scoped/nodemodulescache.d.ts' does not exist. --File '/node_modules/@scoped/nodemodulescache/package.json' does not exist. --File '/node_modules/@scoped/nodemodulescache/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/@scoped/nodemodulescache/index.d.ts', result '/node_modules/@scoped/nodemodulescache/index.d.ts'. --======== Type reference directive '@scoped/nodemodulescache' was successfully resolved to '/node_modules/@scoped/nodemodulescache/index.d.ts', primary: true. ======== --======== Resolving type reference directive '@scoped/attypescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== --Resolving with primary search path '/types, /node_modules, /node_modules/@types'. --File '/types/@scoped/attypescache.d.ts' does not exist. --File '/node_modules/@scoped/attypescache.d.ts' does not exist. --Scoped package detected, looking in 'scoped__attypescache' --File '/node_modules/@types/scoped__attypescache.d.ts' does not exist. --Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. --======== Type reference directive '@scoped/attypescache' was not resolved. ======== --======== Resolving type reference directive '@mangled/typescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== --Resolving with primary search path '/types, /node_modules, /node_modules/@types'. --Scoped package detected, looking in 'mangled__typescache' --File '/node_modules/@types/mangled__typescache.d.ts' does not exist. --Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. --======== Type reference directive '@mangled/typescache' was not resolved. ======== --======== Resolving type reference directive '@mangled/nodemodulescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== --Resolving with primary search path '/types, /node_modules, /node_modules/@types'. --Scoped package detected, looking in 'mangled__nodemodulescache' --File '/node_modules/@types/mangled__nodemodulescache.d.ts' does not exist. --Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. --======== Type reference directive '@mangled/nodemodulescache' was not resolved. ======== --======== Resolving type reference directive '@mangled/attypescache', containing file '/__inferred type names__.ts', root directory '/types,/node_modules,/node_modules/@types'. ======== --Resolving with primary search path '/types, /node_modules, /node_modules/@types'. --Scoped package detected, looking in 'mangled__attypescache' --File '/node_modules/@types/mangled__attypescache.d.ts' does not exist. -+======== Resolving type reference directive '@scoped', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+File '/node_modules/@types/@scoped/package.json' does not exist. -+File '/node_modules/@types/@scoped/index.d.ts' does not exist. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+File '/node_modules/@scoped/package.json' does not exist. -+File '/node_modules/@scoped.d.ts' does not exist. -+File '/node_modules/@scoped/index.d.ts' does not exist. -+File '/node_modules/@types/@scoped/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@types/@scoped.d.ts' does not exist. -+File '/node_modules/@types/@scoped/index.d.ts' does not exist. -+======== Type reference directive '@scoped' was not resolved. ======== -+======== Resolving type reference directive 'mangled__attypescache', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. - File '/node_modules/@types/mangled__attypescache/package.json' does not exist. - File '/node_modules/@types/mangled__attypescache/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/mangled__attypescache/index.d.ts', result '/node_modules/@types/mangled__attypescache/index.d.ts'. --======== Type reference directive '@mangled/attypescache' was successfully resolved to '/node_modules/@types/mangled__attypescache/index.d.ts', primary: true. ======== --File '/node_modules/@scoped/nodemodulescache/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@scoped/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --File '/node_modules/@types/mangled__attypescache/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. -+======== Type reference directive 'mangled__attypescache' was successfully resolved to '/node_modules/@types/mangled__attypescache/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff deleted file mode 100644 index d7007ae9dd..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithFailedFromTypeRoot.trace.json.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.typeReferenceDirectiveWithFailedFromTypeRoot.trace.json -+++ new.typeReferenceDirectiveWithFailedFromTypeRoot.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/typings'. ======== --Resolving with primary search path '/typings'. --File '/typings/phaser.d.ts' does not exist. --Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder. --======== Type reference directive 'phaser' was not resolved. ======== -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff deleted file mode 100644 index 121b1cfb96..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectiveWithTypeAsFile.trace.json.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.typeReferenceDirectiveWithTypeAsFile.trace.json -+++ new.typeReferenceDirectiveWithTypeAsFile.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'phaser', containing file '/__inferred type names__.ts', root directory '/node_modules/phaser/types'. ======== --Resolving with primary search path '/node_modules/phaser/types'. --File '/node_modules/phaser/types/phaser.d.ts' exists - use it as a name resolution result. --File '/node_modules/phaser/package.json' does not exist. --Resolving real path for '/node_modules/phaser/types/phaser.d.ts', result '/node_modules/phaser/types/phaser.d.ts'. --======== Type reference directive 'phaser' was successfully resolved to '/node_modules/phaser/types/phaser.d.ts', primary: true. ======== --File '/node_modules/phaser/types/package.json' does not exist. --File '/node_modules/phaser/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff deleted file mode 100644 index 2d55e4c949..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.typeReferenceDirectives1.trace.json -+++ new.typeReferenceDirectives1.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff deleted file mode 100644 index 25640059b6..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.typeReferenceDirectives10.trace.json -+++ new.typeReferenceDirectives10.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== - ======== Resolving module './ref' from '/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/ref.ts' does not exist. - File '/ref.tsx' does not exist. - File '/ref.d.ts' exists - use it as a name resolution result. - ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff deleted file mode 100644 index e3bcd71474..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives11.trace.json.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.typeReferenceDirectives11.trace.json -+++ new.typeReferenceDirectives11.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './mod1' from '/mod2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/mod1.ts' exists - use it as a name resolution result. - ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff deleted file mode 100644 index 889eb9c539..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json.diff +++ /dev/null @@ -1,52 +0,0 @@ ---- old.typeReferenceDirectives12.trace.json -+++ new.typeReferenceDirectives12.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './main' from '/mod2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/main.ts' exists - use it as a name resolution result. - ======== Module name './main' was successfully resolved to '/main.ts'. ======== - ======== Resolving module './mod1' from '/mod2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/mod1.ts' exists - use it as a name resolution result. - ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving module './main' from '/mod1.ts'. ======== --Resolution for module './main' was found in cache from location '/'. --======== Module name './main' was successfully resolved to '/main.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== -+======== Resolving module './main' from '/mod1.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/main.ts' exists - use it as a name resolution result. -+======== Module name './main' was successfully resolved to '/main.ts'. ======== -+======== Resolving module './main' from '/mod1.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/main.ts' exists - use it as a name resolution result. -+======== Module name './main' was successfully resolved to '/main.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff deleted file mode 100644 index 50efe21bf4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.typeReferenceDirectives13.trace.json -+++ new.typeReferenceDirectives13.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== - ======== Resolving module './ref' from '/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/ref.ts' does not exist. - File '/ref.tsx' does not exist. - File '/ref.d.ts' exists - use it as a name resolution result. - ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff deleted file mode 100644 index 0a2d0c38b9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives2.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.typeReferenceDirectives2.trace.json -+++ new.typeReferenceDirectives2.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff deleted file mode 100644 index 5039b375c5..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.typeReferenceDirectives3.trace.json -+++ new.typeReferenceDirectives3.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff deleted file mode 100644 index 85de052f99..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.typeReferenceDirectives4.trace.json -+++ new.typeReferenceDirectives4.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff deleted file mode 100644 index 54ed50f5d9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.typeReferenceDirectives5.trace.json -+++ new.typeReferenceDirectives5.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== - ======== Resolving module './ref' from '/app.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/ref', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/ref.ts' does not exist. - File '/ref.tsx' does not exist. - File '/ref.d.ts' exists - use it as a name resolution result. - ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff deleted file mode 100644 index b54e8ca2ef..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.typeReferenceDirectives6.trace.json -+++ new.typeReferenceDirectives6.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff deleted file mode 100644 index 6736b91f11..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.typeReferenceDirectives7.trace.json -+++ new.typeReferenceDirectives7.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff deleted file mode 100644 index b1379d389b..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.trace.json.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.typeReferenceDirectives8.trace.json -+++ new.typeReferenceDirectives8.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './mod1' from '/mod2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/mod1.ts' exists - use it as a name resolution result. - ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff deleted file mode 100644 index df3c08dce0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json.diff +++ /dev/null @@ -1,52 +0,0 @@ ---- old.typeReferenceDirectives9.trace.json -+++ new.typeReferenceDirectives9.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './main' from '/mod2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/main', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/main.ts' exists - use it as a name resolution result. - ======== Module name './main' was successfully resolved to '/main.ts'. ======== - ======== Resolving module './mod1' from '/mod2.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/mod1', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/mod1.ts' exists - use it as a name resolution result. - ======== Module name './mod1' was successfully resolved to '/mod1.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/lib.d.ts' does not exist. --File '/types/lib/package.json' does not exist. --File '/types/lib/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== --======== Resolving module './main' from '/mod1.ts'. ======== --Resolution for module './main' was found in cache from location '/'. --======== Module name './main' was successfully resolved to '/main.ts'. ======== --======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'lib' was found in cache from location '/'. --======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'lib' was not resolved. ======== -+======== Resolving module './main' from '/mod1.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/main.ts' exists - use it as a name resolution result. -+======== Module name './main' was successfully resolved to '/main.ts'. ======== -+======== Resolving module './main' from '/mod1.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/main', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/main.ts' exists - use it as a name resolution result. -+======== Module name './main' was successfully resolved to '/main.ts'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff deleted file mode 100644 index d02e409485..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json.diff +++ /dev/null @@ -1,107 +0,0 @@ ---- old.typeRootsFromMultipleNodeModulesDirectories.trace.json -+++ new.typeRootsFromMultipleNodeModulesDirectories.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'xyz' from '/foo/bar/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/foo/bar/package.json' does not exist. -+File '/foo/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. -+Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. - File '/foo/node_modules/xyz.ts' does not exist. - File '/foo/node_modules/xyz.tsx' does not exist. - File '/foo/node_modules/xyz.d.ts' does not exist. -@@= skipped -10, +15 lines =@@ - File '/node_modules/xyz.tsx' does not exist. - File '/node_modules/xyz.d.ts' does not exist. - File '/node_modules/@types/xyz.d.ts' does not exist. --Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. - File '/foo/node_modules/xyz.js' does not exist. - File '/foo/node_modules/xyz.jsx' does not exist. -@@= skipped -9, +8 lines =@@ - File '/node_modules/xyz.jsx' does not exist. - ======== Module name 'xyz' was not resolved. ======== - ======== Resolving module 'pdq' from '/foo/bar/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/foo/bar/package.json' does not exist according to earlier cached lookups. -+File '/foo/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. -+Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. - File '/foo/node_modules/pdq.ts' does not exist. - File '/foo/node_modules/pdq.tsx' does not exist. - File '/foo/node_modules/pdq.d.ts' does not exist. -@@= skipped -12, +17 lines =@@ - File '/node_modules/pdq.tsx' does not exist. - File '/node_modules/pdq.d.ts' does not exist. - File '/node_modules/@types/pdq.d.ts' does not exist. --Loading module 'pdq' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. - File '/foo/node_modules/pdq.js' does not exist. - File '/foo/node_modules/pdq.jsx' does not exist. -@@= skipped -9, +8 lines =@@ - File '/node_modules/pdq.jsx' does not exist. - ======== Module name 'pdq' was not resolved. ======== - ======== Resolving module 'abc' from '/foo/bar/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/foo/bar/package.json' does not exist according to earlier cached lookups. -+File '/foo/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. -+Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. - File '/foo/node_modules/abc.ts' does not exist. - File '/foo/node_modules/abc.tsx' does not exist. - File '/foo/node_modules/abc.d.ts' does not exist. -@@= skipped -12, +17 lines =@@ - File '/node_modules/abc.tsx' does not exist. - File '/node_modules/abc.d.ts' does not exist. - File '/node_modules/@types/abc.d.ts' does not exist. --Loading module 'abc' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. - File '/foo/node_modules/abc.js' does not exist. - File '/foo/node_modules/abc.jsx' does not exist. -@@= skipped -25, +24 lines =@@ - ======== Resolving type reference directive 'dopey', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'. - Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/foo/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/@types/dopey/package.json' does not exist. - File '/node_modules/@types/dopey/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'. - ======== Type reference directive 'dopey' was successfully resolved to '/node_modules/@types/dopey/index.d.ts', primary: true. ======== --File '/foo/node_modules/@types/grumpy/package.json' does not exist according to earlier cached lookups. --File '/foo/node_modules/@types/package.json' does not exist. --File '/foo/node_modules/package.json' does not exist. --File '/foo/package.json' does not exist. --File '/package.json' does not exist. --File '/foo/node_modules/@types/sneezy/package.json' does not exist according to earlier cached lookups. --File '/foo/node_modules/@types/package.json' does not exist according to earlier cached lookups. --File '/foo/node_modules/package.json' does not exist according to earlier cached lookups. --File '/foo/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/dopey/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff deleted file mode 100644 index c744df97a7..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.typeRootsFromNodeModulesInParentDirectory.trace.json -+++ new.typeRootsFromNodeModulesInParentDirectory.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'xyz' from '/src/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/src/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/xyz.ts' does not exist. - File '/node_modules/xyz.tsx' does not exist. - File '/node_modules/xyz.d.ts' does not exist. - File '/node_modules/@types/xyz.d.ts' does not exist. --Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - Directory '/src/node_modules' does not exist, skipping all lookups in it. - File '/node_modules/xyz.js' does not exist. - File '/node_modules/xyz.jsx' does not exist. -@@= skipped -19, +22 lines =@@ - File '/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/foo/index.d.ts', result '/node_modules/@types/foo/index.d.ts'. - ======== Type reference directive 'foo' was successfully resolved to '/node_modules/@types/foo/index.d.ts', primary: true. ======== --File '/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff deleted file mode 100644 index 1229bce225..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).trace.json.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.bundlerConditionsExcludesNode(module=esnext).trace.json -+++ new.bundlerConditionsExcludesNode(module=esnext).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/conditions/package.json'. --File '/node_modules/conditions/package.json' exists according to earlier cached lookups. - ======== Resolving module 'conditions' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/conditions/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/conditions/package.json'. - Entering conditional exports. - Saw non-matching condition 'node'. - Matched 'exports' condition 'default'. -@@= skipped -18, +16 lines =@@ - Resolved under condition 'default'. - Exiting conditional exports. - Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'. --======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/index.web.d.ts@1.0.0'. ======== -+======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff deleted file mode 100644 index 260ed8f80d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=preserve).trace.json.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.bundlerConditionsExcludesNode(module=preserve).trace.json -+++ new.bundlerConditionsExcludesNode(module=preserve).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/conditions/package.json'. --File '/node_modules/conditions/package.json' exists according to earlier cached lookups. - ======== Resolving module 'conditions' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/conditions/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/conditions/package.json'. - Entering conditional exports. - Saw non-matching condition 'node'. - Matched 'exports' condition 'default'. -@@= skipped -18, +16 lines =@@ - Resolved under condition 'default'. - Exiting conditional exports. - Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'. --======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/index.web.d.ts@1.0.0'. ======== -+======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff deleted file mode 100644 index 0ae897eb2f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json -+++ new.bundlerDirectoryModule(module=node18,moduleresolution=bundler).trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '../lib' from '/app/test.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. --Resolving in CJS mode with conditions 'import', 'types'. -+Resolving in CJS mode with conditions 'require', 'types'. - Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/lib.ts' does not exist. - File '/lib.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff deleted file mode 100644 index bad12dfee1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json.diff +++ /dev/null @@ -1,140 +0,0 @@ ---- old.bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json -+++ new.bundlerDirectoryModule(module=node18,moduleresolution=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --File '/app/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module '../lib' from '/app/test.ts'. ======== - Explicitly specified module resolution kind: 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -18, +16 lines =@@ - File '/lib/cjs/index.tsx' does not exist. - File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. - ======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== --File '/lib/cjs/package.json' does not exist. --File '/lib/package.json' exists according to earlier cached lookups. --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff deleted file mode 100644 index 350907f1d4..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json -+++ new.bundlerDirectoryModule(module=nodenext,moduleresolution=bundler).trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '../lib' from '/app/test.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. --Resolving in CJS mode with conditions 'import', 'types'. -+Resolving in CJS mode with conditions 'require', 'types'. - Loading module as file / folder, candidate module location '/lib', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/lib.ts' does not exist. - File '/lib.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff deleted file mode 100644 index 76683c2c3f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json.diff +++ /dev/null @@ -1,182 +0,0 @@ ---- old.bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json -+++ new.bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --File '/app/package.json' does not exist. --File '/package.json' does not exist. - ======== Resolving module '../lib' from '/app/test.ts'. ======== - Explicitly specified module resolution kind: 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -18, +16 lines =@@ - File '/lib/cjs/index.tsx' does not exist. - File '/lib/cjs/index.d.ts' exists - use it as a name resolution result. - ======== Module name '../lib' was successfully resolved to '/lib/cjs/index.d.ts'. ======== --File '/lib/cjs/package.json' does not exist. --File '/lib/package.json' exists according to earlier cached lookups. --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff deleted file mode 100644 index c683b5f244..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json.diff +++ /dev/null @@ -1,37 +0,0 @@ ---- old.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json -+++ new.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json -@@= skipped -44, +44 lines =@@ - File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. - File '/project/b.ts' exists - use it as a name resolution result. - ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== -+======== Resolving module './b.d.ts' from '/project/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/b.ts' exists - use it as a name resolution result. -+======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== - ======== Resolving module './c.ts' from '/project/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -54, +61 lines =@@ - File '/project/e.txt.ts' exists - use it as a name resolution result. - ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== - ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== --Resolution for module './a.ts' was found in cache from location '/project'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.ts' has a '.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. - ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== -+======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. -+======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== - ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff deleted file mode 100644 index 8a9b300f84..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json.diff +++ /dev/null @@ -1,37 +0,0 @@ ---- old.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json -+++ new.bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json -@@= skipped -44, +44 lines =@@ - File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. - File '/project/b.ts' exists - use it as a name resolution result. - ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== -+======== Resolving module './b.d.ts' from '/project/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/b.ts' exists - use it as a name resolution result. -+======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== - ======== Resolving module './c.ts' from '/project/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -54, +61 lines =@@ - File '/project/e.txt.ts' exists - use it as a name resolution result. - ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== - ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== --Resolution for module './a.ts' was found in cache from location '/project'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.ts' has a '.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. - ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== -+======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. -+======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== - ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff deleted file mode 100644 index 84201e4a2b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json.diff +++ /dev/null @@ -1,37 +0,0 @@ ---- old.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json -+++ new.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json -@@= skipped -44, +44 lines =@@ - File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. - File '/project/b.ts' exists - use it as a name resolution result. - ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== -+======== Resolving module './b.d.ts' from '/project/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/b.ts' exists - use it as a name resolution result. -+======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== - ======== Resolving module './c.ts' from '/project/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -54, +61 lines =@@ - File '/project/e.txt.ts' exists - use it as a name resolution result. - ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== - ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== --Resolution for module './a.ts' was found in cache from location '/project'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.ts' has a '.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. - ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== -+======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. -+======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== - ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff deleted file mode 100644 index 2271d2bac2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json.diff +++ /dev/null @@ -1,37 +0,0 @@ ---- old.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json -+++ new.bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json -@@= skipped -44, +44 lines =@@ - File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. - File '/project/b.ts' exists - use it as a name resolution result. - ======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== -+======== Resolving module './b.d.ts' from '/project/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/b.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/b.ts' exists - use it as a name resolution result. -+======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ======== - ======== Resolving module './c.ts' from '/project/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -54, +61 lines =@@ - File '/project/e.txt.ts' exists - use it as a name resolution result. - ======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ======== - ======== Resolving module './a.ts' from '/project/types.d.ts'. ======== --Resolution for module './a.ts' was found in cache from location '/project'. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.ts' has a '.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. - ======== Module name './a.ts' was successfully resolved to '/project/a.ts'. ======== -+======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON. -+File name '/project/a.d.ts' has a '.d.ts' extension - stripping it. -+File '/project/a.ts' exists - use it as a name resolution result. -+======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ======== - ======== Resolving module './a.d.ts' from '/project/types.d.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff deleted file mode 100644 index dcb0701138..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json.diff +++ /dev/null @@ -1,61 +0,0 @@ ---- old.bundlerNodeModules1(module=esnext).trace.json -+++ new.bundlerNodeModules1(module=esnext).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/dual/package.json'. - ======== Resolving module 'dual' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. --File '/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. - Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/dual/package.json' exists according to earlier cached lookups. -@@= skipped -16, +15 lines =@@ - Resolved under condition 'import'. - Exiting conditional exports. - Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. --======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== -+======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== - ======== Resolving module 'dual' from '/main.mts'. ======== --Resolution for module 'dual' was found in cache from location '/'. --======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/node_modules/dual/package.json' exists according to earlier cached lookups. -+Entering conditional exports. -+Matched 'exports' condition 'import'. -+Using 'exports' subpath '.' with target './index.js'. -+File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. -+File '/node_modules/dual/index.ts' does not exist. -+File '/node_modules/dual/index.tsx' does not exist. -+File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. -+Resolved under condition 'import'. -+Exiting conditional exports. -+Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. -+======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== - ======== Resolving module 'dual' from '/main.cts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'require', 'types'. --File '/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist. - Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/dual/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/dual/package.json'. - Entering conditional exports. - Saw non-matching condition 'import'. - Matched 'exports' condition 'require'. -@@= skipped -18, +34 lines =@@ - File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it. - File '/node_modules/dual/index.cts' does not exist. - File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'require'. - Exiting conditional exports. - Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'. --======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual/index.d.cts@1.0.0'. ======== -+======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff deleted file mode 100644 index 6a5af5097d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json.diff +++ /dev/null @@ -1,61 +0,0 @@ ---- old.bundlerNodeModules1(module=preserve).trace.json -+++ new.bundlerNodeModules1(module=preserve).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/dual/package.json'. - ======== Resolving module 'dual' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. --File '/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. - Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/dual/package.json' exists according to earlier cached lookups. -@@= skipped -16, +15 lines =@@ - Resolved under condition 'import'. - Exiting conditional exports. - Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. --======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== -+======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== - ======== Resolving module 'dual' from '/main.mts'. ======== --Resolution for module 'dual' was found in cache from location '/'. --======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/index.d.ts@1.0.0'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/node_modules/dual/package.json' exists according to earlier cached lookups. -+Entering conditional exports. -+Matched 'exports' condition 'import'. -+Using 'exports' subpath '.' with target './index.js'. -+File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. -+File '/node_modules/dual/index.ts' does not exist. -+File '/node_modules/dual/index.tsx' does not exist. -+File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. -+Resolved under condition 'import'. -+Exiting conditional exports. -+Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/dual/index.d.ts'. -+======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual@1.0.0'. ======== - ======== Resolving module 'dual' from '/main.cts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'require', 'types'. --File '/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist. - Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/dual/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/dual/package.json'. - Entering conditional exports. - Saw non-matching condition 'import'. - Matched 'exports' condition 'require'. -@@= skipped -18, +34 lines =@@ - File name '/node_modules/dual/index.cjs' has a '.cjs' extension - stripping it. - File '/node_modules/dual/index.cts' does not exist. - File '/node_modules/dual/index.d.cts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'require'. - Exiting conditional exports. - Resolving real path for '/node_modules/dual/index.d.cts', result '/node_modules/dual/index.d.cts'. --======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual/index.d.cts@1.0.0'. ======== -+======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.cts' with Package ID 'dual@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff deleted file mode 100644 index 45ba4fd6c8..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.bundlerRelative1(module=esnext).trace.json -+++ new.bundlerRelative1(module=esnext).trace.json -@@= skipped -70, +70 lines =@@ - File '/types/esm.tsx' does not exist. - File '/types/esm.d.ts' exists - use it as a name resolution result. - ======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== -+======== Resolving module './types/esm' from '/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/types/esm.ts' does not exist. -+File '/types/esm.tsx' does not exist. -+File '/types/esm.d.ts' exists - use it as a name resolution result. -+======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== -+======== Resolving module './types/cjs' from '/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/types/cjs.ts' does not exist. -+File '/types/cjs.tsx' does not exist. -+File '/types/cjs.d.ts' exists - use it as a name resolution result. -+======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== - ======== Resolving module './types/cjs' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff deleted file mode 100644 index c5db8457d2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.bundlerRelative1(module=preserve).trace.json -+++ new.bundlerRelative1(module=preserve).trace.json -@@= skipped -70, +70 lines =@@ - File '/types/esm.tsx' does not exist. - File '/types/esm.d.ts' exists - use it as a name resolution result. - ======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== -+======== Resolving module './types/esm' from '/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/types/esm.ts' does not exist. -+File '/types/esm.tsx' does not exist. -+File '/types/esm.d.ts' exists - use it as a name resolution result. -+======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== -+======== Resolving module './types/cjs' from '/main.ts'. ======== -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'import', 'types'. -+Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. -+File '/types/cjs.ts' does not exist. -+File '/types/cjs.tsx' does not exist. -+File '/types/cjs.d.ts' exists - use it as a name resolution result. -+======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== - ======== Resolving module './types/cjs' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff deleted file mode 100644 index 8931e3c555..0000000000 --- a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json -+++ new.conditionalExportsResolutionFallback(moduleresolution=bundler).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/dep/dist/package.json' does not exist. --Found 'package.json' at '/node_modules/dep/package.json'. - ======== Resolving module 'dep' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/dep/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/dep/package.json'. - Entering conditional exports. - Matched 'exports' condition 'import'. - Using 'exports' subpath '.' with target './dist/index.mjs'. -@@= skipped -21, +19 lines =@@ - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. --======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ======== -+======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff deleted file mode 100644 index 61c61e68a6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=node16).trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.conditionalExportsResolutionFallback(moduleresolution=node16).trace.json -+++ new.conditionalExportsResolutionFallback(moduleresolution=node16).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/dep/dist/package.json' does not exist. --Found 'package.json' at '/node_modules/dep/package.json'. - ======== Resolving module 'dep' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/package.json' does not exist. - Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/dep/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/dep/package.json'. - Entering conditional exports. - Matched 'exports' condition 'import'. - Using 'exports' subpath '.' with target './dist/index.mjs'. -@@= skipped -21, +19 lines =@@ - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. --======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." -+======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff deleted file mode 100644 index be66092b40..0000000000 --- a/testdata/baselines/reference/submodule/conformance/conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json -+++ new.conditionalExportsResolutionFallback(moduleresolution=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/dep/dist/package.json' does not exist. --Found 'package.json' at '/node_modules/dep/package.json'. - ======== Resolving module 'dep' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/package.json' does not exist. - Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/dep/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/dep/package.json'. - Entering conditional exports. - Matched 'exports' condition 'import'. - Using 'exports' subpath '.' with target './dist/index.mjs'. -@@= skipped -21, +19 lines =@@ - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'. --======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/index.d.ts@1.0.0'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." -+======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff deleted file mode 100644 index 201f73debf..0000000000 --- a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=false).trace.json.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.customConditions(resolvepackagejsonexports=false).trace.json -+++ new.customConditions(resolvepackagejsonexports=false).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/lodash/package.json'. --File '/node_modules/lodash/package.json' exists according to earlier cached lookups. --File '/node_modules/lodash/package.json' exists according to earlier cached lookups. - ======== Resolving module 'lodash' from '/index.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. --Resolving in CJS mode with conditions 'import', 'types', 'webpack', ' browser'. -+Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/lodash/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/lodash/package.json'. - File '/node_modules/lodash.ts' does not exist. - File '/node_modules/lodash.tsx' does not exist. - File '/node_modules/lodash.d.ts' does not exist. -@@= skipped -20, +17 lines =@@ - File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'. --======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash/index.d.ts@1.0.0'. ======== -+======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff b/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff deleted file mode 100644 index b55f17c3f2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/customConditions(resolvepackagejsonexports=true).trace.json.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.customConditions(resolvepackagejsonexports=true).trace.json -+++ new.customConditions(resolvepackagejsonexports=true).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/lodash/package.json'. --File '/node_modules/lodash/package.json' exists according to earlier cached lookups. --File '/node_modules/lodash/package.json' exists according to earlier cached lookups. - ======== Resolving module 'lodash' from '/index.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. --Resolving in CJS mode with conditions 'import', 'types', 'webpack', ' browser'. -+Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/lodash/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/lodash/package.json'. - Entering conditional exports. - Saw non-matching condition 'browser'. --Matched 'exports' condition 'webpack'. --Using 'exports' subpath '.' with target './webpack.js'. --File name '/node_modules/lodash/webpack.js' has a '.js' extension - stripping it. --File '/node_modules/lodash/webpack.ts' does not exist. --File '/node_modules/lodash/webpack.tsx' does not exist. --File '/node_modules/lodash/webpack.d.ts' exists - use it as a name resolution result. -+Saw non-matching condition 'webpack'. -+Matched 'exports' condition 'default'. -+Using 'exports' subpath '.' with target './index.js'. -+File name '/node_modules/lodash/index.js' has a '.js' extension - stripping it. -+File '/node_modules/lodash/index.ts' does not exist. -+File '/node_modules/lodash/index.tsx' does not exist. -+File '/node_modules/lodash/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolved under condition 'webpack'. -+Resolved under condition 'default'. - Exiting conditional exports. --Resolving real path for '/node_modules/lodash/webpack.d.ts', result '/node_modules/lodash/webpack.d.ts'. --======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/webpack.d.ts' with Package ID 'lodash/webpack.d.ts@1.0.0'. ======== -+Resolving real path for '/node_modules/lodash/index.d.ts', result '/node_modules/lodash/index.d.ts'. -+======== Module name 'lodash' was successfully resolved to '/node_modules/lodash/index.d.ts' with Package ID 'lodash@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff deleted file mode 100644 index d23c5436ce..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.library-reference-1.trace.json -+++ new.library-reference-1.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/src/types'. ======== --Resolving with primary search path '/src/types'. --File '/src/types/jquery.d.ts' does not exist. --File '/src/types/jquery/package.json' does not exist. --File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/src/types'. ======== --Resolving with primary search path '/src/types'. --File '/src/types/jquery.d.ts' does not exist. --File '/src/types/jquery/package.json' does not exist according to earlier cached lookups. --File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/src'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'jquery' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff deleted file mode 100644 index b1db77b7d9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.library-reference-10.trace.json -+++ new.library-reference-10.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/foo/types'. ======== --Resolving with primary search path '/foo/types'. --File '/foo/types/jquery.d.ts' does not exist. --Found 'package.json' at '/foo/types/jquery/package.json'. --'package.json' does not have a 'typesVersions' field. --'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. --File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. --Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ======== --======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/foo/types'. ======== --Resolving with primary search path '/foo/types'. --File '/foo/types/jquery.d.ts' does not exist. --File '/foo/types/jquery/package.json' exists according to earlier cached lookups. --'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. --File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. --Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ======== -+======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/foo'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/foo/node_modules' does not exist, skipping all lookups in it. -+Directory '/foo/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'jquery' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff deleted file mode 100644 index 5ae14a2bd0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-11.trace.json.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.library-reference-11.trace.json -+++ new.library-reference-11.trace.json -@@= skipped -3, +3 lines =@@ - Looking up in 'node_modules' folder, initial location '/a/b'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. - Found 'package.json' at '/a/node_modules/jquery/package.json'. - File '/a/node_modules/jquery.d.ts' does not exist. - 'package.json' does not have a 'typesVersions' field. -@@= skipped -7, +8 lines =@@ - File '/a/node_modules/jquery/jquery.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/node_modules/jquery/jquery.d.ts', result '/a/node_modules/jquery/jquery.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/jquery.d.ts', primary: false. ======== --File '/a/node_modules/jquery/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff deleted file mode 100644 index c3ddcb5c26..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-12.trace.json.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.library-reference-12.trace.json -+++ new.library-reference-12.trace.json -@@= skipped -3, +3 lines =@@ - Looking up in 'node_modules' folder, initial location '/a/b'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/a/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/a/b/node_modules/@types' does not exist, skipping all lookups in it. - Found 'package.json' at '/a/node_modules/jquery/package.json'. - File '/a/node_modules/jquery.d.ts' does not exist. - 'package.json' does not have a 'typesVersions' field. -@@= skipped -8, +9 lines =@@ - File '/a/node_modules/jquery/dist/jquery.d.ts' exists - use it as a name resolution result. - Resolving real path for '/a/node_modules/jquery/dist/jquery.d.ts', result '/a/node_modules/jquery/dist/jquery.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/a/node_modules/jquery/dist/jquery.d.ts', primary: false. ======== --File '/a/node_modules/jquery/dist/package.json' does not exist. --File '/a/node_modules/jquery/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff deleted file mode 100644 index 48d226e884..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-13.trace.json.diff +++ /dev/null @@ -1,2 +0,0 @@ ---- old.library-reference-13.trace.json -+++ new.library-reference-13.trace.json \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff deleted file mode 100644 index 19e725a306..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-14.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.library-reference-14.trace.json -+++ new.library-reference-14.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'jquery', containing file '/a/__inferred type names__.ts', root directory '/a/types'. ======== --Resolving with primary search path '/a/types'. --File '/a/types/jquery.d.ts' does not exist. --File '/a/types/jquery/package.json' does not exist. --File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ======== -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff deleted file mode 100644 index f93ffc44b6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-15.trace.json.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.library-reference-15.trace.json -+++ new.library-reference-15.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/a/types'. ======== --Resolving with primary search path '/a/types'. --File '/a/types/jquery.d.ts' does not exist. --File '/a/types/jquery/package.json' does not exist. --File '/a/types/jquery/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/a/types/jquery/index.d.ts', result '/a/types/jquery/index.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/a/types/jquery/index.d.ts', primary: true. ======== -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff deleted file mode 100644 index 6c26070a0a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.library-reference-2.trace.json -+++ new.library-reference-2.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/jquery.d.ts' does not exist. --Found 'package.json' at '/types/jquery/package.json'. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. --File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquery.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ======== --======== Resolving type reference directive 'jquery', containing file '/test/__inferred type names__.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --File '/types/jquery.d.ts' does not exist. --File '/types/jquery/package.json' exists according to earlier cached lookups. --'package.json' does not have a 'typings' field. --'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. --File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result. --Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquery.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ======== -+======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. -+Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'jquery' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff deleted file mode 100644 index 05ca5e3035..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-3.trace.json.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.library-reference-3.trace.json -+++ new.library-reference-3.trace.json -@@= skipped -8, +8 lines =@@ - File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ======== --File '/src/node_modules/jquery/package.json' does not exist according to earlier cached lookups. --File '/src/node_modules/package.json' does not exist. --File '/src/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff deleted file mode 100644 index a9673c45c6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-4.trace.json.diff +++ /dev/null @@ -1,83 +0,0 @@ ---- old.library-reference-4.trace.json -+++ new.library-reference-4.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/src'. ======== --Resolving with primary search path '/src'. --File '/src/foo.d.ts' does not exist. -+======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/src'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/foo/package.json' does not exist. - File '/node_modules/foo.d.ts' does not exist. - File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. - ======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ======== --======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/src'. ======== --Resolving with primary search path '/src'. --File '/src/bar.d.ts' does not exist. -+======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/src'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/bar/package.json' does not exist. - File '/node_modules/bar.d.ts' does not exist. - File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'. - ======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ======== --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/src'. ======== --Resolving with primary search path '/src'. --File '/src/alpha.d.ts' does not exist. -+======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/node_modules/foo'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - File '/node_modules/foo/node_modules/alpha/package.json' does not exist. -@@= skipped -32, +37 lines =@@ - File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'. - ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ======== --File '/node_modules/foo/node_modules/alpha/package.json' does not exist according to earlier cached lookups. --File '/node_modules/foo/node_modules/package.json' does not exist. --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/src'. ======== --Resolving with primary search path '/src'. --File '/src/alpha.d.ts' does not exist. -+======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/.src/test/node_modules/@types,/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/test/node_modules/@types, /.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/node_modules/bar'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - File '/node_modules/bar/node_modules/alpha/package.json' does not exist. -@@= skipped -18, +12 lines =@@ - File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'. - ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ======== --File '/node_modules/bar/node_modules/alpha/package.json' does not exist according to earlier cached lookups. --File '/node_modules/bar/node_modules/package.json' does not exist. --File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff deleted file mode 100644 index 83885e6e57..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-5.trace.json.diff +++ /dev/null @@ -1,75 +0,0 @@ ---- old.library-reference-5.trace.json -+++ new.library-reference-5.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --Directory '/types' does not exist, skipping all lookups in it. -+======== Resolving type reference directive 'foo', containing file '/src/root.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/src'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/foo/package.json' does not exist. - File '/node_modules/foo.d.ts' does not exist. - File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. - ======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ======== --======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --Directory '/types' does not exist, skipping all lookups in it. -+======== Resolving type reference directive 'bar', containing file '/src/root.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/src'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - Directory '/src/node_modules' does not exist, skipping all lookups in it. -+Directory '/src/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/bar/package.json' does not exist. - File '/node_modules/bar.d.ts' does not exist. - File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'. - ======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ======== --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --Directory '/types' does not exist, skipping all lookups in it. -+======== Resolving type reference directive 'alpha', containing file '/node_modules/foo/index.d.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/node_modules/foo'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - File '/node_modules/foo/node_modules/alpha/package.json' does not exist. -@@= skipped -32, +31 lines =@@ - File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'. - ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ======== --File '/node_modules/foo/node_modules/alpha/package.json' does not exist according to earlier cached lookups. --File '/node_modules/foo/node_modules/package.json' does not exist. --File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/types'. ======== --Resolving with primary search path '/types'. --Directory '/types' does not exist, skipping all lookups in it. -+======== Resolving type reference directive 'alpha', containing file '/node_modules/bar/index.d.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/node_modules/bar'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - File '/node_modules/bar/node_modules/alpha/package.json' does not exist. -@@= skipped -18, +10 lines =@@ - File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'. - ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ======== --File '/node_modules/bar/node_modules/alpha/package.json' does not exist according to earlier cached lookups. --File '/node_modules/bar/node_modules/package.json' does not exist. --File '/node_modules/bar/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff deleted file mode 100644 index e98b99d4a2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.library-reference-6.trace.json -+++ new.library-reference-6.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving type reference directive 'alpha', containing file '/src/foo.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. --File '/node_modules/@types/alpha/package.json' does not exist. --File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. --======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== - File '/node_modules/@types/alpha/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'alpha' was found in cache from location '/'. -+File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. -+======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+File '/node_modules/@types/alpha/package.json' does not exist. -+File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. - ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff deleted file mode 100644 index 8318214b61..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-7.trace.json.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.library-reference-7.trace.json -+++ new.library-reference-7.trace.json -@@= skipped -7, +7 lines =@@ - File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ======== --File '/src/node_modules/jquery/package.json' does not exist according to earlier cached lookups. --File '/src/node_modules/package.json' does not exist. --File '/src/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff deleted file mode 100644 index c3451aa69e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json.diff +++ /dev/null @@ -1,59 +0,0 @@ ---- old.library-reference-8.trace.json -+++ new.library-reference-8.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/types'. ======== --Resolving with primary search path '/test/types'. --File '/test/types/alpha.d.ts' does not exist. --File '/test/types/alpha/package.json' does not exist. --File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. --======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'beta', containing file '/test/foo.ts', root directory '/test/types'. ======== --Resolving with primary search path '/test/types'. --File '/test/types/beta.d.ts' does not exist. --File '/test/types/beta/package.json' does not exist. --File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. --======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'beta', containing file '/test/types/alpha/index.d.ts', root directory '/test/types'. ======== --Resolving with primary search path '/test/types'. --File '/test/types/beta.d.ts' does not exist. --File '/test/types/beta/package.json' does not exist according to earlier cached lookups. --File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. --======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'alpha', containing file '/test/types/beta/index.d.ts', root directory '/test/types'. ======== --Resolving with primary search path '/test/types'. --File '/test/types/alpha.d.ts' does not exist. --File '/test/types/alpha/package.json' does not exist according to earlier cached lookups. --File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. --======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'alpha', containing file '/test/__inferred type names__.ts'. ======== --Resolution for type reference directive 'alpha' was found in cache from location '/test'. --======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== --======== Resolving type reference directive 'beta', containing file '/test/__inferred type names__.ts'. ======== --Resolution for type reference directive 'beta' was found in cache from location '/test'. --======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. -+Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/test'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/test/node_modules' does not exist, skipping all lookups in it. -+Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'alpha' was not resolved. ======== -+======== Resolving type reference directive 'beta', containing file '/test/foo.ts', root directory '/test/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/test/node_modules/@types, /node_modules/@types'. -+Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Looking up in 'node_modules' folder, initial location '/test'. -+Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Directory '/test/node_modules' does not exist, skipping all lookups in it. -+Directory '/test/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+======== Type reference directive 'beta' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff b/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff deleted file mode 100644 index 2060d94ae5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/library-reference-scoped-packages.trace.json.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.library-reference-scoped-packages.trace.json -+++ new.library-reference-scoped-packages.trace.json -@@= skipped -0, +0 lines =@@ --======== Resolving type reference directive '@beep/boop', containing file '/a.ts', root directory '/.src/types'. ======== --Resolving with primary search path '/.src/types'. --Directory '/.src/types' does not exist, skipping all lookups in it. --Looking up in 'node_modules' folder, initial location '/'. --Searching all ancestor node_modules directories for preferred extensions: Declaration. --Scoped package detected, looking in 'beep__boop' --File '/node_modules/@types/beep__boop/package.json' does not exist. --File '/node_modules/@types/beep__boop.d.ts' does not exist. --File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. --======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: false. ======== -+======== Resolving type reference directive '@beep/boop', containing file '/a.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -+Scoped package detected, looking in 'beep__boop' -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+Scoped package detected, looking in 'beep__boop' - File '/node_modules/@types/beep__boop/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. -+File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. -+======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'beep__boop', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+File '/node_modules/@types/beep__boop/package.json' does not exist. -+File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'. -+======== Type reference directive 'beep__boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff b/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff deleted file mode 100644 index 81b4e2a1b6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/moduleResolutionWithExtensions.trace.json.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.moduleResolutionWithExtensions.trace.json -+++ new.moduleResolutionWithExtensions.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module './a' from '/src/b.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/a', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/src/a.ts' exists - use it as a name resolution result. - ======== Module name './a' was successfully resolved to '/src/a.ts'. ======== - ======== Resolving module './a.js' from '/src/d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/a.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/src/a.js' has a '.js' extension - stripping it. - File '/src/a.ts' exists - use it as a name resolution result. - ======== Module name './a.js' was successfully resolved to '/src/a.ts'. ======== - ======== Resolving module './jquery.js' from '/src/jquery_user_1.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/src/jquery.js', target file types: TypeScript, JavaScript, Declaration, JSON. - File name '/src/jquery.js' has a '.js' extension - stripping it. - File '/src/jquery.ts' does not exist. - File '/src/jquery.tsx' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff deleted file mode 100644 index 932b76b794..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=bundler).trace.json.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.nestedPackageJsonRedirect(moduleresolution=bundler).trace.json -+++ new.nestedPackageJsonRedirect(moduleresolution=bundler).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@restart/hooks/esm/package.json' does not exist. --Found 'package.json' at '/node_modules/@restart/hooks/package.json'. - ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'require', 'types'. -@@= skipped -6, +4 lines =@@ - Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. --File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@restart/hooks/package.json'. - File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. - File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. - File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff deleted file mode 100644 index c5a0dcf18c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.nestedPackageJsonRedirect(moduleresolution=node16).trace.json -+++ new.nestedPackageJsonRedirect(moduleresolution=node16).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@restart/hooks/esm/package.json' does not exist. --Found 'package.json' at '/node_modules/@restart/hooks/package.json'. --File '/package.json' does not exist. - ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -7, +4 lines =@@ - Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. --File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@restart/hooks/package.json'. - File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. - File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. - File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. -@@= skipped -10, +10 lines =@@ - File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. - ======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff deleted file mode 100644 index 51267702cd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json -+++ new.nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@restart/hooks/esm/package.json' does not exist. --Found 'package.json' at '/node_modules/@restart/hooks/package.json'. --File '/package.json' does not exist. - ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== - Explicitly specified module resolution kind: 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -7, +4 lines =@@ - Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. --File '/node_modules/@restart/hooks/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@restart/hooks/package.json'. - File '/node_modules/@restart/hooks/useMergedRefs.ts' does not exist. - File '/node_modules/@restart/hooks/useMergedRefs.tsx' does not exist. - File '/node_modules/@restart/hooks/useMergedRefs.d.ts' does not exist. -@@= skipped -10, +10 lines =@@ - File '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts', result '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. - ======== Module name '@restart/hooks/useMergedRefs' was successfully resolved to '/node_modules/@restart/hooks/esm/useMergedRefs.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff deleted file mode 100644 index 8e389bd372..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10AlternateResult_noResolution.trace.json.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- old.node10AlternateResult_noResolution.trace.json -+++ new.node10AlternateResult_noResolution.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/pkg/package.json'. - ======== Resolving module 'pkg' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. --File '/node_modules/pkg.ts' does not exist. --File '/node_modules/pkg.tsx' does not exist. --File '/node_modules/pkg.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' does not have a 'main' field. --File '/node_modules/pkg/index.ts' does not exist. --File '/node_modules/pkg/index.tsx' does not exist. --File '/node_modules/pkg/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'pkg' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. --File '/node_modules/pkg.js' does not exist. --File '/node_modules/pkg.jsx' does not exist. --'package.json' does not have a 'main' field. --File '/node_modules/pkg/index.js' does not exist. --File '/node_modules/pkg/index.jsx' does not exist. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Found 'package.json' at '/node_modules/pkg/package.json'. - Using 'exports' subpath '.' with target './definitely-not-index.js'. - File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. - File '/node_modules/pkg/definitely-not-index.ts' does not exist. - File '/node_modules/pkg/definitely-not-index.tsx' does not exist. - File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --======== Module name 'pkg' was not resolved. ======== -+Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. -+======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff deleted file mode 100644 index 8bc36f96dd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10Alternateresult_noTypes.trace.json.diff +++ /dev/null @@ -1,62 +0,0 @@ ---- old.node10Alternateresult_noTypes.trace.json -+++ new.node10Alternateresult_noTypes.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/pkg/package.json'. - ======== Resolving module 'pkg' from '/index.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. --File '/node_modules/pkg.ts' does not exist. --File '/node_modules/pkg.tsx' does not exist. --File '/node_modules/pkg.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field './untyped.js' that references '/node_modules/pkg/untyped.js'. --File name '/node_modules/pkg/untyped.js' has a '.js' extension - stripping it. --File '/node_modules/pkg/untyped.ts' does not exist. --File '/node_modules/pkg/untyped.tsx' does not exist. --File '/node_modules/pkg/untyped.d.ts' does not exist. --Loading module as file / folder, candidate module location '/node_modules/pkg/untyped.js', target file types: TypeScript, Declaration. --File name '/node_modules/pkg/untyped.js' has a '.js' extension - stripping it. --File '/node_modules/pkg/untyped.ts' does not exist. --File '/node_modules/pkg/untyped.tsx' does not exist. --File '/node_modules/pkg/untyped.d.ts' does not exist. --File '/node_modules/pkg/untyped.js.ts' does not exist. --File '/node_modules/pkg/untyped.js.tsx' does not exist. --File '/node_modules/pkg/untyped.js.d.ts' does not exist. --Directory '/node_modules/pkg/untyped.js' does not exist, skipping all lookups in it. --File '/node_modules/pkg/index.ts' does not exist. --File '/node_modules/pkg/index.tsx' does not exist. --File '/node_modules/pkg/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'pkg' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. --File '/node_modules/pkg.js' does not exist. --File '/node_modules/pkg.jsx' does not exist. --'package.json' has 'main' field './untyped.js' that references '/node_modules/pkg/untyped.js'. --File name '/node_modules/pkg/untyped.js' has a '.js' extension - stripping it. --File '/node_modules/pkg/untyped.js' exists - use it as a name resolution result. --'package.json' does not have a 'peerDependencies' field. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Found 'package.json' at '/node_modules/pkg/package.json'. - Using 'exports' subpath '.' with target './definitely-not-index.js'. - File name '/node_modules/pkg/definitely-not-index.js' has a '.js' extension - stripping it. - File '/node_modules/pkg/definitely-not-index.ts' does not exist. - File '/node_modules/pkg/definitely-not-index.tsx' does not exist. - File '/node_modules/pkg/definitely-not-index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/pkg/untyped.js', result '/node_modules/pkg/untyped.js'. --======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/untyped.js' with Package ID 'pkg/untyped.js@1.0.0'. ======== -+'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/node_modules/pkg/definitely-not-index.d.ts', result '/node_modules/pkg/definitely-not-index.d.ts'. -+======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/definitely-not-index.d.ts' with Package ID 'pkg@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff deleted file mode 100644 index 26b5a8c919..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node.trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.node10IsNode_node.trace.json -+++ new.node10IsNode_node.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/fancy-lib/package.json'. --File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. - ======== Resolving module 'fancy-lib' from '/main.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. --File '/node_modules/fancy-lib.ts' does not exist. --File '/node_modules/fancy-lib.tsx' does not exist. --File '/node_modules/fancy-lib.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'index.js' that references '/node_modules/fancy-lib/index.js'. --File name '/node_modules/fancy-lib/index.js' has a '.js' extension - stripping it. --File '/node_modules/fancy-lib/index.ts' does not exist. --File '/node_modules/fancy-lib/index.tsx' does not exist. --File '/node_modules/fancy-lib/index.d.ts' exists - use it as a name resolution result. -+Found 'package.json' at '/node_modules/fancy-lib/package.json'. -+Using 'exports' subpath '.' with target './definitely-not-index.js'. -+File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. -+File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. -+File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. -+File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'. --======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ======== -+Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. -+======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff b/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff deleted file mode 100644 index 58618dd517..0000000000 --- a/testdata/baselines/reference/submodule/conformance/node10IsNode_node10.trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.node10IsNode_node10.trace.json -+++ new.node10IsNode_node10.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/fancy-lib/package.json'. --File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. - ======== Resolving module 'fancy-lib' from '/main.ts'. ======== --Explicitly specified module resolution kind: 'Node10'. --Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/fancy-lib/package.json' exists according to earlier cached lookups. --File '/node_modules/fancy-lib.ts' does not exist. --File '/node_modules/fancy-lib.tsx' does not exist. --File '/node_modules/fancy-lib.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'index.js' that references '/node_modules/fancy-lib/index.js'. --File name '/node_modules/fancy-lib/index.js' has a '.js' extension - stripping it. --File '/node_modules/fancy-lib/index.ts' does not exist. --File '/node_modules/fancy-lib/index.tsx' does not exist. --File '/node_modules/fancy-lib/index.d.ts' exists - use it as a name resolution result. -+Found 'package.json' at '/node_modules/fancy-lib/package.json'. -+Using 'exports' subpath '.' with target './definitely-not-index.js'. -+File name '/node_modules/fancy-lib/definitely-not-index.js' has a '.js' extension - stripping it. -+File '/node_modules/fancy-lib/definitely-not-index.ts' does not exist. -+File '/node_modules/fancy-lib/definitely-not-index.tsx' does not exist. -+File '/node_modules/fancy-lib/definitely-not-index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolving real path for '/node_modules/fancy-lib/index.d.ts', result '/node_modules/fancy-lib/index.d.ts'. --======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/index.d.ts' with Package ID 'fancy-lib/index.d.ts@1.0.0'. ======== -+Resolving real path for '/node_modules/fancy-lib/definitely-not-index.d.ts', result '/node_modules/fancy-lib/definitely-not-index.d.ts'. -+======== Module name 'fancy-lib' was successfully resolved to '/node_modules/fancy-lib/definitely-not-index.d.ts' with Package ID 'fancy-lib@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff deleted file mode 100644 index 02580b9520..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json.diff +++ /dev/null @@ -1,182 +0,0 @@ ---- old.nodeModulesAtTypesPriority.trace.json -+++ new.nodeModulesAtTypesPriority.trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/@types/react/package.json' does not exist. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --File '/node_modules/@types/redux/package.json' does not exist. --File '/node_modules/@types/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/packages/a/node_modules/redux/package.json' does not exist. --File '/packages/a/node_modules/package.json' does not exist. --File '/packages/a/package.json' does not exist. --File '/packages/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/packages/a/package.json' does not exist according to earlier cached lookups. --File '/packages/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. - ======== Resolving module 'react' from '/packages/a/index.ts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -30, +14 lines =@@ - File '/packages/a/node_modules/react/index.d.ts' does not exist. - Directory '/packages/a/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/packages/node_modules' does not exist, skipping all lookups in it. -+Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. - File '/node_modules/react.ts' does not exist. - File '/node_modules/react.tsx' does not exist. - File '/node_modules/react.d.ts' does not exist. -@@= skipped -16, +17 lines =@@ - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'redux' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/packages/a/node_modules/redux/package.json' does not exist according to earlier cached lookups. -+File '/packages/a/node_modules/redux/package.json' does not exist. - File '/packages/a/node_modules/redux.ts' does not exist. - File '/packages/a/node_modules/redux.tsx' does not exist. - File '/packages/a/node_modules/redux.d.ts' does not exist. -@@= skipped -12, +12 lines =@@ - ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. --File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@types/react/package.json' does not exist. - File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'. - ======== Type reference directive 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts', primary: true. ======== - ======== Resolving type reference directive 'redux', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. --File '/node_modules/@types/redux/package.json' does not exist according to earlier cached lookups. -+File '/node_modules/@types/redux/package.json' does not exist. - File '/node_modules/@types/redux/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/redux/index.d.ts', result '/node_modules/@types/redux/index.d.ts'. - ======== Type reference directive 'redux' was successfully resolved to '/node_modules/@types/redux/index.d.ts', primary: true. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff deleted file mode 100644 index 46eec0565b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json.diff +++ /dev/null @@ -1,263 +0,0 @@ ---- old.nodeModulesExportsBlocksTypesVersions(module=node16).trace.json -+++ new.nodeModulesExportsBlocksTypesVersions(module=node16).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/exports-and-types-versions/types/package.json' does not exist. --Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. --File '/node_modules/just-types-versions/types/package.json' does not exist. --Found 'package.json' at '/node_modules/just-types-versions/package.json'. - ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. -@@= skipped -22, +18 lines =@@ - File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. --======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -25, +25 lines =@@ - Matched 'exports' condition 'types'. - Using 'exports' subpath './yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -15, +16 lines =@@ - Matched 'exports' condition 'types@>=4'. - Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types@>=4'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -30, +31 lines =@@ - Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -@@= skipped -10, +9 lines =@@ - ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. --File '/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. - Using 'exports' subpath './foo' with target './dist/foo.js'. - File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. - File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. -@@= skipped -16, +16 lines =@@ - Using 'exports' subpath './foo' with target './dist/foo.js'. - File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. - File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. - 'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. --======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== -+Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. -+======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -36, +38 lines =@@ - Matched 'exports' condition 'types'. - Using 'exports' subpath './yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -15, +16 lines =@@ - Matched 'exports' condition 'types@>=4'. - Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types@>=4'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -29, +30 lines =@@ - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+Found 'package.json' at '/node_modules/just-types-versions/package.json'. -+'package.json' has a 'typesVersions' field with version-specific path mappings. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. - ======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff deleted file mode 100644 index cf421f0601..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json.diff +++ /dev/null @@ -1,263 +0,0 @@ ---- old.nodeModulesExportsBlocksTypesVersions(module=node18).trace.json -+++ new.nodeModulesExportsBlocksTypesVersions(module=node18).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/exports-and-types-versions/types/package.json' does not exist. --Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. --File '/node_modules/just-types-versions/types/package.json' does not exist. --Found 'package.json' at '/node_modules/just-types-versions/package.json'. - ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. -@@= skipped -22, +18 lines =@@ - File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. --======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -25, +25 lines =@@ - Matched 'exports' condition 'types'. - Using 'exports' subpath './yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -15, +16 lines =@@ - Matched 'exports' condition 'types@>=4'. - Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types@>=4'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -30, +31 lines =@@ - Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -@@= skipped -10, +9 lines =@@ - ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. --File '/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. - Using 'exports' subpath './foo' with target './dist/foo.js'. - File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. - File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. -@@= skipped -16, +16 lines =@@ - Using 'exports' subpath './foo' with target './dist/foo.js'. - File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. - File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. - 'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. --======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== -+Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. -+======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -36, +38 lines =@@ - Matched 'exports' condition 'types'. - Using 'exports' subpath './yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -15, +16 lines =@@ - Matched 'exports' condition 'types@>=4'. - Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types@>=4'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -29, +30 lines =@@ - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+Found 'package.json' at '/node_modules/just-types-versions/package.json'. -+'package.json' has a 'typesVersions' field with version-specific path mappings. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. - ======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff deleted file mode 100644 index e0b491e0ad..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json.diff +++ /dev/null @@ -1,305 +0,0 @@ ---- old.nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json -+++ new.nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/exports-and-types-versions/types/package.json' does not exist. --Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. --File '/node_modules/just-types-versions/types/package.json' does not exist. --Found 'package.json' at '/node_modules/just-types-versions/package.json'. - ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/package.json' does not exist. -+File '/package.json' does not exist according to earlier cached lookups. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. -@@= skipped -22, +18 lines =@@ - File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. --======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/nope' from '/main.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -25, +25 lines =@@ - Matched 'exports' condition 'types'. - Using 'exports' subpath './yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -15, +16 lines =@@ - Matched 'exports' condition 'types@>=4'. - Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types@>=4'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. -@@= skipped -30, +31 lines =@@ - Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -@@= skipped -10, +9 lines =@@ - ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. --File '/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. - Using 'exports' subpath './foo' with target './dist/foo.js'. - File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. - File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. -@@= skipped -16, +16 lines =@@ - Using 'exports' subpath './foo' with target './dist/foo.js'. - File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. - File '/node_modules/exports-and-types-versions/dist/foo.js' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. - 'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/exports-and-types-versions/dist/foo.js', result '/node_modules/exports-and-types-versions/dist/foo.js'. --======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions/dist/foo.js@1.0.0'. ======== -+Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. -+======== Module name 'exports-and-types-versions/foo' was successfully resolved to '/node_modules/exports-and-types-versions/dist/foo.js' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/nope' from '/main.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -36, +38 lines =@@ - Matched 'exports' condition 'types'. - Using 'exports' subpath './yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-yep' from '/main.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -15, +16 lines =@@ - Matched 'exports' condition 'types@>=4'. - Using 'exports' subpath './versioned-yep' with target './types/foo.d.ts'. - File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'types@>=4'. - Exiting conditional exports. - Resolving real path for '/node_modules/exports-and-types-versions/types/foo.d.ts', result '/node_modules/exports-and-types-versions/types/foo.d.ts'. --======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions/types/foo.d.ts@1.0.0'. ======== -+======== Module name 'exports-and-types-versions/versioned-yep' was successfully resolved to '/node_modules/exports-and-types-versions/types/foo.d.ts' with Package ID 'exports-and-types-versions@1.0.0'. ======== - ======== Resolving module 'exports-and-types-versions/versioned-nah' from '/main.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -29, +30 lines =@@ - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '*' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'foo'. -+Found 'package.json' at '/node_modules/just-types-versions/package.json'. -+'package.json' has a 'typesVersions' field with version-specific path mappings. -+'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. - Module name 'foo', matched pattern 'foo'. - Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. - File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', result '/node_modules/just-types-versions/types/foo.d.ts'. - ======== Module name 'just-types-versions/foo' was successfully resolved to '/node_modules/just-types-versions/types/foo.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff deleted file mode 100644 index 0d3d09bd33..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json.diff +++ /dev/null @@ -1,172 +0,0 @@ ---- old.nodeModulesPackageImports(module=node16).trace.json -+++ new.nodeModulesPackageImports(module=node16).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module '#cjs' from '/.src/index.ts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -25, +24 lines =@@ - ======== Resolving module '#cjs' from '/.src/index.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/package.json'. - Using 'imports' subpath '#cjs' with target './index.cjs'. - File name '/.src/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/index.cts' exists - use it as a name resolution result. -@@= skipped -22, +22 lines =@@ - File '/.src/index.ts' exists - use it as a name resolution result. - ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== - ======== Resolving module '#cjs' from '/.src/index.mts'. ======== --Resolution for module '#cjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#cjs' with target './index.cjs'. -+File name '/.src/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/index.cts' exists - use it as a name resolution result. - ======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== - ======== Resolving module '#mjs' from '/.src/index.mts'. ======== --Resolution for module '#mjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#mjs' with target './index.mjs'. -+File name '/.src/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/index.mts' exists - use it as a name resolution result. - ======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== - ======== Resolving module '#type' from '/.src/index.mts'. ======== --Resolution for module '#type' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#type' with target './index.js'. -+File name '/.src/index.js' has a '.js' extension - stripping it. -+File '/.src/index.ts' exists - use it as a name resolution result. - ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff deleted file mode 100644 index 93a47ae635..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json.diff +++ /dev/null @@ -1,172 +0,0 @@ ---- old.nodeModulesPackageImports(module=node18).trace.json -+++ new.nodeModulesPackageImports(module=node18).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module '#cjs' from '/.src/index.ts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -25, +24 lines =@@ - ======== Resolving module '#cjs' from '/.src/index.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/package.json'. - Using 'imports' subpath '#cjs' with target './index.cjs'. - File name '/.src/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/index.cts' exists - use it as a name resolution result. -@@= skipped -22, +22 lines =@@ - File '/.src/index.ts' exists - use it as a name resolution result. - ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== - ======== Resolving module '#cjs' from '/.src/index.mts'. ======== --Resolution for module '#cjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#cjs' with target './index.cjs'. -+File name '/.src/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/index.cts' exists - use it as a name resolution result. - ======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== - ======== Resolving module '#mjs' from '/.src/index.mts'. ======== --Resolution for module '#mjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#mjs' with target './index.mjs'. -+File name '/.src/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/index.mts' exists - use it as a name resolution result. - ======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== - ======== Resolving module '#type' from '/.src/index.mts'. ======== --Resolution for module '#type' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#type' with target './index.js'. -+File name '/.src/index.js' has a '.js' extension - stripping it. -+File '/.src/index.ts' exists - use it as a name resolution result. - ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff deleted file mode 100644 index fa3650f416..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json.diff +++ /dev/null @@ -1,214 +0,0 @@ ---- old.nodeModulesPackageImports(module=nodenext).trace.json -+++ new.nodeModulesPackageImports(module=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module '#cjs' from '/.src/index.ts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -25, +24 lines =@@ - ======== Resolving module '#cjs' from '/.src/index.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/package.json'. - Using 'imports' subpath '#cjs' with target './index.cjs'. - File name '/.src/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/index.cts' exists - use it as a name resolution result. -@@= skipped -22, +22 lines =@@ - File '/.src/index.ts' exists - use it as a name resolution result. - ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== - ======== Resolving module '#cjs' from '/.src/index.mts'. ======== --Resolution for module '#cjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#cjs' with target './index.cjs'. -+File name '/.src/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/index.cts' exists - use it as a name resolution result. - ======== Module name '#cjs' was successfully resolved to '/.src/index.cts'. ======== - ======== Resolving module '#mjs' from '/.src/index.mts'. ======== --Resolution for module '#mjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#mjs' with target './index.mjs'. -+File name '/.src/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/index.mts' exists - use it as a name resolution result. - ======== Module name '#mjs' was successfully resolved to '/.src/index.mts'. ======== - ======== Resolving module '#type' from '/.src/index.mts'. ======== --Resolution for module '#type' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Using 'imports' subpath '#type' with target './index.js'. -+File name '/.src/index.js' has a '.js' extension - stripping it. -+File '/.src/index.ts' exists - use it as a name resolution result. - ======== Module name '#type' was successfully resolved to '/.src/index.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff deleted file mode 100644 index 4872206544..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json.diff +++ /dev/null @@ -1,310 +0,0 @@ ---- old.nodeModulesPackagePatternExportsTrailers(module=node16).trace.json -+++ new.nodeModulesPackagePatternExportsTrailers(module=node16).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/.src/package.json' exists according to earlier cached lookups. - Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Found 'package.json' at '/.src/node_modules/inner/package.json'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. - Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. -@@= skipped -41, +40 lines =@@ - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/node_modules/inner/package.json'. - Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. - File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -14, +15 lines =@@ - File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. - File '/.src/node_modules/inner/index.mts' does not exist. - File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -10, +11 lines =@@ - File '/.src/node_modules/inner/index.ts' does not exist. - File '/.src/node_modules/inner/index.tsx' does not exist. - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -9, +10 lines =@@ - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. - File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -9, +10 lines =@@ - File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. - File '/.src/node_modules/inner/index.mts' does not exist. - File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -10, +11 lines =@@ - File '/.src/node_modules/inner/index.ts' does not exist. - File '/.src/node_modules/inner/index.tsx' does not exist. - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. -+File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/node_modules/inner/index.cts' does not exist. -+File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. -+File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/node_modules/inner/index.mts' does not exist. -+File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './js/*.js' with target './index.js'. -+File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -+File '/.src/node_modules/inner/index.ts' does not exist. -+File '/.src/node_modules/inner/index.tsx' does not exist. -+File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. -+File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/node_modules/inner/index.cts' does not exist. -+File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. -+File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/node_modules/inner/index.mts' does not exist. -+File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './js/*.js' with target './index.js'. -+File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -+File '/.src/node_modules/inner/index.ts' does not exist. -+File '/.src/node_modules/inner/index.tsx' does not exist. -+File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/package.json'. - Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -@@= skipped -60, +113 lines =@@ - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff deleted file mode 100644 index 487973a1b5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json.diff +++ /dev/null @@ -1,310 +0,0 @@ ---- old.nodeModulesPackagePatternExportsTrailers(module=node18).trace.json -+++ new.nodeModulesPackagePatternExportsTrailers(module=node18).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/.src/package.json' exists according to earlier cached lookups. - Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Found 'package.json' at '/.src/node_modules/inner/package.json'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. - Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. -@@= skipped -41, +40 lines =@@ - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/node_modules/inner/package.json'. - Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. - File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -14, +15 lines =@@ - File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. - File '/.src/node_modules/inner/index.mts' does not exist. - File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -10, +11 lines =@@ - File '/.src/node_modules/inner/index.ts' does not exist. - File '/.src/node_modules/inner/index.tsx' does not exist. - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -9, +10 lines =@@ - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. - File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -9, +10 lines =@@ - File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. - File '/.src/node_modules/inner/index.mts' does not exist. - File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'Node16'. -@@= skipped -10, +11 lines =@@ - File '/.src/node_modules/inner/index.ts' does not exist. - File '/.src/node_modules/inner/index.tsx' does not exist. - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. -+File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/node_modules/inner/index.cts' does not exist. -+File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. -+File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/node_modules/inner/index.mts' does not exist. -+File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './js/*.js' with target './index.js'. -+File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -+File '/.src/node_modules/inner/index.ts' does not exist. -+File '/.src/node_modules/inner/index.tsx' does not exist. -+File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. -+File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/node_modules/inner/index.cts' does not exist. -+File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. -+File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/node_modules/inner/index.mts' does not exist. -+File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'Node16'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './js/*.js' with target './index.js'. -+File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -+File '/.src/node_modules/inner/index.ts' does not exist. -+File '/.src/node_modules/inner/index.tsx' does not exist. -+File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== - Module resolution kind is not specified, using 'Node16'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/package.json'. - Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -@@= skipped -60, +113 lines =@@ - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff deleted file mode 100644 index e5972ea8af..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json.diff +++ /dev/null @@ -1,352 +0,0 @@ ---- old.nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json -+++ new.nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/.src/package.json'. - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/.src/package.json' exists according to earlier cached lookups. - Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --Found 'package.json' at '/.src/node_modules/inner/package.json'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. - Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. -@@= skipped -41, +40 lines =@@ - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/node_modules/inner/package.json'. - Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. - File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. -@@= skipped -14, +15 lines =@@ - File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. - File '/.src/node_modules/inner/index.mts' does not exist. - File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. -@@= skipped -10, +11 lines =@@ - File '/.src/node_modules/inner/index.ts' does not exist. - File '/.src/node_modules/inner/index.tsx' does not exist. - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. -@@= skipped -9, +10 lines =@@ - File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. - File '/.src/node_modules/inner/index.cts' does not exist. - File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. -@@= skipped -9, +10 lines =@@ - File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. - File '/.src/node_modules/inner/index.mts' does not exist. - File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== - Module resolution kind is not specified, using 'NodeNext'. -@@= skipped -10, +11 lines =@@ - File '/.src/node_modules/inner/index.ts' does not exist. - File '/.src/node_modules/inner/index.tsx' does not exist. - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. -+File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/node_modules/inner/index.cts' does not exist. -+File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. -+File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/node_modules/inner/index.mts' does not exist. -+File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in CJS mode with conditions 'require', 'types', 'node'. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './js/*.js' with target './index.js'. -+File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -+File '/.src/node_modules/inner/index.ts' does not exist. -+File '/.src/node_modules/inner/index.tsx' does not exist. -+File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.mts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. -+File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -+File '/.src/node_modules/inner/index.cts' does not exist. -+File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. - ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== - ======== Resolving module 'inner/mjs/index.mjs' from '/.src/index.mts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. -+File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -+File '/.src/node_modules/inner/index.mts' does not exist. -+File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. - ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== - ======== Resolving module 'inner/js/index.js' from '/.src/index.mts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src'. -+Module resolution kind is not specified, using 'NodeNext'. -+Resolving in ESM mode with conditions 'import', 'types', 'node'. -+File '/.src/package.json' exists according to earlier cached lookups. -+Loading module 'inner/js/index.js' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -+Using 'exports' subpath './js/*.js' with target './index.js'. -+File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -+File '/.src/node_modules/inner/index.ts' does not exist. -+File '/.src/node_modules/inner/index.tsx' does not exist. -+File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== - ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== - Module resolution kind is not specified, using 'NodeNext'. - Resolving in CJS mode with conditions 'require', 'types', 'node'. --File '/.src/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/.src/package.json'. - Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. -@@= skipped -60, +113 lines =@@ - File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. - ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.ts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.cts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/cjs/index.cjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== --======== Resolving module 'inner/mjs/index.mjs' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/mjs/index.mjs' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== --======== Resolving module 'inner/js/index.js' from '/.src/node_modules/inner/index.d.mts'. ======== --Resolution for module 'inner/js/index.js' was found in cache from location '/.src/node_modules/inner'. --======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff deleted file mode 100644 index e13d8d0270..0000000000 --- a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json.diff +++ /dev/null @@ -1,149 +0,0 @@ ---- old.packageJsonMain.trace.json -+++ new.packageJsonMain.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/foo/package.json'. - File '/node_modules/foo.ts' does not exist. -@@= skipped -18, +20 lines =@@ - File '/node_modules/foo/index.tsx' does not exist. - File '/node_modules/foo/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/foo/package.json' exists according to earlier cached lookups. - File '/node_modules/foo.js' does not exist. - File '/node_modules/foo.jsx' does not exist. - 'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. --Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript. -+Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. - File '/node_modules/foo/oof.js' exists - use it as a name resolution result. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. --File '/node_modules/foo.ts' does not exist. --File '/node_modules/foo.tsx' does not exist. --File '/node_modules/foo.d.ts' does not exist. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. --Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: TypeScript, Declaration. --File '/node_modules/foo/oof.ts' does not exist. --File '/node_modules/foo/oof.tsx' does not exist. --File '/node_modules/foo/oof.d.ts' does not exist. --Directory '/node_modules/foo/oof' does not exist, skipping all lookups in it. --File '/node_modules/foo/index.ts' does not exist. --File '/node_modules/foo/index.tsx' does not exist. --File '/node_modules/foo/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Resolving real path for '/node_modules/foo/oof.js', result '/node_modules/foo/oof.js'. - ======== Module name 'foo' was successfully resolved to '/node_modules/foo/oof.js'. ======== - ======== Resolving module 'bar' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/bar/package.json'. - File '/node_modules/bar.ts' does not exist. -@@= skipped -58, +40 lines =@@ - File '/node_modules/bar/index.tsx' does not exist. - File '/node_modules/bar/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/bar/package.json' exists according to earlier cached lookups. - File '/node_modules/bar.js' does not exist. - File '/node_modules/bar.jsx' does not exist. - 'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. - File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. - File '/node_modules/bar/rab.js' exists - use it as a name resolution result. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/bar/package.json' exists according to earlier cached lookups. --File '/node_modules/bar.ts' does not exist. --File '/node_modules/bar.tsx' does not exist. --File '/node_modules/bar.d.ts' does not exist. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. --File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. --File '/node_modules/bar/rab.ts' does not exist. --File '/node_modules/bar/rab.tsx' does not exist. --File '/node_modules/bar/rab.d.ts' does not exist. --Loading module as file / folder, candidate module location '/node_modules/bar/rab.js', target file types: TypeScript, Declaration. --File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. --File '/node_modules/bar/rab.ts' does not exist. --File '/node_modules/bar/rab.tsx' does not exist. --File '/node_modules/bar/rab.d.ts' does not exist. --File '/node_modules/bar/rab.js.ts' does not exist. --File '/node_modules/bar/rab.js.tsx' does not exist. --File '/node_modules/bar/rab.js.d.ts' does not exist. --Directory '/node_modules/bar/rab.js' does not exist, skipping all lookups in it. --File '/node_modules/bar/index.ts' does not exist. --File '/node_modules/bar/index.tsx' does not exist. --File '/node_modules/bar/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Resolving real path for '/node_modules/bar/rab.js', result '/node_modules/bar/rab.js'. - ======== Module name 'bar' was successfully resolved to '/node_modules/bar/rab.js'. ======== - ======== Resolving module 'baz' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/baz/package.json'. - File '/node_modules/baz.ts' does not exist. -@@= skipped -60, +34 lines =@@ - File '/node_modules/baz/index.tsx' does not exist. - File '/node_modules/baz/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'baz' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/baz/package.json' exists according to earlier cached lookups. - File '/node_modules/baz.js' does not exist. - File '/node_modules/baz.jsx' does not exist. - 'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. --Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript. -+Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript, JSON. - File '/node_modules/baz/zab.js' does not exist. - File '/node_modules/baz/zab.jsx' does not exist. - File '/node_modules/baz/zab/index.js' exists - use it as a name resolution result. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/baz/package.json' exists according to earlier cached lookups. --File '/node_modules/baz.ts' does not exist. --File '/node_modules/baz.tsx' does not exist. --File '/node_modules/baz.d.ts' does not exist. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. --Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: TypeScript, Declaration. --File '/node_modules/baz/zab.ts' does not exist. --File '/node_modules/baz/zab.tsx' does not exist. --File '/node_modules/baz/zab.d.ts' does not exist. --File '/node_modules/baz/zab/index.ts' does not exist. --File '/node_modules/baz/zab/index.tsx' does not exist. --File '/node_modules/baz/zab/index.d.ts' does not exist. --File '/node_modules/baz/index.ts' does not exist. --File '/node_modules/baz/index.tsx' does not exist. --File '/node_modules/baz/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Resolving real path for '/node_modules/baz/zab/index.js', result '/node_modules/baz/zab/index.js'. - ======== Module name 'baz' was successfully resolved to '/node_modules/baz/zab/index.js'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff deleted file mode 100644 index 87e26d59f5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json.diff +++ /dev/null @@ -1,54 +0,0 @@ ---- old.packageJsonMain_isNonRecursive.trace.json -+++ new.packageJsonMain_isNonRecursive.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'foo' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/node_modules/foo/package.json'. - File '/node_modules/foo.ts' does not exist. -@@= skipped -20, +22 lines =@@ - File '/node_modules/foo/index.tsx' does not exist. - File '/node_modules/foo/index.d.ts' does not exist. - Directory '/node_modules/@types' does not exist, skipping all lookups in it. --Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/node_modules/foo/package.json' exists according to earlier cached lookups. - File '/node_modules/foo.js' does not exist. - File '/node_modules/foo.jsx' does not exist. - 'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. --Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript. -+Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. - File '/node_modules/foo/oof.js' does not exist. - File '/node_modules/foo/oof.jsx' does not exist. - File '/node_modules/foo/oof/index.js' does not exist. - File '/node_modules/foo/oof/index.jsx' does not exist. - File '/node_modules/foo/index.js' does not exist. - File '/node_modules/foo/index.jsx' does not exist. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. --File '/node_modules/foo.ts' does not exist. --File '/node_modules/foo.tsx' does not exist. --File '/node_modules/foo.d.ts' does not exist. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. --Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: TypeScript, Declaration. --File '/node_modules/foo/oof.ts' does not exist. --File '/node_modules/foo/oof.tsx' does not exist. --File '/node_modules/foo/oof.d.ts' does not exist. --File '/node_modules/foo/oof/index.ts' does not exist. --File '/node_modules/foo/oof/index.tsx' does not exist. --File '/node_modules/foo/oof/index.d.ts' does not exist. --File '/node_modules/foo/index.ts' does not exist. --File '/node_modules/foo/index.tsx' does not exist. --File '/node_modules/foo/index.d.ts' does not exist. --Directory '/node_modules/@types' does not exist, skipping all lookups in it. - ======== Module name 'foo' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff b/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff deleted file mode 100644 index 95fa7d2d14..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolutionModeCache.trace.json.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.resolutionModeCache.trace.json -+++ new.resolutionModeCache.trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/pkg/package.json'. - ======== Resolving module 'pkg' from '/index.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'require', 'types'. - File '/package.json' does not exist. - Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/pkg/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/pkg/package.json'. - Entering conditional exports. - Saw non-matching condition 'import'. - Matched 'exports' condition 'require'. -@@= skipped -17, +16 lines =@@ - Resolved under condition 'require'. - Exiting conditional exports. - Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'. --======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts' with Package ID 'pkg/index.d.ts@1.0.0'. ======== -+======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts' with Package ID 'pkg@1.0.0'. ======== - ======== Resolving module 'pkg' from '/index.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -14, +14 lines =@@ - File name '/node_modules/pkg/index.mjs' has a '.mjs' extension - stripping it. - File '/node_modules/pkg/index.mts' does not exist. - File '/node_modules/pkg/index.d.mts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'import'. - Exiting conditional exports. - Resolving real path for '/node_modules/pkg/index.d.mts', result '/node_modules/pkg/index.d.mts'. --======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.mts' with Package ID 'pkg/index.d.mts@1.0.0'. ======== -+======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.mts' with Package ID 'pkg@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff deleted file mode 100644 index de7e01f5c9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json.diff +++ /dev/null @@ -1,69 +0,0 @@ ---- old.resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json -+++ new.resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/foo/package.json'. --Found 'package.json' at '/node_modules/@types/bar/package.json'. - ======== Resolving module 'foo' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/foo/package.json'. - Entering conditional exports. - Matched 'exports' condition 'import'. - Using 'exports' subpath '.' with target './index.mjs'. -@@= skipped -26, +24 lines =@@ - 'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'import'. - Exiting conditional exports. -+Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -@@= skipped -12, +13 lines =@@ - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'. - File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. --======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -+'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. -+======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo@1.0.0'. ======== - ======== Resolving module 'bar' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -32, +33 lines =@@ - 'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'import'. - Exiting conditional exports. -+Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -@@= skipped -30, +31 lines =@@ - File '/node_modules/bar/index.d.ts' does not exist. - File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. - File '/node_modules/@types/bar.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. - File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. --======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -+Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. -+======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar@1.0.0'. ======== - ======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. --File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@types/bar/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. - File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. --======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ======== -+======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff deleted file mode 100644 index 7ed2db9c19..0000000000 --- a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json.diff +++ /dev/null @@ -1,83 +0,0 @@ ---- old.resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json -+++ new.resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json -@@= skipped -0, +0 lines =@@ --Found 'package.json' at '/node_modules/foo/package.json'. --Found 'package.json' at '/node_modules/@types/bar/package.json'. - ======== Resolving module 'foo' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. - File '/package.json' does not exist. - Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/foo/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/foo/package.json'. - Entering conditional exports. - Matched 'exports' condition 'import'. - Using 'exports' subpath '.' with target './index.mjs'. -@@= skipped -25, +23 lines =@@ - 'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'import'. - Exiting conditional exports. -+Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. -@@= skipped -9, +10 lines =@@ - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'. - File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/foo/index.mjs', result '/node_modules/foo/index.mjs'. --======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo/index.mjs@1.0.0'. ======== -+'package.json' does not have a 'peerDependencies' field. -+Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'. -+======== Module name 'foo' was successfully resolved to '/node_modules/foo/index.mjs' with Package ID 'foo@1.0.0'. ======== - ======== Resolving module 'bar' from '/index.mts'. ======== - Explicitly specified module resolution kind: 'Node16'. - Resolving in ESM mode with conditions 'import', 'types', 'node'. -@@= skipped -32, +33 lines =@@ - 'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'import'. - Exiting conditional exports. -+Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. - Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update. - File '/package.json' does not exist according to earlier cached lookups. - Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. -@@= skipped -23, +24 lines =@@ - File '/node_modules/bar/index.js.d.ts' does not exist. - Directory '/node_modules/bar/index.js' does not exist, skipping all lookups in it. - File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. --'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. - File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. --Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'. --======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ======== -+Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. -+======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar@1.0.0'. ======== - ======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== - Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. --File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@types/bar/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. - File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'. --======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ======== --File '/.ts/package.json' does not exist. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/.ts/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups." -+======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff b/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff deleted file mode 100644 index 68cb87d51a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/scopedPackages.trace.json.diff +++ /dev/null @@ -1,64 +0,0 @@ ---- old.scopedPackages.trace.json -+++ new.scopedPackages.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@cow/boy' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/@cow/boy/package.json' does not exist. - File '/node_modules/@cow/boy.ts' does not exist. -@@= skipped -11, +13 lines =@@ - Resolving real path for '/node_modules/@cow/boy/index.d.ts', result '/node_modules/@cow/boy/index.d.ts'. - ======== Module name '@cow/boy' was successfully resolved to '/node_modules/@cow/boy/index.d.ts'. ======== - ======== Resolving module '@be/bop' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Scoped package detected, looking in 'be__bop' --File '/node_modules/@types/be__bop/package.json' does not exist. -+File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. - File '/node_modules/@types/be__bop.d.ts' does not exist. - File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'. - ======== Module name '@be/bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts'. ======== - ======== Resolving module '@be/bop/e/z' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module '@be/bop/e/z' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@be/bop/e/z' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Scoped package detected, looking in 'be__bop/e/z' - File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. - File '/node_modules/@types/be__bop/e/z.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/be__bop/e/z.d.ts', result '/node_modules/@types/be__bop/e/z.d.ts'. - ======== Module name '@be/bop/e/z' was successfully resolved to '/node_modules/@types/be__bop/e/z.d.ts'. ======== --File '/node_modules/@cow/boy/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@cow/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/be__bop/e/package.json' does not exist. --File '/node_modules/@types/be__bop/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist according to earlier cached lookups. --File '/node_modules/package.json' does not exist according to earlier cached lookups. --File '/package.json' does not exist according to earlier cached lookups. -+======== Resolving type reference directive 'be__bop', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+File '/node_modules/@types/be__bop/package.json' does not exist. -+File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'. -+======== Type reference directive 'be__bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff b/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff deleted file mode 100644 index e5473085b3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/scopedPackagesClassic.trace.json.diff +++ /dev/null @@ -1,29 +0,0 @@ ---- old.scopedPackagesClassic.trace.json -+++ new.scopedPackagesClassic.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module '@see/saw' from '/a.ts'. ======== --Explicitly specified module resolution kind: 'Classic'. --Searching all ancestor node_modules directories for preferred extensions: Declaration. -+Explicitly specified module resolution kind: 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module '@see/saw' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Scoped package detected, looking in 'see__saw' --File '/node_modules/@types/see__saw/package.json' does not exist. -+File '/node_modules/@types/see__saw/package.json' does not exist according to earlier cached lookups. - File '/node_modules/@types/see__saw.d.ts' does not exist. - File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'. - ======== Module name '@see/saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts'. ======== --File '/node_modules/@types/see__saw/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. -+======== Resolving type reference directive 'see__saw', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== -+Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -+Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+File '/node_modules/@types/see__saw/package.json' does not exist. -+File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'. -+======== Type reference directive 'see__saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff deleted file mode 100644 index 0b8ad63fcd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- old.selfNameModuleAugmentation.trace.json -+++ new.selfNameModuleAugmentation.trace.json -@@= skipped -0, +0 lines =@@ --File '/node_modules/acorn-walk/dist/package.json' does not exist. --Found 'package.json' at '/node_modules/acorn-walk/package.json'. - ======== Resolving module 'acorn-walk' from '/node_modules/acorn-walk/dist/walk.d.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. -@@= skipped -21, +19 lines =@@ - 'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'default'. - Exiting conditional exports. --======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ======== -+Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'. -+======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk@8.2.0'. ======== - ======== Resolving module 'acorn-walk' from '/index.ts'. ======== - Explicitly specified module resolution kind: 'Bundler'. - Resolving in CJS mode with conditions 'import', 'types'. - File '/package.json' does not exist. - Loading module 'acorn-walk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/acorn-walk/package.json'. - Entering conditional exports. - Matched 'exports' condition 'import'. - Using 'exports' subpath '.' with target './dist/walk.mjs'. -@@= skipped -22, +23 lines =@@ - File '/node_modules/acorn-walk/dist/walk.ts' does not exist. - File '/node_modules/acorn-walk/dist/walk.tsx' does not exist. - File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolved under condition 'default'. - Exiting conditional exports. - Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'. --======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ======== -+======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk@8.2.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff deleted file mode 100644 index 050bbee24e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json.diff +++ /dev/null @@ -1,105 +0,0 @@ ---- old.typesVersions.ambientModules.trace.json -+++ new.typesVersions.ambientModules.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'ext' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/.src/node_modules/ext/package.json'. - File '/.src/node_modules/ext.ts' does not exist. -@@= skipped -8, +11 lines =@@ - 'package.json' has a 'typesVersions' field with version-specific path mappings. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -@@= skipped -9, +9 lines =@@ - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. --======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== -+======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. - File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. - File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. -+File '/.src/node_modules/ext/other.ts' does not exist. -+File '/.src/node_modules/ext/other.tsx' does not exist. -+File '/.src/node_modules/ext/other.d.ts' does not exist. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. -+Module name 'index', matched pattern '*'. -+Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. --Loading module 'ext/other' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.js' does not exist. - File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. --Module name 'index', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript. --Directory '/node_modules' does not exist, skipping all lookups in it. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. --Module name 'other', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. --File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. --File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. --File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. --Module name 'index', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. --Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. -+Module name 'index', matched pattern '*'. -+Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. -+File '/.src/node_modules/ext/other.js' does not exist. -+File '/.src/node_modules/ext/other.jsx' does not exist. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. -+Module name 'index', matched pattern '*'. -+Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'ext/other' was not resolved. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff deleted file mode 100644 index e2ba45b880..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.emptyTypes.trace.json.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.typesVersions.emptyTypes.trace.json -+++ new.typesVersions.emptyTypes.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'a' from '/b/user.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'. --Resolving module name 'a' relative to base url '/' - '/a'. --Loading module as file / folder, candidate module location '/a', target file types: TypeScript, Declaration. --File '/a.ts' does not exist. --File '/a.tsx' does not exist. --File '/a.d.ts' does not exist. --Found 'package.json' at '/a/package.json'. --'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' does not have a 'typings' field. --'package.json' had a falsy 'types' field. --'package.json' does not have a 'main' field. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. --Module name 'index', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/a/ts3.1/index', target file types: TypeScript, Declaration. --File '/a/ts3.1/index.ts' does not exist. --File '/a/ts3.1/index.tsx' does not exist. --File '/a/ts3.1/index.d.ts' exists - use it as a name resolution result. --======== Module name 'a' was successfully resolved to '/a/ts3.1/index.d.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/b/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff deleted file mode 100644 index df7a73923b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.justIndex.trace.json.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- old.typesVersions.justIndex.trace.json -+++ new.typesVersions.justIndex.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'a' from '/b/user.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --'baseUrl' option is set to '/', using this value to resolve non-relative module name 'a'. --Resolving module name 'a' relative to base url '/' - '/a'. --Loading module as file / folder, candidate module location '/a', target file types: TypeScript, Declaration. --File '/a.ts' does not exist. --File '/a.tsx' does not exist. --File '/a.d.ts' does not exist. --Found 'package.json' at '/a/package.json'. --'package.json' has a 'typesVersions' field with version-specific path mappings. --'package.json' does not have a 'typings' field. --'package.json' does not have a 'types' field. --'package.json' does not have a 'main' field. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. --Module name 'index', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/a/ts3.1/index', target file types: TypeScript, Declaration. --File '/a/ts3.1/index.ts' does not exist. --File '/a/ts3.1/index.tsx' does not exist. --File '/a/ts3.1/index.d.ts' exists - use it as a name resolution result. --======== Module name 'a' was successfully resolved to '/a/ts3.1/index.d.ts'. ======== -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/b/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'a' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. -+Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -+Directory '/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/b/node_modules/@types' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. -+Directory '/b/node_modules' does not exist, skipping all lookups in it. -+Directory '/node_modules' does not exist, skipping all lookups in it. -+======== Module name 'a' was not resolved. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff deleted file mode 100644 index 2d40166c4c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json.diff +++ /dev/null @@ -1,54 +0,0 @@ ---- old.typesVersions.multiFile.trace.json -+++ new.typesVersions.multiFile.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'ext' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/.src/node_modules/ext/package.json'. - File '/.src/node_modules/ext.ts' does not exist. -@@= skipped -8, +11 lines =@@ - 'package.json' has a 'typesVersions' field with version-specific path mappings. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -@@= skipped -9, +9 lines =@@ - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. --======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== -+======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. - File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. - File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. --======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff deleted file mode 100644 index bc116b7ae7..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json.diff +++ /dev/null @@ -1,105 +0,0 @@ ---- old.typesVersionsDeclarationEmit.ambient.trace.json -+++ new.typesVersionsDeclarationEmit.ambient.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'ext' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/.src/node_modules/ext/package.json'. - File '/.src/node_modules/ext.ts' does not exist. -@@= skipped -8, +11 lines =@@ - 'package.json' has a 'typesVersions' field with version-specific path mappings. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -@@= skipped -9, +9 lines =@@ - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. --======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== -+======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. - File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. - File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. -+File '/.src/node_modules/ext/other.ts' does not exist. -+File '/.src/node_modules/ext/other.tsx' does not exist. -+File '/.src/node_modules/ext/other.d.ts' does not exist. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. -+Module name 'index', matched pattern '*'. -+Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. - Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. - Directory '/node_modules' does not exist, skipping all lookups in it. --Loading module 'ext/other' from 'node_modules' folder, target file types: JavaScript. --Searching all ancestor node_modules directories for fallback extensions: JavaScript. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. -+Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.js' does not exist. - File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. --Module name 'index', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript. --Directory '/node_modules' does not exist, skipping all lookups in it. --Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. --Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. --Module name 'other', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. --File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. --File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. --File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. --Module name 'index', matched pattern '*'. --Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. --Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. -+Module name 'index', matched pattern '*'. -+Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. -+File '/.src/node_modules/ext/other.js' does not exist. -+File '/.src/node_modules/ext/other.jsx' does not exist. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. -+Module name 'index', matched pattern '*'. -+Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. - Directory '/node_modules' does not exist, skipping all lookups in it. - ======== Module name 'ext/other' was not resolved. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff deleted file mode 100644 index 59b4aa8402..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json.diff +++ /dev/null @@ -1,54 +0,0 @@ ---- old.typesVersionsDeclarationEmit.multiFile.trace.json -+++ new.typesVersionsDeclarationEmit.multiFile.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'ext' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/.src/node_modules/ext/package.json'. - File '/.src/node_modules/ext.ts' does not exist. -@@= skipped -8, +11 lines =@@ - 'package.json' has a 'typesVersions' field with version-specific path mappings. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -@@= skipped -9, +9 lines =@@ - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. --======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== -+======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. - File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. - File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. --======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff deleted file mode 100644 index 7d61d0158c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json.diff +++ /dev/null @@ -1,88 +0,0 @@ ---- old.typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json -+++ new.typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'ext' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/.src/node_modules/ext/package.json'. - File '/.src/node_modules/ext.ts' does not exist. -@@= skipped -8, +11 lines =@@ - 'package.json' has a 'typesVersions' field with version-specific path mappings. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -@@= skipped -9, +9 lines =@@ - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. --======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== -+======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - Module name 'other', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. - File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. - File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. - File '/.src/node_modules/ext/ts3.1/other.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/other.d.ts', result '/.src/node_modules/ext/ts3.1/other.d.ts'. --======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext/ts3.1/other.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/ts3.1/other.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module '../' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern '*'. - Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. - File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. --======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/s3.1/index.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist according to earlier cached lookups. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== - ======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/other.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/.src/node_modules/ext/other.ts' does not exist. - File '/.src/node_modules/ext/other.tsx' does not exist. - File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+'package.json' does not have a 'peerDependencies' field. -+======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff deleted file mode 100644 index 202897edd0..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json.diff +++ /dev/null @@ -1,64 +0,0 @@ ---- old.typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json -+++ new.typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'ext' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist. -+File '/package.json' does not exist. -+Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - Found 'package.json' at '/.src/node_modules/ext/package.json'. - File '/.src/node_modules/ext.ts' does not exist. -@@= skipped -8, +11 lines =@@ - 'package.json' has a 'typesVersions' field with version-specific path mappings. - 'package.json' does not have a 'typings' field. - 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. - Module name 'index', matched pattern 'index'. - Trying substitution 'ts3.1/index', candidate module location: 'ts3.1/index'. - Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. -@@= skipped -9, +9 lines =@@ - File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. - 'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/ts3.1/index.d.ts', result '/.src/node_modules/ext/ts3.1/index.d.ts'. --======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext/ts3.1/index.d.ts@1.0.0'. ======== -+======== Module name 'ext' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module 'ext/other' from '/.src/main.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/.src/package.json' does not exist according to earlier cached lookups. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'other'. -+'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. - File '/.src/node_modules/ext/other.ts' does not exist. - File '/.src/node_modules/ext/other.tsx' does not exist. - File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. -+'package.json' does not have a 'peerDependencies' field. - Resolving real path for '/.src/node_modules/ext/other.d.ts', result '/.src/node_modules/ext/other.d.ts'. --======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/ts3.1/package.json' does not exist. --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+======== Module name 'ext/other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== - ======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. - File '/.src/node_modules/ext/other.ts' does not exist. - File '/.src/node_modules/ext/other.tsx' does not exist. - File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. - File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. --======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext/other.d.ts@1.0.0'. ======== --File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -+'package.json' does not have a 'peerDependencies' field. -+======== Module name '../other' was successfully resolved to '/.src/node_modules/ext/other.d.ts' with Package ID 'ext@1.0.0'. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff deleted file mode 100644 index 0bd4471283..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.typingsLookup1.trace.json -+++ new.typingsLookup1.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving type reference directive 'jquery', containing file '/a.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. --File '/node_modules/@types/jquery/package.json' does not exist. --File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. --Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. --======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== - File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. --======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts'. ======== --Resolution for type reference directive 'jquery' was found in cache from location '/'. -+File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. -+======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== -+======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== -+Resolving with primary search path '/node_modules/@types'. -+File '/node_modules/@types/jquery/package.json' does not exist. -+File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. -+Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff deleted file mode 100644 index f565b8bc4f..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typingsLookup3.trace.json.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.typingsLookup3.trace.json -+++ new.typingsLookup3.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving type reference directive 'JqUeRy', containing file '/a.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. -+Directory '/node_modules/@types' does not exist, skipping all lookups in it. - Looking up in 'node_modules' folder, initial location '/'. - Searching all ancestor node_modules directories for preferred extensions: Declaration. - File '/node_modules/JqUeRy.d.ts' does not exist. -@@= skipped -10, +11 lines =@@ - File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== --File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. --File '/node_modules/@types/package.json' does not exist. --File '/node_modules/package.json' does not exist. --File '/package.json' does not exist. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff deleted file mode 100644 index 29f63ffa57..0000000000 --- a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json.diff +++ /dev/null @@ -1,127 +0,0 @@ ---- old.typingsLookup4.trace.json -+++ new.typingsLookup4.trace.json -@@= skipped -0, +0 lines =@@ - ======== Resolving module 'jquery' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist. -+Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/jquery.ts' does not exist. - File '/node_modules/jquery.tsx' does not exist. - File '/node_modules/jquery.d.ts' does not exist. --Found 'package.json' at '/node_modules/@types/jquery/package.json'. -+File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. - File '/node_modules/@types/jquery.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. - File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. - ======== Module name 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts'. ======== - ======== Resolving module 'kquery' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/kquery.ts' does not exist. - File '/node_modules/kquery.tsx' does not exist. - File '/node_modules/kquery.d.ts' does not exist. --Found 'package.json' at '/node_modules/@types/kquery/package.json'. -+File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. - File '/node_modules/@types/kquery.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. - Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. - File '/node_modules/@types/kquery/kquery.ts' does not exist. -@@= skipped -29, +31 lines =@@ - Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'. - ======== Module name 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts'. ======== - ======== Resolving module 'lquery' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/lquery.ts' does not exist. - File '/node_modules/lquery.tsx' does not exist. - File '/node_modules/lquery.d.ts' does not exist. --Found 'package.json' at '/node_modules/@types/lquery/package.json'. -+File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. - File '/node_modules/@types/lquery.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. - Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. - File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_modules/@types/lquery/lquery.ts'. - ======== Module name 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts'. ======== - ======== Resolving module 'mquery' from '/a.ts'. ======== --Module resolution kind is not specified, using 'Node10'. --Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, Declaration. -+Module resolution kind is not specified, using 'Bundler'. -+Resolving in CJS mode with conditions 'require', 'types'. -+File '/package.json' does not exist according to earlier cached lookups. -+Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. - Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. - File '/node_modules/mquery.ts' does not exist. - File '/node_modules/mquery.tsx' does not exist. - File '/node_modules/mquery.d.ts' does not exist. --Found 'package.json' at '/node_modules/@types/mquery/package.json'. -+File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. - File '/node_modules/@types/mquery.d.ts' does not exist. --'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. - Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. - File '/node_modules/@types/mquery/mquery.ts' does not exist. -@@= skipped -33, +35 lines =@@ - File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'. - ======== Module name 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx'. ======== --File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. --File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. --File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. --File '/node_modules/@types/mquery/mquery/package.json' does not exist. --File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. - ======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. --File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@types/jquery/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. - File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. - Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. - ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts', primary: true. ======== - ======== Resolving type reference directive 'kquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. --File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@types/kquery/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. - Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. - File '/node_modules/@types/kquery/kquery.ts' does not exist. -@@= skipped -24, +21 lines =@@ - ======== Type reference directive 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts', primary: true. ======== - ======== Resolving type reference directive 'lquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. --File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@types/lquery/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. - Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. - File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. -@@= skipped -8, +9 lines =@@ - ======== Type reference directive 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts', primary: true. ======== - ======== Resolving type reference directive 'mquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== - Resolving with primary search path '/node_modules/@types'. --File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. -+Found 'package.json' at '/node_modules/@types/mquery/package.json'. -+'package.json' does not have a 'typesVersions' field. - 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. - Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. - File '/node_modules/@types/mquery/mquery.ts' does not exist. \ No newline at end of file From efd10bfcf108cfd583e9a07fab0ed540a76fb188 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 7 Aug 2025 15:25:39 -0700 Subject: [PATCH 05/12] Ensure libs are traced in guaranteed order --- internal/compiler/fileloader.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/compiler/fileloader.go b/internal/compiler/fileloader.go index f9841bd00a..1d8a8a4919 100644 --- a/internal/compiler/fileloader.go +++ b/internal/compiler/fileloader.go @@ -206,7 +206,10 @@ func processAllProgramFiles( } } - loader.pathForLibFileResolutions.Range(func(key tspath.Path, value *libResolution) bool { + keys := slices.Collect(loader.pathForLibFileResolutions.Keys()) + slices.Sort(keys) + for _, key := range keys { + value, _ := loader.pathForLibFileResolutions.Load(key) resolvedModules[key] = module.ModeAwareCache[*module.ResolvedModule]{ module.ModeAwareCacheKey{Name: value.libraryName, Mode: core.ModuleKindCommonJS}: value.resolution, } @@ -216,8 +219,7 @@ func processAllProgramFiles( for _, diag := range value.resolution.ResolutionDiagnostics { fileLoadDiagnostics.Add(diag) } - return true - }) + } return processedFiles{ resolver: loader.resolver, From 9d3f88d94b09faea5ee6e3bd45948c94dceeb63a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 7 Aug 2025 15:58:30 -0700 Subject: [PATCH 06/12] Use nil as trace by default --- internal/checker/checker_test.go | 6 +++--- internal/compiler/host.go | 3 +++ internal/compiler/program_test.go | 19 ++++++++++--------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/internal/checker/checker_test.go b/internal/checker/checker_test.go index 3b05f932b7..c5029ecbc9 100644 --- a/internal/checker/checker_test.go +++ b/internal/checker/checker_test.go @@ -36,7 +36,7 @@ foo.bar;` fs = bundled.WrapFS(fs) cd := "/" - host := compiler.NewCompilerHost(cd, fs, bundled.LibPath(), nil, func(msg string) {}) + host := compiler.NewCompilerHost(cd, fs, bundled.LibPath(), nil, nil) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile("/tsconfig.json", &core.CompilerOptions{}, host, nil) assert.Equal(t, len(errors), 0, "Expected no errors in parsed command line") @@ -70,7 +70,7 @@ func TestCheckSrcCompiler(t *testing.T) { rootPath := tspath.CombinePaths(tspath.NormalizeSlashes(repo.TypeScriptSubmodulePath), "src", "compiler") - host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, func(msg string) {}) + host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, nil) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile(tspath.CombinePaths(rootPath, "tsconfig.json"), &core.CompilerOptions{}, host, nil) assert.Equal(t, len(errors), 0, "Expected no errors in parsed command line") p := compiler.NewProgram(compiler.ProgramOptions{ @@ -87,7 +87,7 @@ func BenchmarkNewChecker(b *testing.B) { rootPath := tspath.CombinePaths(tspath.NormalizeSlashes(repo.TypeScriptSubmodulePath), "src", "compiler") - host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, func(msg string) {}) + host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, nil) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile(tspath.CombinePaths(rootPath, "tsconfig.json"), &core.CompilerOptions{}, host, nil) assert.Equal(b, len(errors), 0, "Expected no errors in parsed command line") p := compiler.NewProgram(compiler.ProgramOptions{ diff --git a/internal/compiler/host.go b/internal/compiler/host.go index 191c4602d4..9221e59b45 100644 --- a/internal/compiler/host.go +++ b/internal/compiler/host.go @@ -50,6 +50,9 @@ func NewCompilerHost( extendedConfigCache *collections.SyncMap[tspath.Path, *tsoptions.ExtendedConfigCacheEntry], trace func(msg string), ) CompilerHost { + if trace == nil { + trace = func(msg string) {} + } return &compilerHost{ currentDirectory: currentDirectory, fs: fs, diff --git a/internal/compiler/program_test.go b/internal/compiler/program_test.go index 113725363d..7c23992fdf 100644 --- a/internal/compiler/program_test.go +++ b/internal/compiler/program_test.go @@ -1,4 +1,4 @@ -package compiler +package compiler_test import ( "path/filepath" @@ -7,6 +7,7 @@ import ( "testing" "github.com/microsoft/typescript-go/internal/bundled" + "github.com/microsoft/typescript-go/internal/compiler" "github.com/microsoft/typescript-go/internal/core" "github.com/microsoft/typescript-go/internal/repo" "github.com/microsoft/typescript-go/internal/tsoptions" @@ -233,14 +234,14 @@ func TestProgram(t *testing.T) { opts := core.CompilerOptions{Target: testCase.target} - program := NewProgram(ProgramOptions{ + program := compiler.NewProgram(compiler.ProgramOptions{ Config: &tsoptions.ParsedCommandLine{ ParsedConfig: &core.ParsedOptions{ FileNames: []string{"c:/dev/src/index.ts"}, CompilerOptions: &opts, }, }, - Host: NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil, func(msg string) {}), + Host: compiler.NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil, nil), }) actualFiles := []string{} @@ -270,18 +271,18 @@ func BenchmarkNewProgram(b *testing.B) { } opts := core.CompilerOptions{Target: testCase.target} - programOpts := ProgramOptions{ + programOpts := compiler.ProgramOptions{ Config: &tsoptions.ParsedCommandLine{ ParsedConfig: &core.ParsedOptions{ FileNames: []string{"c:/dev/src/index.ts"}, CompilerOptions: &opts, }, }, - Host: NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil, func(msg string) {}), + Host: compiler.NewCompilerHost("c:/dev/src", fs, bundled.LibPath(), nil, nil), } for b.Loop() { - NewProgram(programOpts) + compiler.NewProgram(programOpts) } }) } @@ -294,18 +295,18 @@ func BenchmarkNewProgram(b *testing.B) { fs := osvfs.FS() fs = bundled.WrapFS(fs) - host := NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, func(msg string) {}) + host := compiler.NewCompilerHost(rootPath, fs, bundled.LibPath(), nil, nil) parsed, errors := tsoptions.GetParsedCommandLineOfConfigFile(tspath.CombinePaths(rootPath, "tsconfig.json"), nil, host, nil) assert.Equal(b, len(errors), 0, "Expected no errors in parsed command line") - opts := ProgramOptions{ + opts := compiler.ProgramOptions{ Config: parsed, Host: host, } for b.Loop() { - NewProgram(opts) + compiler.NewProgram(opts) } }) } From 6704de6649f9b3ad541fb9748c947bcbff22f88d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 11 Aug 2025 22:34:13 -0700 Subject: [PATCH 07/12] Sanitixe version in trace log --- internal/execute/testsys_test.go | 3 ++- internal/testutil/harnessutil/harnessutil.go | 4 +++- internal/testutil/incrementaltestutil/fs.go | 9 ++++----- ...tsBlocksTypesVersions(module=node16).trace.json | 6 +++--- ...tsBlocksTypesVersions(module=node18).trace.json | 6 +++--- ...BlocksTypesVersions(module=nodenext).trace.json | 6 +++--- .../typesVersions.ambientModules.trace.json | 14 +++++++------- .../conformance/typesVersions.multiFile.trace.json | 4 ++-- ...typesVersionsDeclarationEmit.ambient.trace.json | 14 +++++++------- ...pesVersionsDeclarationEmit.multiFile.trace.json | 4 ++-- ...ionEmit.multiFileBackReferenceToSelf.trace.json | 6 +++--- ...mit.multiFileBackReferenceToUnmapped.trace.json | 4 ++-- 12 files changed, 41 insertions(+), 39 deletions(-) diff --git a/internal/execute/testsys_test.go b/internal/execute/testsys_test.go index 6f25e599b1..8bba8ff082 100644 --- a/internal/execute/testsys_test.go +++ b/internal/execute/testsys_test.go @@ -15,6 +15,7 @@ import ( "github.com/microsoft/typescript-go/internal/core" "github.com/microsoft/typescript-go/internal/execute" "github.com/microsoft/typescript-go/internal/incremental" + "github.com/microsoft/typescript-go/internal/testutil/harnessutil" "github.com/microsoft/typescript-go/internal/testutil/incrementaltestutil" "github.com/microsoft/typescript-go/internal/testutil/stringtestutil" "github.com/microsoft/typescript-go/internal/tsoptions" @@ -184,7 +185,7 @@ func (s *testSys) EndWrite() { // todo: revisit if improving tsc/build/watch unittest baselines output := s.currentWrite.String() s.currentWrite.Reset() - output = sanitizeSysOutput(output, "Version "+core.Version(), "Version FakeTSVersion\n") + output = sanitizeSysOutput(output, "Version "+core.Version(), "Version "+harnessutil.FakeTSVersion+"\n") output = sanitizeSysOutput(output, "build starting at ", "") output = sanitizeSysOutput(output, "build finished in ", "") s.output = append(s.output, output) diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index 43d506235e..461681963a 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -34,6 +34,8 @@ import ( // Posix-style path to additional test libraries const testLibFolder = "/.lib" +const FakeTSVersion = "FakeTSVersion" + type TestFile struct { UnitName string Content string @@ -516,7 +518,7 @@ func (h *cachedCompilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast func createCompilerHost(fs vfs.FS, defaultLibraryPath string, currentDirectory string) *cachedCompilerHost { var tracer strings.Builder trace := func(msg string) { - fmt.Fprintln(&tracer, msg) + fmt.Fprintln(&tracer, strings.Replace(msg, "'"+core.Version()+"'", "'"+FakeTSVersion+"'", 1)) } return &cachedCompilerHost{ CompilerHost: compiler.NewCompilerHost(currentDirectory, fs, defaultLibraryPath, nil, trace), diff --git a/internal/testutil/incrementaltestutil/fs.go b/internal/testutil/incrementaltestutil/fs.go index cd3fa6b9a1..d238229955 100644 --- a/internal/testutil/incrementaltestutil/fs.go +++ b/internal/testutil/incrementaltestutil/fs.go @@ -6,12 +6,11 @@ import ( "github.com/go-json-experiment/json" "github.com/microsoft/typescript-go/internal/core" "github.com/microsoft/typescript-go/internal/incremental" + "github.com/microsoft/typescript-go/internal/testutil/harnessutil" "github.com/microsoft/typescript-go/internal/tspath" "github.com/microsoft/typescript-go/internal/vfs" ) -var fakeTsVersion = "FakeTSVersion" - type FsHandlingBuildInfo struct { vfs.FS } @@ -24,7 +23,7 @@ func (f *FsHandlingBuildInfo) ReadFile(path string) (contents string, ok bool) { // read buildinfo and modify version var buildInfo incremental.BuildInfo err := json.Unmarshal([]byte(contents), &buildInfo) - if err == nil && buildInfo.Version == fakeTsVersion { + if err == nil && buildInfo.Version == harnessutil.FakeTSVersion { buildInfo.Version = core.Version() newContents, err := json.Marshal(&buildInfo) if err != nil { @@ -41,8 +40,8 @@ func (f *FsHandlingBuildInfo) WriteFile(path string, data string, writeByteOrder var buildInfo incremental.BuildInfo if err := json.Unmarshal([]byte(data), &buildInfo); err == nil { if buildInfo.Version == core.Version() { - // Change it to fakeTsVersion - buildInfo.Version = fakeTsVersion + // Change it to harnessutil.FakeTSVersion + buildInfo.Version = harnessutil.FakeTSVersion newData, err := json.Marshal(&buildInfo) if err != nil { return fmt.Errorf("testFs.WriteFile: failed to marshal build info after fixing version: %w", err) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json index cdf5b6df2d..f28a9f9587 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json @@ -91,7 +91,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. @@ -124,7 +124,7 @@ Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, targ Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. @@ -202,7 +202,7 @@ Loading module 'just-types-versions/foo' from 'node_modules' folder, target file Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/just-types-versions/package.json'. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json index cdf5b6df2d..f28a9f9587 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json @@ -91,7 +91,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. @@ -124,7 +124,7 @@ Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, targ Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. @@ -202,7 +202,7 @@ Loading module 'just-types-versions/foo' from 'node_modules' folder, target file Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/just-types-versions/package.json'. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json index 851e28cb88..6530b938e7 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json @@ -91,7 +91,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. @@ -124,7 +124,7 @@ Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, targ Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/exports-and-types-versions/types/foo.d.ts' exists - use it as a name resolution result. @@ -202,7 +202,7 @@ Loading module 'just-types-versions/foo' from 'node_modules' folder, target file Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/just-types-versions/package.json'. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' has a 'typesVersions' entry '*' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'foo'. +'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. File '/node_modules/just-types-versions/types/foo.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json index 387ace26b1..7d8e95d040 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json @@ -12,7 +12,7 @@ File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. @@ -30,20 +30,20 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. File '/.src/node_modules/ext/other.ts' does not exist. File '/.src/node_modules/ext/other.tsx' does not exist. File '/.src/node_modules/ext/other.d.ts' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. @@ -52,18 +52,18 @@ Directory '/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.js' does not exist. File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. File '/.src/node_modules/ext/other.js' does not exist. File '/.src/node_modules/ext/other.jsx' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json index 43b3446387..bd96e2c533 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json @@ -12,7 +12,7 @@ File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. @@ -30,7 +30,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json index 387ace26b1..7d8e95d040 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json @@ -12,7 +12,7 @@ File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. @@ -30,20 +30,20 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: TypeScript, Declaration. File '/.src/node_modules/ext/other.ts' does not exist. File '/.src/node_modules/ext/other.tsx' does not exist. File '/.src/node_modules/ext/other.d.ts' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: TypeScript, Declaration. @@ -52,18 +52,18 @@ Directory '/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.js' does not exist. File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. File '/.src/node_modules/ext/other.js' does not exist. File '/.src/node_modules/ext/other.jsx' does not exist. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/other/ts3.1/index', target file types: JavaScript, JSON. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json index 43b3446387..bd96e2c533 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json @@ -12,7 +12,7 @@ File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. @@ -30,7 +30,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index 1a6647f1f6..dd74c5c922 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -12,7 +12,7 @@ File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. @@ -30,7 +30,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. @@ -46,7 +46,7 @@ Loading module as file / folder, candidate module location '/.src/node_modules/e File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, JavaScript, Declaration, JSON. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index acbcde0cbb..3095a1857b 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -12,7 +12,7 @@ File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'index'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern 'index'. Trying substitution 'ts3.1/index', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, Declaration. @@ -30,7 +30,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '7.0.0-dev', looking for a pattern to match module name 'other'. +'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. File '/.src/node_modules/ext/other.ts' does not exist. File '/.src/node_modules/ext/other.tsx' does not exist. File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. From 3bb69816f7c2336e14ecd0dad33a0d8392571262 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 11 Aug 2025 22:58:04 -0700 Subject: [PATCH 08/12] Sanitize trace with fs caching traces as they are not deterministic --- internal/testutil/harnessutil/harnessutil.go | 75 ++++++++++++++++++-- 1 file changed, 68 insertions(+), 7 deletions(-) diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index 461681963a..804a18e137 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -223,7 +223,7 @@ func CompileFilesEx( Errors: errors, }, harnessOptions) result.Symlinks = symlinks - result.Trace = host.tracer.String() + result.Trace = host.tracer.string() result.Repeat = func(testConfig TestConfiguration) *CompilationResult { newHarnessOptions := *harnessOptions newCompilerOptions := compilerOptions.Clone() @@ -474,7 +474,7 @@ func getOptionValue(t *testing.T, option *tsoptions.CommandLineOption, value str type cachedCompilerHost struct { compiler.CompilerHost - tracer *strings.Builder + tracer *tracer } var sourceFileCache collections.SyncMap[SourceFileCacheKey, *ast.SourceFile] @@ -515,13 +515,74 @@ func (h *cachedCompilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast return result } -func createCompilerHost(fs vfs.FS, defaultLibraryPath string, currentDirectory string) *cachedCompilerHost { - var tracer strings.Builder - trace := func(msg string) { - fmt.Fprintln(&tracer, strings.Replace(msg, "'"+core.Version()+"'", "'"+FakeTSVersion+"'", 1)) +type tracer struct { + fs vfs.FS + currentDirectory string + packageJsonCache map[tspath.Path]bool + builder strings.Builder +} + +func (t *tracer) trace(msg string) { + fmt.Fprintln(&t.builder, t.sanitizeTrace(msg)) +} + +func (t *tracer) sanitizeTrace(msg string) string { + // Version + if str := strings.Replace(msg, "'"+core.Version()+"'", "'"+FakeTSVersion+"'", 1); str != msg { + return str + } + // caching of fs in trace to be replaces with non caching version + if str := strings.TrimSuffix(msg, "' does not exist according to earlier cached lookups."); str != msg { + file := strings.TrimPrefix(str, "File '") + filePath := tspath.ToPath(file, t.currentDirectory, t.fs.UseCaseSensitiveFileNames()) + if _, has := t.packageJsonCache[filePath]; has { + return msg + } else { + t.packageJsonCache[filePath] = false + return fmt.Sprintf("File '%s' does not exist.", file) + } } + if str := strings.TrimSuffix(msg, "' does not exist."); str != msg { + file := strings.TrimPrefix(str, "File '") + filePath := tspath.ToPath(file, t.currentDirectory, t.fs.UseCaseSensitiveFileNames()) + if _, has := t.packageJsonCache[filePath]; !has { + t.packageJsonCache[filePath] = false + return msg + } else { + return fmt.Sprintf("File '%s' does not exist according to earlier cached lookups.", file) + } + } + if str := strings.TrimSuffix(msg, "' exists according to earlier cached lookups."); str != msg { + file := strings.TrimPrefix(str, "File '") + filePath := tspath.ToPath(file, t.currentDirectory, t.fs.UseCaseSensitiveFileNames()) + if _, has := t.packageJsonCache[filePath]; has { + return msg + } else { + t.packageJsonCache[filePath] = true + return fmt.Sprintf("Found 'package.json' at '%s'.", file) + } + } + if str := strings.TrimPrefix(msg, "Found 'package.json' at '"); str != msg { + file := strings.TrimSuffix(str, "'.") + filePath := tspath.ToPath(file, t.currentDirectory, t.fs.UseCaseSensitiveFileNames()) + if _, has := t.packageJsonCache[filePath]; !has { + t.packageJsonCache[filePath] = true + return msg + } else { + return fmt.Sprintf("File '%s' exists according to earlier cached lookups.", file) + } + } + return msg +} + +func (t *tracer) string() string { + return t.builder.String() +} + +func createCompilerHost(fs vfs.FS, defaultLibraryPath string, currentDirectory string) *cachedCompilerHost { + tracer := tracer{fs: fs, currentDirectory: currentDirectory, packageJsonCache: make(map[tspath.Path]bool)} return &cachedCompilerHost{ - CompilerHost: compiler.NewCompilerHost(currentDirectory, fs, defaultLibraryPath, nil, trace), + CompilerHost: compiler.NewCompilerHost(currentDirectory, fs, defaultLibraryPath, nil, tracer.trace), tracer: &tracer, } } From 6c50bc13311a5a5f25d9cbc6e60a032e26f858c3 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 12 Aug 2025 00:25:28 -0700 Subject: [PATCH 09/12] Accept baselines --- .../allowJsCrossMonorepoPackage.trace.json | 12 ++--- .../cachedModuleResolution1.trace.json | 20 ++++---- .../cachedModuleResolution2.trace.json | 20 ++++---- .../cachedModuleResolution3.trace.json | 16 +++---- .../cachedModuleResolution4.trace.json | 16 +++---- .../cachedModuleResolution5.trace.json | 16 +++---- .../cachedModuleResolution6.trace.json | 16 +++---- .../cachedModuleResolution7.trace.json | 16 +++---- .../cachedModuleResolution8.trace.json | 16 +++---- .../cachedModuleResolution9.trace.json | 16 +++---- ...age_relativeImportWithinPackage.trace.json | 2 +- ...ativeImportWithinPackage_scoped.trace.json | 2 +- .../importWithTrailingSlash.trace.json | 4 +- .../libTypeScriptOverrideSimple.trace.json | 4 +- ...bTypeScriptOverrideSimpleConfig.trace.json | 4 +- .../libTypeScriptSubfileResolving.trace.json | 4 +- ...ypeScriptSubfileResolvingConfig.trace.json | 4 +- .../compiler/modulePreserve3.trace.json | 6 +-- ...geIdWithRelativeAndAbsolutePath.trace.json | 2 +- ...lutionWithExtensions_unexpected.trace.json | 2 +- ...utionWithExtensions_unexpected2.trace.json | 6 +-- ...olutionWithExtensions_withPaths.trace.json | 8 ++-- ...es_one_externalModule_withPaths.trace.json | 8 ++-- ...onWithSymlinks_preserveSymlinks.trace.json | 2 +- ...tionWithSymlinks_referenceTypes.trace.json | 4 +- .../nodeColonModuleResolution.trace.json | 18 +++---- .../nodeNextModuleResolution1.trace.json | 2 +- ...pingBasedModuleResolution3_node.trace.json | 8 ++-- ...pingBasedModuleResolution4_node.trace.json | 8 ++-- ...liasWithRoot_differentRootTypes.trace.json | 48 +++++++++---------- ...eResolution_withExtensionInName.trace.json | 10 ++-- .../reactJsxReactResolvedNodeNext.trace.json | 8 ++-- ...eactJsxReactResolvedNodeNextEsm.trace.json | 6 +-- ...ResolveJsonModuleAndPathMapping.trace.json | 12 ++--- .../typeReferenceDirectives1.trace.json | 6 +-- .../typeReferenceDirectives10.trace.json | 6 +-- .../typeReferenceDirectives12.trace.json | 6 +-- .../typeReferenceDirectives13.trace.json | 6 +-- .../typeReferenceDirectives3.trace.json | 6 +-- .../typeReferenceDirectives4.trace.json | 6 +-- .../typeReferenceDirectives5.trace.json | 6 +-- .../typeReferenceDirectives6.trace.json | 6 +-- .../typeReferenceDirectives7.trace.json | 6 +-- .../typeReferenceDirectives9.trace.json | 6 +-- ...mMultipleNodeModulesDirectories.trace.json | 4 +- ...romNodeModulesInParentDirectory.trace.json | 2 +- ...dlerNodeModules1(module=esnext).trace.json | 12 ++--- ...erNodeModules1(module=preserve).trace.json | 12 ++--- ...bundlerRelative1(module=esnext).trace.json | 8 ++-- ...ndlerRelative1(module=preserve).trace.json | 8 ++-- .../library-reference-1.trace.json | 6 +-- .../library-reference-10.trace.json | 6 +-- .../library-reference-2.trace.json | 6 +-- .../library-reference-6.trace.json | 4 +- .../library-reference-8.trace.json | 16 +++---- ...direct(moduleresolution=node16).trace.json | 2 +- ...rect(moduleresolution=nodenext).trace.json | 2 +- .../nodeModulesAtTypesPriority.trace.json | 10 ++-- ...cksTypesVersions(module=node16).trace.json | 18 +++---- ...cksTypesVersions(module=node18).trace.json | 18 +++---- ...sTypesVersions(module=nodenext).trace.json | 18 +++---- ...esPackageImports(module=node16).trace.json | 4 +- ...esPackageImports(module=node18).trace.json | 4 +- ...PackageImports(module=nodenext).trace.json | 4 +- ...nExportsTrailers(module=node16).trace.json | 48 +++++++++---------- ...nExportsTrailers(module=node18).trace.json | 48 +++++++++---------- ...xportsTrailers(module=nodenext).trace.json | 48 +++++++++---------- .../conformance/packageJsonMain.trace.json | 6 +-- ...stic1(moduleresolution=bundler).trace.json | 16 +++---- ...ostic1(moduleresolution=node16).trace.json | 10 ++-- .../selfNameModuleAugmentation.trace.json | 14 +++--- ...it.multiFileBackReferenceToSelf.trace.json | 4 +- ...ultiFileBackReferenceToUnmapped.trace.json | 4 +- .../conformance/typingsLookup1.trace.json | 4 +- .../conformance/typingsLookup4.trace.json | 28 +++++------ 75 files changed, 400 insertions(+), 400 deletions(-) diff --git a/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json index 5ddc5147cd..4f4fe2b8e5 100644 --- a/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json +++ b/testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.trace.json @@ -36,15 +36,15 @@ File '/packages/main/node_modules/shared.d.ts' does not exist. 'package.json' does not have a 'typings' field. 'package.json' does not have a 'types' field. 'package.json' does not have a 'main' field. -File '/packages/main/node_modules/shared/index.ts' does not exist. -File '/packages/main/node_modules/shared/index.tsx' does not exist. -File '/packages/main/node_modules/shared/index.d.ts' does not exist. +File '/packages/main/node_modules/shared/index.ts' does not exist according to earlier cached lookups. +File '/packages/main/node_modules/shared/index.tsx' does not exist according to earlier cached lookups. +File '/packages/main/node_modules/shared/index.d.ts' does not exist according to earlier cached lookups. Directory '/packages/main/node_modules/@types' does not exist, skipping all lookups in it. Directory '/packages/node_modules' does not exist, skipping all lookups in it. Directory '/packages/node_modules/@types' does not exist, skipping all lookups in it. -File '/node_modules/shared.ts' does not exist. -File '/node_modules/shared.tsx' does not exist. -File '/node_modules/shared.d.ts' does not exist. +File '/node_modules/shared.ts' does not exist according to earlier cached lookups. +File '/node_modules/shared.tsx' does not exist according to earlier cached lookups. +File '/node_modules/shared.d.ts' does not exist according to earlier cached lookups. Directory '/node_modules/@types' does not exist, skipping all lookups in it. ======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared@1.0.0'. ======== ======== Resolving module './utils.js' from '/packages/shared/index.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json index a28869c97b..4980a2dac8 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution1.trace.json @@ -3,10 +3,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. @@ -23,16 +23,16 @@ Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/ ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -File '/a/b/node_modules/foo.ts' does not exist. -File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.ts' does not exist according to earlier cached lookups. +File '/a/b/node_modules/foo.tsx' does not exist according to earlier cached lookups. File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json index 83f20ce293..f1a12db2b6 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution2.trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. @@ -19,10 +19,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. @@ -31,8 +31,8 @@ Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it. Directory '/a/b/c/d/node_modules/@types' does not exist, skipping all lookups in it. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. Directory '/a/b/c/node_modules/@types' does not exist, skipping all lookups in it. -File '/a/b/node_modules/foo.ts' does not exist. -File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.ts' does not exist according to earlier cached lookups. +File '/a/b/node_modules/foo.tsx' does not exist according to earlier cached lookups. File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json index cf2d0cfbaa..8090b18e29 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution3.trace.json @@ -3,10 +3,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. @@ -32,10 +32,10 @@ Directory '/node_modules' does not exist, skipping all lookups in it. ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json index ce95b62ea7..aa92ef4940 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution4.trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. @@ -26,10 +26,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json index e05c3cf00d..1250548069 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution5.trace.json @@ -4,9 +4,9 @@ Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. @@ -23,13 +23,13 @@ Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/ ======== Resolving module 'foo' from '/a/b/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/a/b/node_modules/foo.ts' does not exist. -File '/a/b/node_modules/foo.tsx' does not exist. +File '/a/b/node_modules/foo.ts' does not exist according to earlier cached lookups. +File '/a/b/node_modules/foo.tsx' does not exist according to earlier cached lookups. File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result. Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'. ======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json index cf2d0cfbaa..8090b18e29 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution6.trace.json @@ -3,10 +3,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. @@ -32,10 +32,10 @@ Directory '/node_modules' does not exist, skipping all lookups in it. ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json index ce95b62ea7..aa92ef4940 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution7.trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. @@ -26,10 +26,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json index cf2d0cfbaa..8090b18e29 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution8.trace.json @@ -3,10 +3,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. @@ -32,10 +32,10 @@ Directory '/node_modules' does not exist, skipping all lookups in it. ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json index ce95b62ea7..aa92ef4940 100644 --- a/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json +++ b/testdata/baselines/reference/submodule/compiler/cachedModuleResolution9.trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'foo' from '/a/b/c/lib.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/c/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/c/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it. @@ -26,10 +26,10 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/a/b/c/d/e/package.json' does not exist. File '/a/b/c/d/package.json' does not exist. -File '/a/b/c/package.json' does not exist. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/c/package.json' does not exist according to earlier cached lookups. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json index da9dd1306f..6fb6a6b336 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage.trace.json @@ -41,7 +41,7 @@ File '/node_modules/foo/package.json' exists according to earlier cached lookups Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/node_modules/a/package.json' does not exist according to earlier cached lookups. -File '/node_modules/package.json' does not exist according to earlier cached lookups. +File '/node_modules/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. diff --git a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json index c6dc4bf056..77016fd60c 100644 --- a/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json +++ b/testdata/baselines/reference/submodule/compiler/duplicatePackage_relativeImportWithinPackage_scoped.trace.json @@ -41,7 +41,7 @@ File '/node_modules/@foo/bar/package.json' exists according to earlier cached lo Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/node_modules/a/package.json' does not exist according to earlier cached lookups. -File '/node_modules/package.json' does not exist according to earlier cached lookups. +File '/node_modules/package.json' does not exist. File '/package.json' does not exist according to earlier cached lookups. Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. diff --git a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json index d6bbd94cff..ea6313cd9e 100644 --- a/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json +++ b/testdata/baselines/reference/submodule/compiler/importWithTrailingSlash.trace.json @@ -2,7 +2,7 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/a/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist. File '/a/index.ts' exists - use it as a name resolution result. ======== Module name '.' was successfully resolved to '/a/index.ts'. ======== ======== Resolving module './' from '/a/test.ts'. ======== @@ -16,7 +16,7 @@ File '/a/index.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. Loading module as file / folder, candidate module location '/a/', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/a/package.json' does not exist. +File '/a/package.json' does not exist according to earlier cached lookups. File '/a/index.ts' exists - use it as a name resolution result. ======== Module name '..' was successfully resolved to '/a/index.ts'. ======== ======== Resolving module '../' from '/a/b/test.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json index b6e01e49bd..c525870d16 100644 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimple.trace.json @@ -1,8 +1,8 @@ ======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/.src/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/.src/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json index baff5c90f6..5b583846ff 100644 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptOverrideSimpleConfig.trace.json @@ -1,8 +1,8 @@ ======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/somepath/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/somepath/package.json' does not exist. +File '/package.json' does not exist. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json index 379a5108ef..3fcfca153f 100644 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolving.trace.json @@ -1,8 +1,8 @@ ======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/.src/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/.src/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json index e0a53d77b0..8f2398edd9 100644 --- a/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json +++ b/testdata/baselines/reference/submodule/compiler/libTypeScriptSubfileResolvingConfig.trace.json @@ -1,8 +1,8 @@ ======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/somepath/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/somepath/package.json' does not exist. +File '/package.json' does not exist. Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json index baaaff51cd..d730dd7f5e 100644 --- a/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve3.trace.json @@ -4,14 +4,14 @@ Resolving in CJS mode with conditions 'import', 'types'. File '/package.json' does not exist. Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/react/package.json' does not exist. File '/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/react/jsx-runtime.d.ts', result '/node_modules/@types/react/jsx-runtime.d.ts'. ======== Module name 'react/jsx-runtime' was successfully resolved to '/node_modules/@types/react/jsx-runtime.d.ts'. ======== ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -File '/node_modules/@types/react/package.json' does not exist. +File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. File '/node_modules/@types/react/index.d.ts' does not exist. Looking up in 'node_modules' folder, initial location '/.src'. Searching all ancestor node_modules directories for preferred extensions: Declaration. @@ -20,5 +20,5 @@ Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it File '/node_modules/react.d.ts' does not exist. File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. File '/node_modules/@types/react.d.ts' does not exist. -File '/node_modules/@types/react/index.d.ts' does not exist. +File '/node_modules/@types/react/index.d.ts' does not exist according to earlier cached lookups. ======== Type reference directive 'react' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json index bedfe22207..60cb32749f 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json @@ -34,7 +34,7 @@ Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. 'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'. File '/project/node_modules/anotherLib/package.json' does not exist according to earlier cached lookups. -File '/project/node_modules/package.json' does not exist according to earlier cached lookups. +File '/project/node_modules/package.json' does not exist. File '/project/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json index 0f988ca942..053a9067f3 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json @@ -18,7 +18,7 @@ File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - s File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: TypeScript, Declaration. File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. -File '/node_modules/normalize.css/normalize.d.css.ts' does not exist. +File '/node_modules/normalize.css/normalize.d.css.ts' does not exist according to earlier cached lookups. File '/node_modules/normalize.css/normalize.css.ts' does not exist. File '/node_modules/normalize.css/normalize.css.tsx' does not exist. File '/node_modules/normalize.css/normalize.css.d.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json index 73cb649747..de17d5d416 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json @@ -17,9 +17,9 @@ File '/node_modules/foo/foo.tsx' does not exist. File '/node_modules/foo/foo.d.ts' does not exist. Loading module as file / folder, candidate module location '/node_modules/foo/foo.js', target file types: TypeScript, Declaration. File name '/node_modules/foo/foo.js' has a '.js' extension - stripping it. -File '/node_modules/foo/foo.ts' does not exist. -File '/node_modules/foo/foo.tsx' does not exist. -File '/node_modules/foo/foo.d.ts' does not exist. +File '/node_modules/foo/foo.ts' does not exist according to earlier cached lookups. +File '/node_modules/foo/foo.tsx' does not exist according to earlier cached lookups. +File '/node_modules/foo/foo.d.ts' does not exist according to earlier cached lookups. File '/node_modules/foo/foo.js.ts' does not exist. File '/node_modules/foo/foo.js.tsx' does not exist. File '/node_modules/foo/foo.js.d.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json index 313e5dc896..435b434945 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_withPaths.trace.json @@ -19,8 +19,8 @@ Resolving in CJS mode with conditions 'import', 'types'. Module name 'foo/test', matched pattern 'foo/*'. Trying substitution 'node_modules/foo/lib/*', candidate module location: 'node_modules/foo/lib/test'. Loading module as file / folder, candidate module location '/node_modules/foo/lib/test', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/node_modules/foo/lib/test.ts' does not exist. -File '/node_modules/foo/lib/test.tsx' does not exist. +File '/node_modules/foo/lib/test.ts' does not exist according to earlier cached lookups. +File '/node_modules/foo/lib/test.tsx' does not exist according to earlier cached lookups. File '/node_modules/foo/lib/test.d.ts' exists - use it as a name resolution result. File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. Resolving real path for '/node_modules/foo/lib/test.d.ts', result '/node_modules/foo/lib/test.d.ts'. @@ -38,7 +38,7 @@ File '/relative.d.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. Loading module as file / folder, candidate module location '/relative', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/relative.ts' does not exist. -File '/relative.tsx' does not exist. +File '/relative.ts' does not exist according to earlier cached lookups. +File '/relative.tsx' does not exist according to earlier cached lookups. File '/relative.d.ts' exists - use it as a name resolution result. ======== Module name './relative' was successfully resolved to '/relative.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json index ec7572e66e..5163c0b99c 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSuffixes_one_externalModule_withPaths.trace.json @@ -23,8 +23,8 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'some-library/index', matched pattern 'some-library/*'. Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index'. Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/node_modules/some-library/lib/index.ios.ts' does not exist. -File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +File '/node_modules/some-library/lib/index.ios.ts' does not exist according to earlier cached lookups. +File '/node_modules/some-library/lib/index.ios.tsx' does not exist according to earlier cached lookups. File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. File '/node_modules/some-library/package.json' does not exist. Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. @@ -37,8 +37,8 @@ Module name 'some-library/index.js', matched pattern 'some-library/*'. Trying substitution 'node_modules/some-library/lib/*', candidate module location: 'node_modules/some-library/lib/index.js'. Loading module as file / folder, candidate module location '/node_modules/some-library/lib/index.js', target file types: TypeScript, JavaScript, Declaration, JSON. File name '/node_modules/some-library/lib/index.js' has a '.js' extension - stripping it. -File '/node_modules/some-library/lib/index.ios.ts' does not exist. -File '/node_modules/some-library/lib/index.ios.tsx' does not exist. +File '/node_modules/some-library/lib/index.ios.ts' does not exist according to earlier cached lookups. +File '/node_modules/some-library/lib/index.ios.tsx' does not exist according to earlier cached lookups. File '/node_modules/some-library/lib/index.ios.d.ts' exists - use it as a name resolution result. File '/node_modules/some-library/package.json' does not exist according to earlier cached lookups. Resolving real path for '/node_modules/some-library/lib/index.ios.d.ts', result '/node_modules/some-library/lib/index.ios.d.ts'. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json index 9b672ff4f7..92d6f047f3 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_preserveSymlinks.trace.json @@ -18,7 +18,7 @@ Loading module 'linked' from 'node_modules' folder, target file types: TypeScrip Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/app/node_modules/linked.ts' does not exist. File '/app/node_modules/linked.tsx' does not exist. -File '/app/node_modules/linked.d.ts' does not exist. +File '/app/node_modules/linked.d.ts' does not exist according to earlier cached lookups. Directory '/app/node_modules/@types' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules/@types' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json index 737c432621..c1cce93291 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithSymlinks_referenceTypes.trace.json @@ -26,9 +26,9 @@ Directory '/node_modules/@types/library-b/node_modules' does not exist, skipping Directory '/node_modules/@types/library-b/node_modules/@types' does not exist, skipping all lookups in it. Directory '/node_modules/@types/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules/@types/node_modules/@types' does not exist, skipping all lookups in it. -File '/node_modules/library-a.d.ts' does not exist. +File '/node_modules/library-a.d.ts' does not exist according to earlier cached lookups. File '/node_modules/@types/library-a/package.json' does not exist according to earlier cached lookups. -File '/node_modules/@types/library-a.d.ts' does not exist. +File '/node_modules/@types/library-a.d.ts' does not exist according to earlier cached lookups. File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'. ======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ======== diff --git a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json index 35964aaeba..aba7c996b5 100644 --- a/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json +++ b/testdata/baselines/reference/submodule/compiler/nodeColonModuleResolution.trace.json @@ -1,12 +1,12 @@ ======== Resolving module 'ph' from '/a/b/node_modules/@types/node/ph.d.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/node_modules/@types/node/package.json' does not exist according to earlier cached lookups. -File '/a/b/node_modules/@types/package.json' does not exist according to earlier cached lookups. -File '/a/b/node_modules/package.json' does not exist according to earlier cached lookups. -File '/a/b/package.json' does not exist according to earlier cached lookups. -File '/a/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/a/b/node_modules/@types/node/package.json' does not exist. +File '/a/b/node_modules/@types/package.json' does not exist. +File '/a/b/node_modules/package.json' does not exist. +File '/a/b/package.json' does not exist. +File '/a/package.json' does not exist. +File '/package.json' does not exist. Loading module 'ph' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/node_modules/@types/node/node_modules' does not exist, skipping all lookups in it. @@ -32,8 +32,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it. ======== Resolving module 'node:ph' from '/a/b/main.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/a/b/package.json' does not exist. -File '/a/package.json' does not exist. -File '/package.json' does not exist. +File '/a/b/package.json' does not exist according to earlier cached lookups. +File '/a/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist according to earlier cached lookups. Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, JavaScript, Declaration, JSON. ======== Module name 'node:ph' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json index ce51ceaa4f..fc03135d15 100644 --- a/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json +++ b/testdata/baselines/reference/submodule/compiler/nodeNextModuleResolution1.trace.json @@ -1,7 +1,7 @@ ======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ======== Explicitly specified module resolution kind: 'NodeNext'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/a/b/c/d/e/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/a/b/c/d/e/package.json'. Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json index bf3d568b76..b57204c2f5 100644 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution3_node.trace.json @@ -2,8 +2,8 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File 'c:/root/folder1/package.json' does not exist. -File 'c:/root/package.json' does not exist according to earlier cached lookups. -File 'c:/package.json' does not exist according to earlier cached lookups. +File 'c:/root/package.json' does not exist. +File 'c:/package.json' does not exist. Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. @@ -25,7 +25,7 @@ File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File 'c:/root/folder2/package.json' does not exist. -File 'c:/root/package.json' does not exist. +File 'c:/root/package.json' does not exist according to earlier cached lookups. File 'c:/package.json' does not exist according to earlier cached lookups. Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. @@ -33,7 +33,7 @@ Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in Directory 'c:/root/folder2/node_modules/@types' does not exist, skipping all lookups in it. Directory 'c:/root/node_modules' does not exist, skipping all lookups in it. Directory 'c:/root/node_modules/@types' does not exist, skipping all lookups in it. -File 'c:/node_modules/file4/package.json' does not exist according to earlier cached lookups. +File 'c:/node_modules/file4/package.json' does not exist. File 'c:/node_modules/file4.ts' does not exist. File 'c:/node_modules/file4.tsx' does not exist. File 'c:/node_modules/file4.d.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json index 3be9961801..b57204c2f5 100644 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution4_node.trace.json @@ -2,8 +2,8 @@ Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File 'c:/root/folder1/package.json' does not exist. -File 'c:/root/package.json' does not exist according to earlier cached lookups. -File 'c:/package.json' does not exist according to earlier cached lookups. +File 'c:/root/package.json' does not exist. +File 'c:/package.json' does not exist. Loading module 'folder2/file2' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it. @@ -25,8 +25,8 @@ File 'c:/root/folder2/file3.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File 'c:/root/folder2/package.json' does not exist. -File 'c:/root/package.json' does not exist. -File 'c:/package.json' does not exist. +File 'c:/root/package.json' does not exist according to earlier cached lookups. +File 'c:/package.json' does not exist according to earlier cached lookups. Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json index c38dde916c..3f6ee633c0 100644 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json @@ -35,9 +35,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'c:/bar', matched pattern 'c:/*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name 'c:/bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module 'c:\foo' from '/root/a.ts'. ======== @@ -56,9 +56,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'c:\bar', matched pattern 'c:\*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name 'c:\bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module '//server/foo' from '/root/a.ts'. ======== @@ -77,9 +77,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name '//server/bar', matched pattern '//server/*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name '//server/bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module '\\server\foo' from '/root/a.ts'. ======== @@ -98,9 +98,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name '\\server\bar', matched pattern '\\server\*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name '\\server\bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module 'file:///foo' from '/root/a.ts'. ======== @@ -119,9 +119,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'file:///bar', matched pattern 'file:///*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name 'file:///bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module 'file://c:/foo' from '/root/a.ts'. ======== @@ -140,9 +140,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'file://c:/bar', matched pattern 'file://c:/*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name 'file://c:/bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module 'file://server/foo' from '/root/a.ts'. ======== @@ -161,9 +161,9 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'file://server/bar', matched pattern 'file://server/*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name 'file://server/bar' was successfully resolved to '/root/src/bar.js'. ======== ======== Resolving module 'http://server/foo' from '/root/a.ts'. ======== @@ -182,8 +182,8 @@ Resolving in CJS mode with conditions 'require', 'types'. Module name 'http://server/bar', matched pattern 'http://server/*'. Trying substitution './src/*', candidate module location: './src/bar'. Loading module as file / folder, candidate module location '/root/src/bar', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/root/src/bar.ts' does not exist. -File '/root/src/bar.tsx' does not exist. -File '/root/src/bar.d.ts' does not exist. +File '/root/src/bar.ts' does not exist according to earlier cached lookups. +File '/root/src/bar.tsx' does not exist according to earlier cached lookups. +File '/root/src/bar.d.ts' does not exist according to earlier cached lookups. File '/root/src/bar.js' exists - use it as a name resolution result. ======== Module name 'http://server/bar' was successfully resolved to '/root/src/bar.js'. ======== diff --git a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json index 72b6bea942..6d82934790 100644 --- a/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json +++ b/testdata/baselines/reference/submodule/compiler/pathMappingBasedModuleResolution_withExtensionInName.trace.json @@ -29,11 +29,11 @@ Module name 'zone.tsx', matched pattern '*'. Trying substitution 'foo/*', candidate module location: 'foo/zone.tsx'. Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, JavaScript, Declaration, JSON. File name '/foo/zone.tsx' has a '.tsx' extension - stripping it. -File '/foo/zone.tsx' does not exist. -File '/foo/zone.ts' does not exist. -File '/foo/zone.d.ts' does not exist. -File '/foo/zone.jsx' does not exist. -File '/foo/zone.js' does not exist. +File '/foo/zone.tsx' does not exist according to earlier cached lookups. +File '/foo/zone.ts' does not exist according to earlier cached lookups. +File '/foo/zone.d.ts' does not exist according to earlier cached lookups. +File '/foo/zone.jsx' does not exist according to earlier cached lookups. +File '/foo/zone.js' does not exist according to earlier cached lookups. File '/foo/zone.tsx.ts' does not exist. File '/foo/zone.tsx.tsx' does not exist. File '/foo/zone.tsx.d.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json index e5848389ef..e48fc0d57a 100644 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json @@ -1,11 +1,11 @@ ======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/.src/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/.src/package.json' does not exist. +File '/package.json' does not exist. Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/node_modules/@types/react/package.json'. File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. @@ -30,7 +30,7 @@ File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name reso ======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -Found 'package.json' at '/.src/node_modules/@types/react/package.json'. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json index 046195fc86..8f8e0c42d4 100644 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'react/jsx-runtime' from '/.src/file.tsx'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/node_modules/@types/react/package.json'. Using 'exports' subpath './*' with target './jsx-runtime.js'. File name '/.src/node_modules/@types/react/jsx-runtime.js' has a '.js' extension - stripping it. File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. @@ -31,7 +31,7 @@ File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name reso ======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts'. ======== ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. -Found 'package.json' at '/.src/node_modules/@types/react/package.json'. +File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. diff --git a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json index 79637e8ac9..0767776327 100644 --- a/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json +++ b/testdata/baselines/reference/submodule/compiler/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json @@ -20,15 +20,15 @@ Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file typ Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/node_modules/foo/package.json' does not exist. File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -File '/node_modules/foo/bar/foobar.d.json.ts' does not exist. -File '/node_modules/foo/bar/foobar.json.ts' does not exist. -File '/node_modules/foo/bar/foobar.json.tsx' does not exist. -File '/node_modules/foo/bar/foobar.json.d.ts' does not exist. +File '/node_modules/foo/bar/foobar.d.json.ts' does not exist according to earlier cached lookups. +File '/node_modules/foo/bar/foobar.json.ts' does not exist according to earlier cached lookups. +File '/node_modules/foo/bar/foobar.json.tsx' does not exist according to earlier cached lookups. +File '/node_modules/foo/bar/foobar.json.d.ts' does not exist according to earlier cached lookups. Directory '/node_modules/@types' does not exist, skipping all lookups in it. File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it. Searching all ancestor node_modules directories for fallback extensions: JavaScript. File '/node_modules/foo/package.json' does not exist according to earlier cached lookups. File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it. -File '/node_modules/foo/bar/foobar.json.js' does not exist. -File '/node_modules/foo/bar/foobar.json.jsx' does not exist. +File '/node_modules/foo/bar/foobar.json.js' does not exist according to earlier cached lookups. +File '/node_modules/foo/bar/foobar.json.jsx' does not exist according to earlier cached lookups. ======== Module name 'foo/bar/foobar.json' was not resolved. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json index 8b78f39857..84f7b4a4cf 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives1.trace.json @@ -1,14 +1,14 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json index e092ee1f0c..052bcd8804 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives10.trace.json @@ -1,7 +1,7 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== @@ -15,8 +15,8 @@ File '/ref.d.ts' exists - use it as a name resolution result. ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json index caddeb7004..87b47e2ca4 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives12.trace.json @@ -13,7 +13,7 @@ File '/mod1.ts' exists - use it as a name resolution result. ======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== @@ -31,8 +31,8 @@ File '/main.ts' exists - use it as a name resolution result. ======== Module name './main' was successfully resolved to '/main.ts'. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json index e092ee1f0c..052bcd8804 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives13.trace.json @@ -1,7 +1,7 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== @@ -15,8 +15,8 @@ File '/ref.d.ts' exists - use it as a name resolution result. ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json index 8b78f39857..84f7b4a4cf 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives3.trace.json @@ -1,14 +1,14 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json index 8b78f39857..84f7b4a4cf 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives4.trace.json @@ -1,14 +1,14 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json index e092ee1f0c..052bcd8804 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives5.trace.json @@ -1,7 +1,7 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== @@ -15,8 +15,8 @@ File '/ref.d.ts' exists - use it as a name resolution result. ======== Module name './ref' was successfully resolved to '/ref.d.ts'. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json index 8b78f39857..84f7b4a4cf 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives6.trace.json @@ -1,14 +1,14 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json index 8b78f39857..84f7b4a4cf 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives7.trace.json @@ -1,14 +1,14 @@ ======== Resolving type reference directive 'lib', containing file '/app.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json index caddeb7004..87b47e2ca4 100644 --- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.trace.json @@ -13,7 +13,7 @@ File '/mod1.ts' exists - use it as a name resolution result. ======== Resolving type reference directive 'lib', containing file '/mod1.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== @@ -31,8 +31,8 @@ File '/main.ts' exists - use it as a name resolution result. ======== Module name './main' was successfully resolved to '/main.ts'. ======== ======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/lib.d.ts' does not exist. -File '/types/lib/package.json' does not exist. +File '/types/lib.d.ts' does not exist according to earlier cached lookups. +File '/types/lib/package.json' does not exist according to earlier cached lookups. File '/types/lib/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'. ======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json index 2651c0d11f..ce976a2b11 100644 --- a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.trace.json @@ -2,8 +2,8 @@ Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/foo/bar/package.json' does not exist. -File '/foo/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/foo/package.json' does not exist. +File '/package.json' does not exist. Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json index 8fd6c9f25a..e9993d5ed5 100644 --- a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json +++ b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.trace.json @@ -2,7 +2,7 @@ Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. File '/src/package.json' does not exist. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/src/node_modules' does not exist, skipping all lookups in it. diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json index 0e7da888eb..9e4d897653 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=esnext).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'dual' from '/main.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/dual/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/dual/package.json'. Entering conditional exports. Matched 'exports' condition 'import'. Using 'exports' subpath '.' with target './index.js'. @@ -28,8 +28,8 @@ Entering conditional exports. Matched 'exports' condition 'import'. Using 'exports' subpath '.' with target './index.js'. File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. -File '/node_modules/dual/index.ts' does not exist. -File '/node_modules/dual/index.tsx' does not exist. +File '/node_modules/dual/index.ts' does not exist according to earlier cached lookups. +File '/node_modules/dual/index.tsx' does not exist according to earlier cached lookups. File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolved under condition 'import'. @@ -39,10 +39,10 @@ Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/d ======== Resolving module 'dual' from '/main.cts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/dual/package.json'. +File '/node_modules/dual/package.json' exists according to earlier cached lookups. Entering conditional exports. Saw non-matching condition 'import'. Matched 'exports' condition 'require'. diff --git a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json index 0e7da888eb..9e4d897653 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json +++ b/testdata/baselines/reference/submodule/conformance/bundlerNodeModules1(module=preserve).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'dual' from '/main.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/dual/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/dual/package.json'. Entering conditional exports. Matched 'exports' condition 'import'. Using 'exports' subpath '.' with target './index.js'. @@ -28,8 +28,8 @@ Entering conditional exports. Matched 'exports' condition 'import'. Using 'exports' subpath '.' with target './index.js'. File name '/node_modules/dual/index.js' has a '.js' extension - stripping it. -File '/node_modules/dual/index.ts' does not exist. -File '/node_modules/dual/index.tsx' does not exist. +File '/node_modules/dual/index.ts' does not exist according to earlier cached lookups. +File '/node_modules/dual/index.tsx' does not exist according to earlier cached lookups. File '/node_modules/dual/index.d.ts' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolved under condition 'import'. @@ -39,10 +39,10 @@ Resolving real path for '/node_modules/dual/index.d.ts', result '/node_modules/d ======== Resolving module 'dual' from '/main.cts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. -File '/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'dual' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/dual/package.json'. +File '/node_modules/dual/package.json' exists according to earlier cached lookups. Entering conditional exports. Saw non-matching condition 'import'. Matched 'exports' condition 'require'. diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json index 348f217046..1d3d25724d 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=esnext).trace.json @@ -75,8 +75,8 @@ File '/types/esm.d.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/types/esm.ts' does not exist. -File '/types/esm.tsx' does not exist. +File '/types/esm.ts' does not exist according to earlier cached lookups. +File '/types/esm.tsx' does not exist according to earlier cached lookups. File '/types/esm.d.ts' exists - use it as a name resolution result. ======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== ======== Resolving module './types/cjs' from '/main.ts'. ======== @@ -91,7 +91,7 @@ File '/types/cjs.d.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/types/cjs.ts' does not exist. -File '/types/cjs.tsx' does not exist. +File '/types/cjs.ts' does not exist according to earlier cached lookups. +File '/types/cjs.tsx' does not exist according to earlier cached lookups. File '/types/cjs.d.ts' exists - use it as a name resolution result. ======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json index 348f217046..1d3d25724d 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json +++ b/testdata/baselines/reference/submodule/conformance/bundlerRelative1(module=preserve).trace.json @@ -75,8 +75,8 @@ File '/types/esm.d.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. Loading module as file / folder, candidate module location '/types/esm', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/types/esm.ts' does not exist. -File '/types/esm.tsx' does not exist. +File '/types/esm.ts' does not exist according to earlier cached lookups. +File '/types/esm.tsx' does not exist according to earlier cached lookups. File '/types/esm.d.ts' exists - use it as a name resolution result. ======== Module name './types/esm' was successfully resolved to '/types/esm.d.ts'. ======== ======== Resolving module './types/cjs' from '/main.ts'. ======== @@ -91,7 +91,7 @@ File '/types/cjs.d.ts' exists - use it as a name resolution result. Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. Loading module as file / folder, candidate module location '/types/cjs', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/types/cjs.ts' does not exist. -File '/types/cjs.tsx' does not exist. +File '/types/cjs.ts' does not exist according to earlier cached lookups. +File '/types/cjs.tsx' does not exist according to earlier cached lookups. File '/types/cjs.d.ts' exists - use it as a name resolution result. ======== Module name './types/cjs' was successfully resolved to '/types/cjs.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json index 351b43c711..3a067b4b6d 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-1.trace.json @@ -1,14 +1,14 @@ ======== Resolving type reference directive 'jquery', containing file '/src/consumer.ts', root directory '/src/types'. ======== Resolving with primary search path '/src/types'. File '/src/types/jquery.d.ts' does not exist. -File '/src/types/jquery/package.json' does not exist according to earlier cached lookups. +File '/src/types/jquery/package.json' does not exist. File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'. ======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/src/types'. ======== Resolving with primary search path '/src/types'. -File '/src/types/jquery.d.ts' does not exist. -File '/src/types/jquery/package.json' does not exist. +File '/src/types/jquery.d.ts' does not exist according to earlier cached lookups. +File '/src/types/jquery/package.json' does not exist according to earlier cached lookups. File '/src/types/jquery/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/src/types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'. ======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json index ceff3355c8..7505c150df 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json @@ -1,15 +1,15 @@ ======== Resolving type reference directive 'jquery', containing file '/foo/consumer.ts', root directory '/foo/types'. ======== Resolving with primary search path '/foo/types'. File '/foo/types/jquery.d.ts' does not exist. -File '/foo/types/jquery/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/foo/types/jquery/package.json'. 'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'. ======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ======== ======== Resolving type reference directive 'jquery', containing file '/.src/__inferred type names__.ts', root directory '/foo/types'. ======== Resolving with primary search path '/foo/types'. -File '/foo/types/jquery.d.ts' does not exist. -Found 'package.json' at '/foo/types/jquery/package.json'. +File '/foo/types/jquery.d.ts' does not exist according to earlier cached lookups. +File '/foo/types/jquery/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json index b1666ffc49..a870adccd3 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json @@ -1,7 +1,7 @@ ======== Resolving type reference directive 'jquery', containing file '/consumer.ts', root directory '/types'. ======== Resolving with primary search path '/types'. File '/types/jquery.d.ts' does not exist. -File '/types/jquery/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/types/jquery/package.json'. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result. @@ -9,8 +9,8 @@ Resolving real path for '/types/jquery/jquery.d.ts', result '/types/jquery/jquer ======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ======== ======== Resolving type reference directive 'jquery', containing file '/test/__inferred type names__.ts', root directory '/types'. ======== Resolving with primary search path '/types'. -File '/types/jquery.d.ts' does not exist. -Found 'package.json' at '/types/jquery/package.json'. +File '/types/jquery.d.ts' does not exist according to earlier cached lookups. +File '/types/jquery/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json index 422db93453..aa581b4d53 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-6.trace.json @@ -1,12 +1,12 @@ ======== Resolving type reference directive 'alpha', containing file '/src/foo.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -File '/node_modules/@types/alpha/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/alpha/package.json' does not exist. File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -File '/node_modules/@types/alpha/package.json' does not exist. +File '/node_modules/@types/alpha/package.json' does not exist according to earlier cached lookups. File '/node_modules/@types/alpha/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'. ======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json index 0dcf8192f2..1a724de93d 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-8.trace.json @@ -1,42 +1,42 @@ ======== Resolving type reference directive 'alpha', containing file '/test/foo.ts', root directory '/test/types'. ======== Resolving with primary search path '/test/types'. File '/test/types/alpha.d.ts' does not exist. -File '/test/types/alpha/package.json' does not exist according to earlier cached lookups. +File '/test/types/alpha/package.json' does not exist. File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. ======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'beta', containing file '/test/foo.ts', root directory '/test/types'. ======== Resolving with primary search path '/test/types'. File '/test/types/beta.d.ts' does not exist. -File '/test/types/beta/package.json' does not exist according to earlier cached lookups. +File '/test/types/beta/package.json' does not exist. File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. ======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'beta', containing file '/test/types/alpha/index.d.ts', root directory '/test/types'. ======== Resolving with primary search path '/test/types'. -File '/test/types/beta.d.ts' does not exist. +File '/test/types/beta.d.ts' does not exist according to earlier cached lookups. File '/test/types/beta/package.json' does not exist according to earlier cached lookups. File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. ======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'alpha', containing file '/test/types/beta/index.d.ts', root directory '/test/types'. ======== Resolving with primary search path '/test/types'. -File '/test/types/alpha.d.ts' does not exist. +File '/test/types/alpha.d.ts' does not exist according to earlier cached lookups. File '/test/types/alpha/package.json' does not exist according to earlier cached lookups. File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. ======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'alpha', containing file '/test/__inferred type names__.ts', root directory '/test/types'. ======== Resolving with primary search path '/test/types'. -File '/test/types/alpha.d.ts' does not exist. -File '/test/types/alpha/package.json' does not exist. +File '/test/types/alpha.d.ts' does not exist according to earlier cached lookups. +File '/test/types/alpha/package.json' does not exist according to earlier cached lookups. File '/test/types/alpha/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'. ======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'beta', containing file '/test/__inferred type names__.ts', root directory '/test/types'. ======== Resolving with primary search path '/test/types'. -File '/test/types/beta.d.ts' does not exist. -File '/test/types/beta/package.json' does not exist. +File '/test/types/beta.d.ts' does not exist according to earlier cached lookups. +File '/test/types/beta/package.json' does not exist according to earlier cached lookups. File '/test/types/beta/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'. ======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json index a6aac5151e..40741993dc 100644 --- a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=node16).trace.json @@ -1,7 +1,7 @@ ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== Explicitly specified module resolution kind: 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. diff --git a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json index f85fe49da0..022397c9ce 100644 --- a/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nestedPackageJsonRedirect(moduleresolution=nodenext).trace.json @@ -1,7 +1,7 @@ ======== Resolving module '@restart/hooks/useMergedRefs' from '/main.ts'. ======== Explicitly specified module resolution kind: 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module '@restart/hooks/useMergedRefs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/@restart/hooks/useMergedRefs/package.json'. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json index 98969b7f08..924b0b7bbf 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAtTypesPriority.trace.json @@ -1,9 +1,9 @@ ======== Resolving module 'react' from '/packages/a/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/packages/a/package.json' does not exist according to earlier cached lookups. -File '/packages/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. +File '/packages/a/package.json' does not exist. +File '/packages/package.json' does not exist. +File '/package.json' does not exist. Loading module 'react' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/packages/a/node_modules/react/package.json' does not exist. @@ -19,7 +19,7 @@ Directory '/packages/node_modules/@types' does not exist, skipping all lookups i File '/node_modules/react.ts' does not exist. File '/node_modules/react.tsx' does not exist. File '/node_modules/react.d.ts' does not exist. -File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/react/package.json' does not exist. File '/node_modules/@types/react.d.ts' does not exist. File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'. @@ -44,7 +44,7 @@ Resolving real path for '/packages/a/node_modules/redux/index.d.ts', result '/pa ======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -File '/node_modules/@types/react/package.json' does not exist. +File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups. File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'. ======== Type reference directive 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json index f28a9f9587..003eace205 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. Using 'exports' subpath './foo' with target './dist/foo.js'. File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. @@ -90,7 +90,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/just-types-versions/package.json'. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. @@ -100,15 +100,15 @@ Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', resu ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. Using 'exports' subpath './foo' with target './dist/foo.js'. File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. -File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. -File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. -File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist according to earlier cached lookups. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist according to earlier cached lookups. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist according to earlier cached lookups. Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript. @@ -200,7 +200,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/just-types-versions/package.json'. +File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json index f28a9f9587..003eace205 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. Using 'exports' subpath './foo' with target './dist/foo.js'. File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. @@ -90,7 +90,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/just-types-versions/package.json'. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. @@ -100,15 +100,15 @@ Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', resu ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. Using 'exports' subpath './foo' with target './dist/foo.js'. File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. -File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. -File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. -File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist according to earlier cached lookups. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist according to earlier cached lookups. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist according to earlier cached lookups. Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript. @@ -200,7 +200,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/just-types-versions/package.json'. +File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json index 6530b938e7..104b10ff02 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -File '/package.json' does not exist according to earlier cached lookups. +File '/package.json' does not exist. Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. Using 'exports' subpath './foo' with target './dist/foo.js'. File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. @@ -90,7 +90,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/just-types-versions/package.json'. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. @@ -100,15 +100,15 @@ Resolving real path for '/node_modules/just-types-versions/types/foo.d.ts', resu ======== Resolving module 'exports-and-types-versions/foo' from '/main.mts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/package.json' does not exist. +File '/package.json' does not exist according to earlier cached lookups. Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/exports-and-types-versions/package.json'. +File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups. Using 'exports' subpath './foo' with target './dist/foo.js'. File name '/node_modules/exports-and-types-versions/dist/foo.js' has a '.js' extension - stripping it. -File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist. -File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist. -File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist. +File '/node_modules/exports-and-types-versions/dist/foo.ts' does not exist according to earlier cached lookups. +File '/node_modules/exports-and-types-versions/dist/foo.tsx' does not exist according to earlier cached lookups. +File '/node_modules/exports-and-types-versions/dist/foo.d.ts' does not exist according to earlier cached lookups. Export specifier './foo' does not exist in package.json scope at path '/node_modules/exports-and-types-versions'. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript. @@ -200,7 +200,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/just-types-versions/package.json'. +File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups. 'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json index cc02d686fa..55a35f71bd 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node16).trace.json @@ -1,7 +1,7 @@ ======== Resolving module '#cjs' from '/.src/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Using 'imports' subpath '#cjs' with target './index.cjs'. File name '/.src/index.cjs' has a '.cjs' extension - stripping it. File '/.src/index.cts' exists - use it as a name resolution result. @@ -25,7 +25,7 @@ File '/.src/index.ts' exists - use it as a name resolution result. ======== Resolving module '#cjs' from '/.src/index.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/package.json'. +File '/.src/package.json' exists according to earlier cached lookups. Using 'imports' subpath '#cjs' with target './index.cjs'. File name '/.src/index.cjs' has a '.cjs' extension - stripping it. File '/.src/index.cts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json index cc02d686fa..55a35f71bd 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=node18).trace.json @@ -1,7 +1,7 @@ ======== Resolving module '#cjs' from '/.src/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Using 'imports' subpath '#cjs' with target './index.cjs'. File name '/.src/index.cjs' has a '.cjs' extension - stripping it. File '/.src/index.cts' exists - use it as a name resolution result. @@ -25,7 +25,7 @@ File '/.src/index.ts' exists - use it as a name resolution result. ======== Resolving module '#cjs' from '/.src/index.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/package.json'. +File '/.src/package.json' exists according to earlier cached lookups. Using 'imports' subpath '#cjs' with target './index.cjs'. File name '/.src/index.cjs' has a '.cjs' extension - stripping it. File '/.src/index.cts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json index 6e070a05d0..e732d69e39 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackageImports(module=nodenext).trace.json @@ -1,7 +1,7 @@ ======== Resolving module '#cjs' from '/.src/index.ts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Using 'imports' subpath '#cjs' with target './index.cjs'. File name '/.src/index.cjs' has a '.cjs' extension - stripping it. File '/.src/index.cts' exists - use it as a name resolution result. @@ -25,7 +25,7 @@ File '/.src/index.ts' exists - use it as a name resolution result. ======== Resolving module '#cjs' from '/.src/index.cts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/package.json'. +File '/.src/package.json' exists according to earlier cached lookups. Using 'imports' subpath '#cjs' with target './index.cjs'. File name '/.src/index.cjs' has a '.cjs' extension - stripping it. File '/.src/index.cts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json index 4ee363b110..df9bceab10 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/node_modules/inner/package.json'. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. File '/.src/node_modules/inner/index.cts' does not exist. @@ -41,10 +41,10 @@ Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/nod ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/node_modules/inner/package.json'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -54,7 +54,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -64,8 +64,8 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -75,7 +75,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -85,7 +85,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -95,8 +95,8 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -106,7 +106,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -116,7 +116,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -126,8 +126,8 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -140,7 +140,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -153,7 +153,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -166,21 +166,21 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/package.json'. +File '/.src/package.json' exists according to earlier cached lookups. Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -193,7 +193,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -206,8 +206,8 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json index 4ee363b110..df9bceab10 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=node18).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/node_modules/inner/package.json'. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. File '/.src/node_modules/inner/index.cts' does not exist. @@ -41,10 +41,10 @@ Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/nod ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/node_modules/inner/package.json'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -54,7 +54,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -64,8 +64,8 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -75,7 +75,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -85,7 +85,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -95,8 +95,8 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -106,7 +106,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -116,7 +116,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -126,8 +126,8 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -140,7 +140,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -153,7 +153,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -166,21 +166,21 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== Module resolution kind is not specified, using 'Node16'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/package.json'. +File '/.src/package.json' exists according to earlier cached lookups. Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -193,7 +193,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -206,8 +206,8 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json index 07a1a40899..f537658d65 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json @@ -1,10 +1,10 @@ ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.ts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in ESM mode with conditions 'import', 'types', 'node'. -File '/.src/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/package.json'. Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/.src/node_modules/inner/package.json'. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. File '/.src/node_modules/inner/index.cts' does not exist. @@ -41,10 +41,10 @@ Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/nod ======== Resolving module 'inner/cjs/index.cjs' from '/.src/node_modules/inner/index.d.cts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/node_modules/inner/package.json'. +File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -54,7 +54,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -64,8 +64,8 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -75,7 +75,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -85,7 +85,7 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -95,8 +95,8 @@ Resolving in ESM mode with conditions 'import', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -106,7 +106,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -116,7 +116,7 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -126,8 +126,8 @@ Resolving in CJS mode with conditions 'require', 'types', 'node'. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== @@ -140,7 +140,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -153,7 +153,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -166,21 +166,21 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== ======== Resolving module 'inner/cjs/index.cjs' from '/.src/index.cts'. ======== Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. -Found 'package.json' at '/.src/package.json'. +File '/.src/package.json' exists according to earlier cached lookups. Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'. File name '/.src/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it. -File '/.src/node_modules/inner/index.cts' does not exist. +File '/.src/node_modules/inner/index.cts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.cts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.cts', result '/.src/node_modules/inner/index.d.cts'. ======== Module name 'inner/cjs/index.cjs' was successfully resolved to '/.src/node_modules/inner/index.d.cts'. ======== @@ -193,7 +193,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'. File name '/.src/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it. -File '/.src/node_modules/inner/index.mts' does not exist. +File '/.src/node_modules/inner/index.mts' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.mts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.mts', result '/.src/node_modules/inner/index.d.mts'. ======== Module name 'inner/mjs/index.mjs' was successfully resolved to '/.src/node_modules/inner/index.d.mts'. ======== @@ -206,8 +206,8 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/.src/node_modules/inner/package.json' exists according to earlier cached lookups. Using 'exports' subpath './js/*.js' with target './index.js'. File name '/.src/node_modules/inner/index.js' has a '.js' extension - stripping it. -File '/.src/node_modules/inner/index.ts' does not exist. -File '/.src/node_modules/inner/index.tsx' does not exist. +File '/.src/node_modules/inner/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/inner/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/inner/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/.src/node_modules/inner/index.d.ts', result '/.src/node_modules/inner/index.d.ts'. ======== Module name 'inner/js/index.js' was successfully resolved to '/.src/node_modules/inner/index.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json index fb59dd4cab..4fa3ad201f 100644 --- a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json @@ -50,9 +50,9 @@ File '/node_modules/bar/rab.tsx' does not exist. File '/node_modules/bar/rab.d.ts' does not exist. Loading module as file / folder, candidate module location '/node_modules/bar/rab.js', target file types: TypeScript, Declaration. File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. -File '/node_modules/bar/rab.ts' does not exist. -File '/node_modules/bar/rab.tsx' does not exist. -File '/node_modules/bar/rab.d.ts' does not exist. +File '/node_modules/bar/rab.ts' does not exist according to earlier cached lookups. +File '/node_modules/bar/rab.tsx' does not exist according to earlier cached lookups. +File '/node_modules/bar/rab.d.ts' does not exist according to earlier cached lookups. File '/node_modules/bar/rab.js.ts' does not exist. File '/node_modules/bar/rab.js.tsx' does not exist. File '/node_modules/bar/rab.js.d.ts' does not exist. diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json index 6c10883493..f0e0c469cc 100644 --- a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json @@ -57,7 +57,7 @@ File '/node_modules/bar/index.d.mts' does not exist. Failed to resolve under condition 'import'. Saw non-matching condition 'require'. Exiting conditional exports. -File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/@types/bar/package.json'. Entering conditional exports. Saw non-matching condition 'require'. Exiting conditional exports. @@ -90,16 +90,16 @@ File '/node_modules/bar/index.tsx' does not exist. File '/node_modules/bar/index.d.ts' does not exist. Loading module as file / folder, candidate module location '/node_modules/bar/index.js', target file types: TypeScript, Declaration. File name '/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/node_modules/bar/index.ts' does not exist. -File '/node_modules/bar/index.tsx' does not exist. -File '/node_modules/bar/index.d.ts' does not exist. +File '/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. File '/node_modules/bar/index.js.ts' does not exist. File '/node_modules/bar/index.js.tsx' does not exist. File '/node_modules/bar/index.js.d.ts' does not exist. Directory '/node_modules/bar/index.js' does not exist, skipping all lookups in it. -File '/node_modules/bar/index.ts' does not exist. -File '/node_modules/bar/index.tsx' does not exist. -File '/node_modules/bar/index.d.ts' does not exist. +File '/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/node_modules/@types/bar.d.ts' does not exist. 'package.json' does not have a 'typings' field. @@ -111,7 +111,7 @@ Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_mod ======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/node_modules/@types/bar/package.json'. +File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json index b045c091db..2f7582aa51 100644 --- a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json @@ -53,7 +53,7 @@ File '/node_modules/bar/index.d.mts' does not exist. Failed to resolve under condition 'import'. Saw non-matching condition 'require'. Exiting conditional exports. -File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/@types/bar/package.json'. Entering conditional exports. Saw non-matching condition 'require'. Exiting conditional exports. @@ -83,9 +83,9 @@ File '/node_modules/bar/index.tsx' does not exist. File '/node_modules/bar/index.d.ts' does not exist. Loading module as file / folder, candidate module location '/node_modules/bar/index.js', target file types: TypeScript, Declaration. File name '/node_modules/bar/index.js' has a '.js' extension - stripping it. -File '/node_modules/bar/index.ts' does not exist. -File '/node_modules/bar/index.tsx' does not exist. -File '/node_modules/bar/index.d.ts' does not exist. +File '/node_modules/bar/index.ts' does not exist according to earlier cached lookups. +File '/node_modules/bar/index.tsx' does not exist according to earlier cached lookups. +File '/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. File '/node_modules/bar/index.js.ts' does not exist. File '/node_modules/bar/index.js.tsx' does not exist. File '/node_modules/bar/index.js.d.ts' does not exist. @@ -100,7 +100,7 @@ Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_mod ======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ======== Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'. Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/node_modules/@types/bar/package.json'. +File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json index 9999e1b66b..7e9217d7fe 100644 --- a/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json +++ b/testdata/baselines/reference/submodule/conformance/selfNameModuleAugmentation.trace.json @@ -1,8 +1,8 @@ ======== Resolving module 'acorn-walk' from '/node_modules/acorn-walk/dist/walk.d.ts'. ======== Explicitly specified module resolution kind: 'Bundler'. Resolving in CJS mode with conditions 'import', 'types'. -File '/node_modules/acorn-walk/dist/package.json' does not exist according to earlier cached lookups. -File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups. +File '/node_modules/acorn-walk/dist/package.json' does not exist. +Found 'package.json' at '/node_modules/acorn-walk/package.json'. Entering conditional exports. Matched 'exports' condition 'import'. Using 'exports' subpath '.' with target './dist/walk.mjs'. @@ -28,20 +28,20 @@ Resolving in CJS mode with conditions 'import', 'types'. File '/package.json' does not exist. Loading module 'acorn-walk' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. -Found 'package.json' at '/node_modules/acorn-walk/package.json'. +File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups. Entering conditional exports. Matched 'exports' condition 'import'. Using 'exports' subpath '.' with target './dist/walk.mjs'. File name '/node_modules/acorn-walk/dist/walk.mjs' has a '.mjs' extension - stripping it. -File '/node_modules/acorn-walk/dist/walk.mts' does not exist. -File '/node_modules/acorn-walk/dist/walk.d.mts' does not exist. +File '/node_modules/acorn-walk/dist/walk.mts' does not exist according to earlier cached lookups. +File '/node_modules/acorn-walk/dist/walk.d.mts' does not exist according to earlier cached lookups. Failed to resolve under condition 'import'. Saw non-matching condition 'require'. Matched 'exports' condition 'default'. Using 'exports' subpath '.' with target './dist/walk.js'. File name '/node_modules/acorn-walk/dist/walk.js' has a '.js' extension - stripping it. -File '/node_modules/acorn-walk/dist/walk.ts' does not exist. -File '/node_modules/acorn-walk/dist/walk.tsx' does not exist. +File '/node_modules/acorn-walk/dist/walk.ts' does not exist according to earlier cached lookups. +File '/node_modules/acorn-walk/dist/walk.tsx' does not exist according to earlier cached lookups. File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolved under condition 'default'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index dd74c5c922..78ef59fd94 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -50,8 +50,8 @@ File '/.src/node_modules/ext/package.json' exists according to earlier cached lo Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/index', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/.src/node_modules/ext/ts3.1/index.ts' does not exist. -File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist. +File '/.src/node_modules/ext/ts3.1/index.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/ext/ts3.1/index.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/ext/ts3.1/index.d.ts' exists - use it as a name resolution result. ======== Module name '../' was successfully resolved to '/.src/node_modules/ext/ts3.1/index.d.ts'. ======== ======== Resolving module '../other' from '/.src/node_modules/ext/ts3.1/other.d.ts'. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index 3095a1857b..d81c64bd97 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -41,8 +41,8 @@ Resolving real path for '/.src/node_modules/ext/other.d.ts', result '/.src/node_ Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/other', target file types: TypeScript, JavaScript, Declaration, JSON. -File '/.src/node_modules/ext/other.ts' does not exist. -File '/.src/node_modules/ext/other.tsx' does not exist. +File '/.src/node_modules/ext/other.ts' does not exist according to earlier cached lookups. +File '/.src/node_modules/ext/other.tsx' does not exist according to earlier cached lookups. File '/.src/node_modules/ext/other.d.ts' exists - use it as a name resolution result. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'peerDependencies' field. diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json index 0febc68e1d..4960bf5610 100644 --- a/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup1.trace.json @@ -1,12 +1,12 @@ ======== Resolving type reference directive 'jquery', containing file '/a.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. +File '/node_modules/@types/jquery/package.json' does not exist. File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== ======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -File '/node_modules/@types/jquery/package.json' does not exist. +File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups. File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'. ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ======== diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json index 100c208ad4..f078b79073 100644 --- a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json @@ -7,7 +7,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/node_modules/jquery.ts' does not exist. File '/node_modules/jquery.tsx' does not exist. File '/node_modules/jquery.d.ts' does not exist. -File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/@types/jquery/package.json'. File '/node_modules/@types/jquery.d.ts' does not exist. 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. @@ -22,7 +22,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/node_modules/kquery.ts' does not exist. File '/node_modules/kquery.tsx' does not exist. File '/node_modules/kquery.d.ts' does not exist. -File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/@types/kquery/package.json'. File '/node_modules/@types/kquery.d.ts' does not exist. 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. @@ -40,7 +40,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/node_modules/lquery.ts' does not exist. File '/node_modules/lquery.tsx' does not exist. File '/node_modules/lquery.d.ts' does not exist. -File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/@types/lquery/package.json'. File '/node_modules/@types/lquery.d.ts' does not exist. 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. @@ -56,7 +56,7 @@ Searching all ancestor node_modules directories for preferred extensions: TypeSc File '/node_modules/mquery.ts' does not exist. File '/node_modules/mquery.tsx' does not exist. File '/node_modules/mquery.d.ts' does not exist. -File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/node_modules/@types/mquery/package.json'. File '/node_modules/@types/mquery.d.ts' does not exist. 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. @@ -69,7 +69,7 @@ Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result ' ======== Module name 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx'. ======== ======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -Found 'package.json' at '/node_modules/@types/jquery/package.json'. +File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. @@ -77,18 +77,18 @@ Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node ======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts', primary: true. ======== ======== Resolving type reference directive 'kquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -Found 'package.json' at '/node_modules/@types/kquery/package.json'. +File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. -File '/node_modules/@types/kquery/kquery.ts' does not exist. -File '/node_modules/@types/kquery/kquery.tsx' does not exist. +File '/node_modules/@types/kquery/kquery.ts' does not exist according to earlier cached lookups. +File '/node_modules/@types/kquery/kquery.tsx' does not exist according to earlier cached lookups. File '/node_modules/@types/kquery/kquery.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'. ======== Type reference directive 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts', primary: true. ======== ======== Resolving type reference directive 'lquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -Found 'package.json' at '/node_modules/@types/lquery/package.json'. +File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. @@ -97,14 +97,14 @@ Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_m ======== Type reference directive 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts', primary: true. ======== ======== Resolving type reference directive 'mquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ======== Resolving with primary search path '/node_modules/@types'. -Found 'package.json' at '/node_modules/@types/mquery/package.json'. +File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups. 'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. -File '/node_modules/@types/mquery/mquery.ts' does not exist. -File '/node_modules/@types/mquery/mquery.tsx' does not exist. -File '/node_modules/@types/mquery/mquery.d.ts' does not exist. -File '/node_modules/@types/mquery/mquery/index.ts' does not exist. +File '/node_modules/@types/mquery/mquery.ts' does not exist according to earlier cached lookups. +File '/node_modules/@types/mquery/mquery.tsx' does not exist according to earlier cached lookups. +File '/node_modules/@types/mquery/mquery.d.ts' does not exist according to earlier cached lookups. +File '/node_modules/@types/mquery/mquery/index.ts' does not exist according to earlier cached lookups. File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'. ======== Type reference directive 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx', primary: true. ======== From 5284b05197b54d7e63e2962e766d95a4b1142be0 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 12 Aug 2025 01:05:55 -0700 Subject: [PATCH 10/12] More concurrency and race issues in baselining fixing --- internal/testutil/harnessutil/harnessutil.go | 30 ++++++++++++++++--- .../reactJsxReactResolvedNodeNext.trace.json | 2 ++ ...eactJsxReactResolvedNodeNextEsm.trace.json | 2 ++ .../library-reference-10.trace.json | 1 + .../library-reference-2.trace.json | 1 + ...cksTypesVersions(module=node16).trace.json | 1 + ...cksTypesVersions(module=node18).trace.json | 1 + ...sTypesVersions(module=nodenext).trace.json | 1 + ...stic1(moduleresolution=bundler).trace.json | 1 + ...ostic1(moduleresolution=node16).trace.json | 1 + .../typesVersions.ambientModules.trace.json | 8 +++++ .../typesVersions.multiFile.trace.json | 3 ++ ...VersionsDeclarationEmit.ambient.trace.json | 8 +++++ ...rsionsDeclarationEmit.multiFile.trace.json | 3 ++ ...it.multiFileBackReferenceToSelf.trace.json | 5 ++++ ...ultiFileBackReferenceToUnmapped.trace.json | 3 ++ .../conformance/typingsLookup4.trace.json | 4 +++ 17 files changed, 71 insertions(+), 4 deletions(-) diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index 804a18e137..f7faccf6d0 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -516,10 +516,12 @@ func (h *cachedCompilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast } type tracer struct { - fs vfs.FS - currentDirectory string - packageJsonCache map[tspath.Path]bool - builder strings.Builder + fs vfs.FS + currentDirectory string + packageJsonCache map[tspath.Path]bool + builder strings.Builder + specifiTypesVersionMessage bool + noTypesVersionMessage bool } func (t *tracer) trace(msg string) { @@ -527,6 +529,26 @@ func (t *tracer) trace(msg string) { } func (t *tracer) sanitizeTrace(msg string) string { + if msg == "'package.json' has a 'typesVersions' field with version-specific path mappings." { + t.specifiTypesVersionMessage = true + t.noTypesVersionMessage = false + return msg + } + if msg == "'package.json' does not have a 'typesVersions' field." { + t.noTypesVersionMessage = true + t.specifiTypesVersionMessage = false + return msg + } + if strings.HasPrefix(msg, "'package.json' has a 'typesVersions' entry '") && !t.specifiTypesVersionMessage { + fmt.Fprintln(&t.builder, "'package.json' has a 'typesVersions' field with version-specific path mappings.") + } + if (msg == "'package.json' does not have a 'typings' field." || + strings.HasPrefix(msg, "'package.json' has 'typings' field '")) && + !t.noTypesVersionMessage { + fmt.Fprintln(&t.builder, "'package.json' does not have a 'typesVersions' field.") + } + t.noTypesVersionMessage = false + t.specifiTypesVersionMessage = false // Version if str := strings.Replace(msg, "'"+core.Version()+"'", "'"+FakeTSVersion+"'", 1); str != msg { return str diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json index e48fc0d57a..14a26ccc20 100644 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json @@ -15,6 +15,7 @@ Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. @@ -24,6 +25,7 @@ Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json index 8f8e0c42d4..634bee3663 100644 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNextEsm.trace.json @@ -16,6 +16,7 @@ Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. @@ -25,6 +26,7 @@ Module resolution kind is not specified, using 'NodeNext'. Resolving in CJS mode with conditions 'require', 'types', 'node'. Loading module as file / folder, candidate module location '/.src/node_modules/@types/react/', target file types: TypeScript, JavaScript, Declaration. File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'. File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json index 7505c150df..e3ca88376f 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-10.trace.json @@ -2,6 +2,7 @@ Resolving with primary search path '/foo/types'. File '/foo/types/jquery.d.ts' does not exist. Found 'package.json' at '/foo/types/jquery/package.json'. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'jquery.d.ts' that references '/foo/types/jquery/jquery.d.ts'. File '/foo/types/jquery/jquery.d.ts' exists - use it as a name resolution result. Resolving real path for '/foo/types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json index a870adccd3..ae273cf190 100644 --- a/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json +++ b/testdata/baselines/reference/submodule/conformance/library-reference-2.trace.json @@ -2,6 +2,7 @@ Resolving with primary search path '/types'. File '/types/jquery.d.ts' does not exist. Found 'package.json' at '/types/jquery/package.json'. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'. File '/types/jquery/jquery.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json index 003eace205..b5f76c4a82 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json @@ -91,6 +91,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/just-types-versions/package.json'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json index 003eace205..b5f76c4a82 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=node18).trace.json @@ -91,6 +91,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/just-types-versions/package.json'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json index 104b10ff02..486d3aa41d 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json @@ -91,6 +91,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'just-types-versions/foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/node_modules/just-types-versions/package.json'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '*' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'foo'. Module name 'foo', matched pattern 'foo'. Trying substitution './types/foo.d.ts', candidate module location: './types/foo.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json index f0e0c469cc..35250020b7 100644 --- a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json @@ -102,6 +102,7 @@ File '/node_modules/bar/index.tsx' does not exist according to earlier cached lo File '/node_modules/bar/index.d.ts' does not exist according to earlier cached lookups. File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. File '/node_modules/@types/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json index 2f7582aa51..f1fbfdcd57 100644 --- a/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json +++ b/testdata/baselines/reference/submodule/conformance/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json @@ -91,6 +91,7 @@ File '/node_modules/bar/index.js.tsx' does not exist. File '/node_modules/bar/index.js.d.ts' does not exist. Directory '/node_modules/bar/index.js' does not exist, skipping all lookups in it. File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'. File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json index 7d8e95d040..71bcc73856 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json @@ -10,8 +10,10 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -30,12 +32,14 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -43,6 +47,7 @@ Loading module as file / folder, candidate module location '/.src/node_modules/e File '/.src/node_modules/ext/other.ts' does not exist. File '/.src/node_modules/ext/other.tsx' does not exist. File '/.src/node_modules/ext/other.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -52,17 +57,20 @@ Directory '/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.js' does not exist. File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. File '/.src/node_modules/ext/other.js' does not exist. File '/.src/node_modules/ext/other.jsx' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json index bd96e2c533..ca04de554b 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json @@ -10,8 +10,10 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -30,6 +32,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json index 7d8e95d040..71bcc73856 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json @@ -10,8 +10,10 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -30,12 +32,14 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.ts' does not exist. File '/.src/node_modules/ext/ts3.1/other.tsx' does not exist. File '/.src/node_modules/ext/ts3.1/other.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -43,6 +47,7 @@ Loading module as file / folder, candidate module location '/.src/node_modules/e File '/.src/node_modules/ext/other.ts' does not exist. File '/.src/node_modules/ext/other.tsx' does not exist. File '/.src/node_modules/ext/other.d.ts' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -52,17 +57,20 @@ Directory '/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. File '/.src/node_modules/ext/ts3.1/other.js' does not exist. File '/.src/node_modules/ext/ts3.1/other.jsx' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/ts3.1/other/ts3.1/index', target file types: JavaScript, JSON. File '/.src/node_modules/ext/other.js' does not exist. File '/.src/node_modules/ext/other.jsx' does not exist. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json index bd96e2c533..ca04de554b 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json @@ -10,8 +10,10 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -30,6 +32,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index 78ef59fd94..92064baf91 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -10,8 +10,10 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -30,6 +32,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. Module name 'other', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/other'. @@ -44,8 +47,10 @@ Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, JavaScript, Declaration, JSON. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index d81c64bd97..71ebde6c5a 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -10,8 +10,10 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern 'index'. Trying substitution 'ts3.1/index', candidate module location: 'ts3.1/index'. @@ -30,6 +32,7 @@ File '/package.json' does not exist according to earlier cached lookups. Loading module 'ext/other' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'other'. File '/.src/node_modules/ext/other.ts' does not exist. File '/.src/node_modules/ext/other.tsx' does not exist. diff --git a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json index f078b79073..908679d09e 100644 --- a/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typingsLookup4.trace.json @@ -9,6 +9,7 @@ File '/node_modules/jquery.tsx' does not exist. File '/node_modules/jquery.d.ts' does not exist. Found 'package.json' at '/node_modules/@types/jquery/package.json'. File '/node_modules/@types/jquery.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'. File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result. Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'. @@ -24,6 +25,7 @@ File '/node_modules/kquery.tsx' does not exist. File '/node_modules/kquery.d.ts' does not exist. Found 'package.json' at '/node_modules/@types/kquery/package.json'. File '/node_modules/@types/kquery.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'. Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration. File '/node_modules/@types/kquery/kquery.ts' does not exist. @@ -42,6 +44,7 @@ File '/node_modules/lquery.tsx' does not exist. File '/node_modules/lquery.d.ts' does not exist. Found 'package.json' at '/node_modules/@types/lquery/package.json'. File '/node_modules/@types/lquery.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'. Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration. File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result. @@ -58,6 +61,7 @@ File '/node_modules/mquery.tsx' does not exist. File '/node_modules/mquery.d.ts' does not exist. Found 'package.json' at '/node_modules/@types/mquery/package.json'. File '/node_modules/@types/mquery.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'. Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration. File '/node_modules/@types/mquery/mquery.ts' does not exist. From 0556f6fc7f894febe44be1e897ffd4c41931bc75 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 12 Aug 2025 09:49:45 -0700 Subject: [PATCH 11/12] Fix typo --- internal/testutil/harnessutil/harnessutil.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index f7faccf6d0..a8f7cba757 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -516,12 +516,12 @@ func (h *cachedCompilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast } type tracer struct { - fs vfs.FS - currentDirectory string - packageJsonCache map[tspath.Path]bool - builder strings.Builder - specifiTypesVersionMessage bool - noTypesVersionMessage bool + fs vfs.FS + currentDirectory string + packageJsonCache map[tspath.Path]bool + builder strings.Builder + specificTypesVersionMessage bool + noTypesVersionMessage bool } func (t *tracer) trace(msg string) { @@ -530,16 +530,16 @@ func (t *tracer) trace(msg string) { func (t *tracer) sanitizeTrace(msg string) string { if msg == "'package.json' has a 'typesVersions' field with version-specific path mappings." { - t.specifiTypesVersionMessage = true + t.specificTypesVersionMessage = true t.noTypesVersionMessage = false return msg } if msg == "'package.json' does not have a 'typesVersions' field." { t.noTypesVersionMessage = true - t.specifiTypesVersionMessage = false + t.specificTypesVersionMessage = false return msg } - if strings.HasPrefix(msg, "'package.json' has a 'typesVersions' entry '") && !t.specifiTypesVersionMessage { + if strings.HasPrefix(msg, "'package.json' has a 'typesVersions' entry '") && !t.specificTypesVersionMessage { fmt.Fprintln(&t.builder, "'package.json' has a 'typesVersions' field with version-specific path mappings.") } if (msg == "'package.json' does not have a 'typings' field." || @@ -548,7 +548,7 @@ func (t *tracer) sanitizeTrace(msg string) string { fmt.Fprintln(&t.builder, "'package.json' does not have a 'typesVersions' field.") } t.noTypesVersionMessage = false - t.specifiTypesVersionMessage = false + t.specificTypesVersionMessage = false // Version if str := strings.Replace(msg, "'"+core.Version()+"'", "'"+FakeTSVersion+"'", 1); str != msg { return str From 1cd1f77d3f16166fad5f43aceea1b17791165a24 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 12 Aug 2025 10:43:03 -0700 Subject: [PATCH 12/12] concurrent typesversion tracing fix --- internal/packagejson/cache.go | 34 ++++++++----------- internal/testutil/harnessutil/harnessutil.go | 30 +++------------- ...lutionWithExtensions_unexpected.trace.json | 1 + ...utionWithExtensions_unexpected2.trace.json | 1 + ...on_packageJson_yesAtPackageRoot.trace.json | 3 ++ ...AtPackageRoot_fakeScopedPackage.trace.json | 3 ++ .../reactJsxReactResolvedNodeNext.trace.json | 1 + .../conformance/packageJsonMain.trace.json | 3 ++ .../packageJsonMain_isNonRecursive.trace.json | 1 + .../typesVersions.ambientModules.trace.json | 2 -- .../typesVersions.multiFile.trace.json | 2 -- ...VersionsDeclarationEmit.ambient.trace.json | 2 -- ...rsionsDeclarationEmit.multiFile.trace.json | 2 -- ...it.multiFileBackReferenceToSelf.trace.json | 5 +-- ...ultiFileBackReferenceToUnmapped.trace.json | 2 -- 15 files changed, 32 insertions(+), 60 deletions(-) diff --git a/internal/packagejson/cache.go b/internal/packagejson/cache.go index 63af1cc703..0736a260a4 100644 --- a/internal/packagejson/cache.go +++ b/internal/packagejson/cache.go @@ -14,42 +14,33 @@ var typeScriptVersion = semver.MustParse(core.Version()) type PackageJson struct { Fields - versionPaths VersionPaths - once sync.Once + versionPaths VersionPaths + versionTraces []string + once sync.Once } func (p *PackageJson) GetVersionPaths(trace func(string)) VersionPaths { p.once.Do(func() { if p.Fields.TypesVersions.Type == JSONValueTypeNotPresent { - if trace != nil { - trace(diagnostics.X_package_json_does_not_have_a_0_field.Format("typesVersions")) - } + p.versionTraces = append(p.versionTraces, diagnostics.X_package_json_does_not_have_a_0_field.Format("typesVersions")) return } if p.Fields.TypesVersions.Type != JSONValueTypeObject { - if trace != nil { - trace(diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2.Format("typesVersions", "object", p.Fields.TypesVersions.Type.String())) - } + p.versionTraces = append(p.versionTraces, diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2.Format("typesVersions", "object", p.Fields.TypesVersions.Type.String())) return } - if trace != nil { - trace(diagnostics.X_package_json_has_a_typesVersions_field_with_version_specific_path_mappings.Format("typesVersions")) - } + p.versionTraces = append(p.versionTraces, diagnostics.X_package_json_has_a_typesVersions_field_with_version_specific_path_mappings.Format("typesVersions")) for key, value := range p.Fields.TypesVersions.AsObject().Entries() { keyRange, ok := semver.TryParseVersionRange(key) if !ok { - if trace != nil { - trace(diagnostics.X_package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range.Format(key)) - } + p.versionTraces = append(p.versionTraces, diagnostics.X_package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range.Format(key)) continue } if keyRange.Test(&typeScriptVersion) { if value.Type != JSONValueTypeObject { - if trace != nil { - trace(diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2.Format("typesVersions['"+key+"']", "object", value.Type.String())) - } + p.versionTraces = append(p.versionTraces, diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2.Format("typesVersions['"+key+"']", "object", value.Type.String())) return } p.versionPaths = VersionPaths{ @@ -60,10 +51,13 @@ func (p *PackageJson) GetVersionPaths(trace func(string)) VersionPaths { } } - if trace != nil { - trace(diagnostics.X_package_json_does_not_have_a_typesVersions_entry_that_matches_version_0.Format(core.VersionMajorMinor())) - } + p.versionTraces = append(p.versionTraces, diagnostics.X_package_json_does_not_have_a_typesVersions_entry_that_matches_version_0.Format(core.VersionMajorMinor())) }) + if trace != nil { + for _, msg := range p.versionTraces { + trace(msg) + } + } return p.versionPaths } diff --git a/internal/testutil/harnessutil/harnessutil.go b/internal/testutil/harnessutil/harnessutil.go index a8f7cba757..804a18e137 100644 --- a/internal/testutil/harnessutil/harnessutil.go +++ b/internal/testutil/harnessutil/harnessutil.go @@ -516,12 +516,10 @@ func (h *cachedCompilerHost) GetSourceFile(opts ast.SourceFileParseOptions) *ast } type tracer struct { - fs vfs.FS - currentDirectory string - packageJsonCache map[tspath.Path]bool - builder strings.Builder - specificTypesVersionMessage bool - noTypesVersionMessage bool + fs vfs.FS + currentDirectory string + packageJsonCache map[tspath.Path]bool + builder strings.Builder } func (t *tracer) trace(msg string) { @@ -529,26 +527,6 @@ func (t *tracer) trace(msg string) { } func (t *tracer) sanitizeTrace(msg string) string { - if msg == "'package.json' has a 'typesVersions' field with version-specific path mappings." { - t.specificTypesVersionMessage = true - t.noTypesVersionMessage = false - return msg - } - if msg == "'package.json' does not have a 'typesVersions' field." { - t.noTypesVersionMessage = true - t.specificTypesVersionMessage = false - return msg - } - if strings.HasPrefix(msg, "'package.json' has a 'typesVersions' entry '") && !t.specificTypesVersionMessage { - fmt.Fprintln(&t.builder, "'package.json' has a 'typesVersions' field with version-specific path mappings.") - } - if (msg == "'package.json' does not have a 'typings' field." || - strings.HasPrefix(msg, "'package.json' has 'typings' field '")) && - !t.noTypesVersionMessage { - fmt.Fprintln(&t.builder, "'package.json' does not have a 'typesVersions' field.") - } - t.noTypesVersionMessage = false - t.specificTypesVersionMessage = false // Version if str := strings.Replace(msg, "'"+core.Version()+"'", "'"+FakeTSVersion+"'", 1); str != msg { return str diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json index 053a9067f3..89908812ee 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected.trace.json @@ -33,6 +33,7 @@ File '/node_modules/normalize.css/package.json' exists according to earlier cach File name '/node_modules/normalize.css' has a '.css' extension - stripping it. File '/node_modules/normalize.css.js' does not exist. File '/node_modules/normalize.css.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'. File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it. Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript, JSON. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json index de17d5d416..56b4a07830 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_unexpected2.trace.json @@ -32,6 +32,7 @@ Searching all ancestor node_modules directories for fallback extensions: JavaScr File '/node_modules/foo/package.json' exists according to earlier cached lookups. File '/node_modules/foo.js' does not exist. File '/node_modules/foo.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'main' field. File '/node_modules/foo/index.js' does not exist. File '/node_modules/foo/index.jsx' does not exist. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json index ce3bed3bad..f47943dc9e 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot.trace.json @@ -10,6 +10,7 @@ Found 'package.json' at '/node_modules/foo/package.json'. File '/node_modules/foo/bar.ts' does not exist. File '/node_modules/foo/bar.tsx' does not exist. File '/node_modules/foo/bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. File '/node_modules/foo/bar/index.ts' does not exist. File '/node_modules/foo/bar/index.tsx' does not exist. File '/node_modules/foo/bar/index.d.ts' does not exist. @@ -17,8 +18,10 @@ Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. File '/node_modules/foo/bar/package.json' does not exist according to earlier cached lookups. File '/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. File '/node_modules/foo/bar.js' does not exist. File '/node_modules/foo/bar.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. File '/node_modules/foo/bar/index.js' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolving real path for '/node_modules/foo/bar/index.js', result '/node_modules/foo/bar/index.js'. diff --git a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json index 555d66b09b..6dd76efa8d 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json +++ b/testdata/baselines/reference/submodule/compiler/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json @@ -10,6 +10,7 @@ Found 'package.json' at '/node_modules/foo/package.json'. File '/node_modules/foo/@bar.ts' does not exist. File '/node_modules/foo/@bar.tsx' does not exist. File '/node_modules/foo/@bar.d.ts' does not exist. +'package.json' does not have a 'typesVersions' field. File '/node_modules/foo/@bar/index.ts' does not exist. File '/node_modules/foo/@bar/index.tsx' does not exist. File '/node_modules/foo/@bar/index.d.ts' does not exist. @@ -17,8 +18,10 @@ Directory '/node_modules/@types' does not exist, skipping all lookups in it. Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON. File '/node_modules/foo/@bar/package.json' does not exist according to earlier cached lookups. File '/node_modules/foo/package.json' exists according to earlier cached lookups. +'package.json' does not have a 'typesVersions' field. File '/node_modules/foo/@bar.js' does not exist. File '/node_modules/foo/@bar.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. File '/node_modules/foo/@bar/index.js' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolving real path for '/node_modules/foo/@bar/index.js', result '/node_modules/foo/@bar/index.js'. diff --git a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json index 14a26ccc20..590f425b3a 100644 --- a/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json +++ b/testdata/baselines/reference/submodule/compiler/reactJsxReactResolvedNodeNext.trace.json @@ -6,6 +6,7 @@ File '/package.json' does not exist. Loading module 'react/jsx-runtime' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration. Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Found 'package.json' at '/.src/node_modules/@types/react/package.json'. +'package.json' does not have a 'typesVersions' field. File '/.src/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result. 'package.json' does not have a 'peerDependencies' field. Resolving real path for '/.src/node_modules/@types/react/jsx-runtime.d.ts', result '/.src/node_modules/@types/react/jsx-runtime.d.ts'. diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json index 4fa3ad201f..84d6b17bc5 100644 --- a/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain.trace.json @@ -25,6 +25,7 @@ Searching all ancestor node_modules directories for fallback extensions: JavaScr File '/node_modules/foo/package.json' exists according to earlier cached lookups. File '/node_modules/foo.js' does not exist. File '/node_modules/foo.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. File '/node_modules/foo/oof.js' exists - use it as a name resolution result. @@ -65,6 +66,7 @@ Searching all ancestor node_modules directories for fallback extensions: JavaScr File '/node_modules/bar/package.json' exists according to earlier cached lookups. File '/node_modules/bar.js' does not exist. File '/node_modules/bar.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'. File name '/node_modules/bar/rab.js' has a '.js' extension - stripping it. File '/node_modules/bar/rab.js' exists - use it as a name resolution result. @@ -99,6 +101,7 @@ Searching all ancestor node_modules directories for fallback extensions: JavaScr File '/node_modules/baz/package.json' exists according to earlier cached lookups. File '/node_modules/baz.js' does not exist. File '/node_modules/baz.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'. Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript, JSON. File '/node_modules/baz/zab.js' does not exist. diff --git a/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json index 654fc3fe5c..ec14bf327d 100644 --- a/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json +++ b/testdata/baselines/reference/submodule/conformance/packageJsonMain_isNonRecursive.trace.json @@ -27,6 +27,7 @@ Searching all ancestor node_modules directories for fallback extensions: JavaScr File '/node_modules/foo/package.json' exists according to earlier cached lookups. File '/node_modules/foo.js' does not exist. File '/node_modules/foo.jsx' does not exist. +'package.json' does not have a 'typesVersions' field. 'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'. Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript, JSON. File '/node_modules/foo/oof.js' does not exist. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json index 71bcc73856..3880078ee4 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.ambientModules.trace.json @@ -10,10 +10,8 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json index ca04de554b..27fef0f583 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersions.multiFile.trace.json @@ -10,10 +10,8 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json index 71bcc73856..3880078ee4 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.ambient.trace.json @@ -10,10 +10,8 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json index ca04de554b..27fef0f583 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFile.trace.json @@ -10,10 +10,8 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index 92064baf91..11f0d60f1a 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -10,10 +10,8 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. @@ -47,10 +45,9 @@ Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. Loading module as file / folder, candidate module location '/.src/node_modules/ext/', target file types: TypeScript, JavaScript, Declaration, JSON. File '/.src/node_modules/ext/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. +'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern '*'. Trying substitution 'ts3.1/*', candidate module location: 'ts3.1/index'. diff --git a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index 71ebde6c5a..740918ca76 100644 --- a/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/testdata/baselines/reference/submodule/conformance/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -10,10 +10,8 @@ File '/.src/node_modules/ext.ts' does not exist. File '/.src/node_modules/ext.tsx' does not exist. File '/.src/node_modules/ext.d.ts' does not exist. 'package.json' has a 'typesVersions' field with version-specific path mappings. -'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index' that references '/.src/node_modules/ext/index'. -'package.json' has a 'typesVersions' field with version-specific path mappings. 'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version 'FakeTSVersion', looking for a pattern to match module name 'index'. Module name 'index', matched pattern 'index'. Trying substitution 'ts3.1/index', candidate module location: 'ts3.1/index'.