diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 62f26cf014cc9..e3a6098e35b7b 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -5414,6 +5414,22 @@ "category": "Message", "code": 6401 }, + "Resolving in {0} mode with conditions {1}.": { + "category": "Message", + "code": 6402 + }, + "Matched '{0}' condition '{1}'.": { + "category": "Message", + "code": 6403 + }, + "Using '{0}' subpath '{1}' with target '{2}'.": { + "category": "Message", + "code": 6404 + }, + "Saw non-matching condition '{0}'.": { + "category": "Message", + "code": 6405 + }, "The expected type comes from property '{0}' which is declared here on type '{1}'": { "category": "Message", diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 222d1dee63f4d..f30c2a63a6ca9 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1372,6 +1372,10 @@ namespace ts { reportDiagnostic: diag => void diagnostics.push(diag), }; + if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= ModuleResolutionKind.Node16 && getEmitModuleResolutionKind(compilerOptions) <= ModuleResolutionKind.NodeNext) { + trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & NodeResolutionFeatures.EsmMode ? "ESM" : "CJS", conditions.map(c => `'${c}'`).join(", ")); + } + const result = forEach(extensions, ext => tryResolve(ext)); return createResolvedModuleWithFailedLookupLocations( result?.value?.resolved, @@ -2032,7 +2036,7 @@ namespace ts { } if (mainExport) { const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, subpath, scope, /*isImports*/ false); - return loadModuleFromTargetImportOrExport(mainExport, "", /*pattern*/ false); + return loadModuleFromTargetImportOrExport(mainExport, "", /*pattern*/ false, "."); } } else if (allKeysStartWithDot(scope.contents.packageJsonContent.exports as MapLike)) { @@ -2111,7 +2115,7 @@ namespace ts { if (!endsWith(moduleName, directorySeparator) && moduleName.indexOf("*") === -1 && hasProperty(lookupTable, moduleName)) { const target = (lookupTable as {[idx: string]: unknown})[moduleName]; - return loadModuleFromTargetImportOrExport(target, /*subpath*/ "", /*pattern*/ false); + return loadModuleFromTargetImportOrExport(target, /*subpath*/ "", /*pattern*/ false, moduleName); } const expandingKeys = sort(filter(getOwnKeys(lookupTable as MapLike), k => k.indexOf("*") !== -1 || endsWith(k, "/")), comparePatternKeys); for (const potentialTarget of expandingKeys) { @@ -2119,17 +2123,17 @@ namespace ts { const target = (lookupTable as {[idx: string]: unknown})[potentialTarget]; const starPos = potentialTarget.indexOf("*"); const subpath = moduleName.substring(potentialTarget.substring(0, starPos).length, moduleName.length - (potentialTarget.length - 1 - starPos)); - return loadModuleFromTargetImportOrExport(target, subpath, /*pattern*/ true); + return loadModuleFromTargetImportOrExport(target, subpath, /*pattern*/ true, potentialTarget); } else if (endsWith(potentialTarget, "*") && startsWith(moduleName, potentialTarget.substring(0, potentialTarget.length - 1))) { const target = (lookupTable as {[idx: string]: unknown})[potentialTarget]; const subpath = moduleName.substring(potentialTarget.length - 1); - return loadModuleFromTargetImportOrExport(target, subpath, /*pattern*/ true); + return loadModuleFromTargetImportOrExport(target, subpath, /*pattern*/ true, potentialTarget); } else if (startsWith(moduleName, potentialTarget)) { const target = (lookupTable as {[idx: string]: unknown})[potentialTarget]; const subpath = moduleName.substring(potentialTarget.length); - return loadModuleFromTargetImportOrExport(target, subpath, /*pattern*/ false); + return loadModuleFromTargetImportOrExport(target, subpath, /*pattern*/ false, potentialTarget); } } @@ -2146,7 +2150,7 @@ namespace ts { */ function getLoadModuleFromTargetImportOrExport(extensions: Extensions, state: ModuleResolutionState, cache: ModuleResolutionCache | undefined, redirectedReference: ResolvedProjectReference | undefined, moduleName: string, scope: PackageJsonInfo, isImports: boolean) { return loadModuleFromTargetImportOrExport; - function loadModuleFromTargetImportOrExport(target: unknown, subpath: string, pattern: boolean): SearchResult | undefined { + function loadModuleFromTargetImportOrExport(target: unknown, subpath: string, pattern: boolean, key: string): SearchResult | undefined { if (typeof target === "string") { if (!pattern && subpath.length > 0 && !endsWith(target, "/")) { if (state.traceEnabled) { @@ -2157,6 +2161,8 @@ namespace ts { if (!startsWith(target, "./")) { if (isImports && !startsWith(target, "../") && !startsWith(target, "/") && !isRootedDiskPath(target)) { const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath; + traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup); + traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/"); const result = nodeModuleNameResolverWorker(state.features, combinedLookup, scope.packageDirectory + "/", state.compilerOptions, state.host, cache, [extensions], redirectedReference); return toSearchResult(result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId, originalPath: result.resolvedModule.originalPath } : undefined); } @@ -2183,6 +2189,14 @@ namespace ts { } return toSearchResult(/*value*/ undefined); } + + if (state.traceEnabled) { + trace(state.host, + Diagnostics.Using_0_subpath_1_with_target_2, + isImports ? "imports" : "exports", + key, + pattern ? target.replace(/\*/g, subpath) : target + subpath); + } const finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath); const inputLink = tryLoadInputFileForPath(finalPath, subpath, combinePaths(scope.packageDirectory, "package.json"), isImports); if (inputLink) return inputLink; @@ -2190,14 +2204,18 @@ namespace ts { } else if (typeof target === "object" && target !== null) { // eslint-disable-line no-null/no-null if (!Array.isArray(target)) { - for (const key of getOwnKeys(target as MapLike)) { - if (key === "default" || state.conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(state.conditions, key)) { - const subTarget = (target as MapLike)[key]; - const result = loadModuleFromTargetImportOrExport(subTarget, subpath, pattern); + for (const condition of getOwnKeys(target as MapLike)) { + if (condition === "default" || state.conditions.indexOf(condition) >= 0 || isApplicableVersionedTypesKey(state.conditions, condition)) { + traceIfEnabled(state, Diagnostics.Matched_0_condition_1, isImports ? "imports" : "exports", condition); + const subTarget = (target as MapLike)[condition]; + const result = loadModuleFromTargetImportOrExport(subTarget, subpath, pattern, key); if (result) { return result; } } + else { + traceIfEnabled(state, Diagnostics.Saw_non_matching_condition_0, condition); + } } return undefined; } @@ -2209,7 +2227,7 @@ namespace ts { return toSearchResult(/*value*/ undefined); } for (const elem of target) { - const result = loadModuleFromTargetImportOrExport(elem, subpath, pattern); + const result = loadModuleFromTargetImportOrExport(elem, subpath, pattern, key); if (result) { return result; } @@ -2685,4 +2703,10 @@ namespace ts { function toSearchResult(value: T | undefined): SearchResult { return value !== undefined ? { value } : undefined; } + + function traceIfEnabled(state: ModuleResolutionState, diagnostic: DiagnosticMessage, ...args: string[]) { + if (state.traceEnabled) { + trace(state.host, diagnostic, ...args); + } + } } diff --git a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json index 64a53eefcc0c7..c6764326f5e55 100644 --- a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json +++ b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node16).trace.json @@ -7,9 +7,11 @@ "'package.json' has a 'typesVersions' field with version-specific path mappings.", "======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ========", "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "File '/package.json' does not exist.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "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.", @@ -19,12 +21,14 @@ "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type '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' exist - 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 module 'exports-and-types-versions/nope' from '/main.cts'. ========", "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", @@ -37,34 +41,44 @@ "======== 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 'node', 'require', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'require', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'require', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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.", "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 type 'JavaScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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 'node', 'require', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'just-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups.", @@ -76,9 +90,11 @@ "======== 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 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "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.", @@ -88,12 +104,14 @@ "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type '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' exist - 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 module 'exports-and-types-versions/nope' from '/main.mts'. ========", "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", @@ -106,34 +124,44 @@ "======== 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 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'import', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'import', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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.", "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 type 'JavaScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'just-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups.", diff --git a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json index 0469b9d6ee7c7..a7c19c8a9ae12 100644 --- a/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json +++ b/tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json @@ -7,9 +7,11 @@ "'package.json' has a 'typesVersions' field with version-specific path mappings.", "======== Resolving module 'exports-and-types-versions/foo' from '/main.cts'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "File '/package.json' does not exist.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "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.", @@ -19,12 +21,14 @@ "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type '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' exist - 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 module 'exports-and-types-versions/nope' from '/main.cts'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", @@ -37,34 +41,44 @@ "======== 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 'node', 'require', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'require', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'require', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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.", "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 type 'JavaScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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 'node', 'require', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'just-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups.", @@ -76,9 +90,11 @@ "======== 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 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "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.", @@ -88,12 +104,14 @@ "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/foo' from 'node_modules' folder, target file type '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' exist - 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 module 'exports-and-types-versions/nope' from '/main.mts'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/nope' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", @@ -106,34 +124,44 @@ "======== 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 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'exports-and-types-versions/yep' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'import', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "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' exist - 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/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'. ========", "======== 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 'node', 'import', 'types'.", "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 type 'TypeScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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.", "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 type 'JavaScript'.", "File '/node_modules/exports-and-types-versions/package.json' exists according to earlier cached lookups.", + "Saw non-matching condition 'types@<4'.", "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 'node', 'import', 'types'.", "File '/package.json' does not exist according to earlier cached lookups.", "Loading module 'just-types-versions/foo' from 'node_modules' folder, target file type 'TypeScript'.", "File '/node_modules/just-types-versions/package.json' exists according to earlier cached lookups.", diff --git a/tests/baselines/reference/nodeModulesPackageImports(module=node16).trace.json b/tests/baselines/reference/nodeModulesPackageImports(module=node16).trace.json new file mode 100644 index 0000000000000..bf3afd3d6ad9f --- /dev/null +++ b/tests/baselines/reference/nodeModulesPackageImports(module=node16).trace.json @@ -0,0 +1,199 @@ +[ + "Found 'package.json' at 'tests/cases/conformance/node/package.json'.", + "'package.json' does not have a 'typesVersions' field.", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.cts', result 'tests/cases/conformance/node/index.cts'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.mts', result 'tests/cases/conformance/node/index.mts'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#type' with target './index.js'.", + "File name 'tests/cases/conformance/node/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/index.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.ts', result 'tests/cases/conformance/node/index.ts'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.cts', result 'tests/cases/conformance/node/index.cts'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.mts', result 'tests/cases/conformance/node/index.mts'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#type' with target './index.js'.", + "File name 'tests/cases/conformance/node/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/index.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.ts', result 'tests/cases/conformance/node/index.ts'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#type' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#type' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Resolution for module '#cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Resolution for module '#mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.cts'. ========", + "Resolution for module '#type' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "File 'package.json' does not exist.", + "File '/package.json' does not exist.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '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/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json b/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json new file mode 100644 index 0000000000000..538157242b7a9 --- /dev/null +++ b/tests/baselines/reference/nodeModulesPackageImports(module=nodenext).trace.json @@ -0,0 +1,203 @@ +[ + "Found 'package.json' at 'tests/cases/conformance/node/package.json'.", + "'package.json' does not have a 'typesVersions' field.", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.cts', result 'tests/cases/conformance/node/index.cts'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.mts', result 'tests/cases/conformance/node/index.mts'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#type' with target './index.js'.", + "File name 'tests/cases/conformance/node/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/index.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.ts', result 'tests/cases/conformance/node/index.ts'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.cts', result 'tests/cases/conformance/node/index.cts'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/index.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.mts', result 'tests/cases/conformance/node/index.mts'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Using 'imports' subpath '#type' with target './index.js'.", + "File name 'tests/cases/conformance/node/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/index.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/index.ts', result 'tests/cases/conformance/node/index.ts'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#type' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module '#type' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "======== Resolving module '#cjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Resolution for module '#cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#cjs' was successfully resolved to 'tests/cases/conformance/node/index.cts'. ========", + "======== Resolving module '#mjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Resolution for module '#mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#mjs' was successfully resolved to 'tests/cases/conformance/node/index.mts'. ========", + "======== Resolving module '#type' from 'tests/cases/conformance/node/index.cts'. ========", + "Resolution for module '#type' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name '#type' was successfully resolved to 'tests/cases/conformance/node/index.ts'. ========", + "File 'package.json' does not exist.", + "File '/package.json' does not exist.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '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/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json new file mode 100644 index 0000000000000..6b1d472400a9e --- /dev/null +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=node16).trace.json @@ -0,0 +1,301 @@ +[ + "Found 'package.json' at 'tests/cases/conformance/node/package.json'.", + "'package.json' does not have a 'typesVersions' field.", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file type 'TypeScript'.", + "Found 'package.json' at 'tests/cases/conformance/node/node_modules/inner/package.json'.", + "'package.json' does not have a 'typesVersions' field.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/js/index.js' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'Node16'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/js/index.js' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "File 'package.json' does not exist.", + "File '/package.json' does not exist.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '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/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json new file mode 100644 index 0000000000000..cb0668334dbb7 --- /dev/null +++ b/tests/baselines/reference/nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json @@ -0,0 +1,305 @@ +[ + "Found 'package.json' at 'tests/cases/conformance/node/package.json'.", + "'package.json' does not have a 'typesVersions' field.", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file type 'TypeScript'.", + "Found 'package.json' at 'tests/cases/conformance/node/node_modules/inner/package.json'.", + "'package.json' does not have a 'typesVersions' field.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/index.ts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/js/index.js' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/index.mts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/cjs/index.cjs' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './cjs/*.cjs' with target './index.cjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.cjs' has a '.cjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.cts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.cts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.cts', result 'tests/cases/conformance/node/node_modules/inner/index.d.cts'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/mjs/index.mjs' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './mjs/*.mjs' with target './index.mjs'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.mjs' has a '.mjs' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.mts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.mts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.mts', result 'tests/cases/conformance/node/node_modules/inner/index.d.mts'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/index.cts'. ========", + "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", + "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", + "Loading module 'inner/js/index.js' from 'node_modules' folder, target file type 'TypeScript'.", + "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", + "Using 'exports' subpath './js/*.js' with target './index.js'.", + "File name 'tests/cases/conformance/node/node_modules/inner/index.js' has a '.js' extension - stripping it.", + "File 'tests/cases/conformance/node/node_modules/inner/index.ts' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.tsx' does not exist.", + "File 'tests/cases/conformance/node/node_modules/inner/index.d.ts' exist - use it as a name resolution result.", + "Resolving real path for 'tests/cases/conformance/node/node_modules/inner/index.d.ts', result 'tests/cases/conformance/node/node_modules/inner/index.d.ts'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "======== Resolving module 'inner/cjs/index.cjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Resolution for module 'inner/cjs/index.cjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/cjs/index.cjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "======== Resolving module 'inner/mjs/index.mjs' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Resolution for module 'inner/mjs/index.mjs' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/mjs/index.mjs' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.mts'. ========", + "======== Resolving module 'inner/js/index.js' from 'tests/cases/conformance/node/node_modules/inner/index.d.cts'. ========", + "Resolution for module 'inner/js/index.js' was found in cache from location 'tests/cases/conformance/node/node_modules/inner'.", + "======== Module name 'inner/js/index.js' was successfully resolved to 'tests/cases/conformance/node/node_modules/inner/index.d.ts'. ========", + "File 'package.json' does not exist.", + "File '/package.json' does not exist.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File 'package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups.", + "File '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/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json b/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json index a8678e499c969..142a02242e654 100644 --- a/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json +++ b/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json @@ -6,6 +6,7 @@ "File '/package.json' does not exist.", "======== Resolving module 'react/jsx-runtime' from 'tests/cases/compiler/file.tsx'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "File 'tests/cases/compiler/package.json' does not exist according to earlier cached lookups.", "File 'tests/cases/package.json' does not exist according to earlier cached lookups.", "File 'tests/package.json' does not exist according to earlier cached lookups.", @@ -20,6 +21,7 @@ "File 'tests/cases/compiler/node_modules/@types/react/package.json' exists according to earlier cached lookups.", "======== Resolving module './' from 'tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "Loading module as file / folder, candidate module location 'tests/cases/compiler/node_modules/@types/react/', target file type 'TypeScript'.", "File 'tests/cases/compiler/node_modules/@types/react/package.json' exists according to earlier cached lookups.", "'package.json' does not have a 'typings' field.", diff --git a/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json b/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json index 99dcbbddc5a08..626b13823e2f0 100644 --- a/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json +++ b/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json @@ -3,10 +3,12 @@ "'package.json' does not have a 'typesVersions' field.", "======== Resolving module 'react/jsx-runtime' from 'tests/cases/compiler/file.tsx'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in ESM mode with conditions 'node', 'import', 'types'.", "File 'tests/cases/compiler/package.json' exists according to earlier cached lookups.", "Loading module 'react/jsx-runtime' from 'node_modules' folder, target file type 'TypeScript'.", "Found 'package.json' at 'tests/cases/compiler/node_modules/@types/react/package.json'.", "'package.json' does not have a 'typesVersions' field.", + "Using 'exports' subpath './*' with target './jsx-runtime.js'.", "File name 'tests/cases/compiler/node_modules/@types/react/jsx-runtime.js' has a '.js' extension - stripping it.", "File 'tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts' exist - use it as a name resolution result.", "Resolving real path for 'tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts', result 'tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts'.", @@ -14,6 +16,7 @@ "File 'tests/cases/compiler/node_modules/@types/react/package.json' exists according to earlier cached lookups.", "======== Resolving module './' from 'tests/cases/compiler/node_modules/@types/react/jsx-runtime.d.ts'. ========", "Module resolution kind is not specified, using 'NodeNext'.", + "Resolving in CJS mode with conditions 'node', 'require', 'types'.", "Loading module as file / folder, candidate module location 'tests/cases/compiler/node_modules/@types/react/', target file type 'TypeScript'.", "File 'tests/cases/compiler/node_modules/@types/react/package.json' exists according to earlier cached lookups.", "'package.json' does not have a 'typings' field.", diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js index a72de20d9b813..a37c261597d1c 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js @@ -53,6 +53,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package 'package.json' does not have a 'typesVersions' field. ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/packages/pkg2/const.cjs' has a '.cjs' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/const.cts' exist - use it as a name resolution result. @@ -68,6 +69,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package 'package.json' does not have a 'typesVersions' field. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. @@ -91,6 +93,7 @@ File '/user/username/projects/myproject/packages/pkg2/package.json' exists accor ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist. @@ -277,6 +280,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package 'package.json' does not have a 'typesVersions' field. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. @@ -307,6 +311,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist. @@ -394,6 +399,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package 'package.json' does not have a 'typesVersions' field. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. @@ -418,6 +424,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist. @@ -500,6 +507,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package 'package.json' does not have a 'typesVersions' field. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. @@ -530,6 +538,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg2/package ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.ts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/packages/pkg2/build/const.cjs' has a '.cjs' extension - stripping it. File '/user/username/projects/myproject/packages/pkg2/build/const.cts' does not exist. @@ -619,6 +628,7 @@ Output:: ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/index.cts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.cjs', target file type 'TypeScript'. File '/user/username/projects/myproject/packages/pkg2/const.cjs.ts' does not exist. File '/user/username/projects/myproject/packages/pkg2/const.cjs.tsx' does not exist. @@ -637,6 +647,7 @@ Found 'package.json' at '/user/username/projects/myproject/packages/pkg1/package 'package.json' does not have a 'typesVersions' field. ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. File '/user/username/projects/myproject/packages/pkg1/package.json' exists according to earlier cached lookups. Loading module 'pkg2' from 'node_modules' folder, target file type 'TypeScript'. Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it. @@ -663,6 +674,7 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui ======== Resolving module './const.cjs' from '/user/username/projects/myproject/packages/pkg2/build/index.d.cts'. ======== Using compiler options of project reference redirect '/user/username/projects/myproject/packages/pkg2/tsconfig.json'. Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/build/const.cjs', target file type 'TypeScript'. File '/user/username/projects/myproject/packages/pkg2/build/const.cjs.ts' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.cjs.tsx' does not exist. diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js index b164c2ee08bbf..a97683f6d0825 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/package-json-is-looked-up-for-file.js @@ -39,8 +39,10 @@ File '/Users/name/projects/lib-boilerplate/test/package.json' does not exist. File '/Users/name/projects/lib-boilerplate/package.json' exists according to earlier cached lookups. ======== Resolving module 'lib-boilerplate' from '/Users/name/projects/lib-boilerplate/test/basic.spec.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. File '/Users/name/projects/lib-boilerplate/test/package.json' does not exist according to earlier cached lookups. File '/Users/name/projects/lib-boilerplate/package.json' exists according to earlier cached lookups. +Using 'exports' subpath '.' with target './src/index.ts'. File '/Users/name/projects/lib-boilerplate/src/index.ts' exist - use it as a name resolution result. Resolving real path for '/Users/name/projects/lib-boilerplate/src/index.ts', result '/Users/name/projects/lib-boilerplate/src/index.ts'. ======== Module name 'lib-boilerplate' was successfully resolved to '/Users/name/projects/lib-boilerplate/src/index.ts' with Package ID 'lib-boilerplate/src/index.ts@0.0.2'. ======== diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js index 8b72ee0569589..7892c943271bd 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/self-name-package-reference.js @@ -34,7 +34,9 @@ Found 'package.json' at '/Users/name/projects/web/package.json'. 'package.json' does not have a 'typesVersions' field. ======== Resolving module '@this/package' from '/Users/name/projects/web/index.ts'. ======== Module resolution kind is not specified, using 'NodeNext'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. File '/Users/name/projects/web/package.json' exists according to earlier cached lookups. +Using 'exports' subpath '.' with target './dist/index.js'. File '/Users/name/projects/web/index.ts' exist - use it as a name resolution result. Resolving real path for '/Users/name/projects/web/index.ts', result '/Users/name/projects/web/index.ts'. ======== Module name '@this/package' was successfully resolved to '/Users/name/projects/web/index.ts'. ======== diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js index 489113e3d6b32..02b0f7e41d964 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js @@ -41,6 +41,7 @@ File '/Users/package.json' does not exist. File '/package.json' does not exist. ======== Resolving module 'yargs' from '/Users/name/projects/web/src/bin.ts'. ======== Explicitly specified module resolution kind: 'NodeNext'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. File '/Users/name/projects/web/src/package.json' does not exist according to earlier cached lookups. File '/Users/name/projects/web/package.json' does not exist according to earlier cached lookups. File '/Users/name/projects/package.json' does not exist according to earlier cached lookups. @@ -54,6 +55,10 @@ File '/Users/name/projects/web/node_modules/yargs.tsx' does not exist. File '/Users/name/projects/web/node_modules/yargs.d.ts' does not exist. Found 'package.json' at '/Users/name/projects/web/node_modules/@types/yargs/package.json'. 'package.json' does not have a 'typesVersions' field. +Matched 'exports' condition 'types'. +Saw non-matching condition 'import'. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './index.d.ts'. File '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts' exist - use it as a name resolution result. Resolving real path for '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts', result '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts'. ======== Module name 'yargs' was successfully resolved to '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts' with Package ID 'yargs/index.d.ts@17.0.12'. ======== diff --git a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js index 72ef90eca8fca..cef9d6c238b5e 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -34,7 +34,10 @@ Found 'package.json' at '/user/username/projects/myproject/package.json'. 'package.json' does not have a 'typesVersions' field. ======== Resolving module '@this/package' from '/user/username/projects/myproject/index.ts'. ======== Explicitly specified module resolution kind: 'NodeNext'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Matched 'exports' condition 'default'. +Using 'exports' subpath '.' with target './dist/index.js'. File '/user/username/projects/myproject/index.ts' exist - use it as a name resolution result. Resolving real path for '/user/username/projects/myproject/index.ts', result '/user/username/projects/myproject/index.ts'. ======== Module name '@this/package' was successfully resolved to '/user/username/projects/myproject/index.ts'. ======== diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index 2f9a5264abbac..14cf44aff96ae 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -45,6 +45,7 @@ Found 'package.json' at '/user/username/projects/myproject/package.json'. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileA.ts 250 undefined Source file ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. File '/user/username/projects/myproject/src/fileB.mts' does not exist. @@ -158,6 +159,7 @@ File '/user/username/projects/myproject/src/package.json' does not exist accordi File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. @@ -269,6 +271,7 @@ File '/user/username/projects/myproject/src/package.json' does not exist accordi File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. File '/user/username/projects/myproject/src/fileB.mts' does not exist. @@ -376,6 +379,7 @@ File '/user/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. diff --git a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js index c0aab2d6e28fc..8144af275245e 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/package-json-file-is-edited.js @@ -45,6 +45,7 @@ Found 'package.json' at '/user/username/projects/myproject/package.json'. FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/fileA.ts 250 undefined Source file ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. @@ -169,6 +170,7 @@ File '/user/username/projects/myproject/src/package.json' does not exist accordi File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. File '/user/username/projects/myproject/src/fileB.mts' does not exist. @@ -271,6 +273,7 @@ File '/user/username/projects/myproject/src/package.json' does not exist accordi File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. @@ -474,6 +477,7 @@ File '/user/username/projects/myproject/src/package.json' does not exist accordi File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in ESM mode with conditions 'node', 'import', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. File '/user/username/projects/myproject/src/fileB.mts' does not exist. @@ -582,6 +586,7 @@ File '/user/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Module resolution kind is not specified, using 'Node16'. +Resolving in CJS mode with conditions 'node', 'require', 'types'. Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index e52562ddae34b..79b1043dc47be 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -73,23 +73,24 @@ Info 13 [00:00:40.000] Found 'package.json' at '/user/username/projects/myproj Info 14 [00:00:41.000] 'package.json' does not have a 'typesVersions' field. Info 15 [00:00:42.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Info 16 [00:00:43.000] Module resolution kind is not specified, using 'Node16'. -Info 17 [00:00:44.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 18 [00:00:45.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 19 [00:00:46.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 20 [00:00:47.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 21 [00:00:48.000] File '/a/lib/package.json' does not exist. -Info 22 [00:00:49.000] File '/a/package.json' does not exist. -Info 23 [00:00:50.000] File '/package.json' does not exist. -Info 24 [00:00:51.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info -Info 25 [00:00:52.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 26 [00:00:53.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 27 [00:00:54.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 28 [00:00:55.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 29 [00:00:56.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 30 [00:00:57.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 31 [00:00:58.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 32 [00:00:59.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 33 [00:01:00.000] Files (3) +Info 17 [00:00:44.000] Resolving in ESM mode with conditions 'node', 'import', 'types'. +Info 18 [00:00:45.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 19 [00:00:46.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 20 [00:00:47.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 21 [00:00:48.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 22 [00:00:49.000] File '/a/lib/package.json' does not exist. +Info 23 [00:00:50.000] File '/a/package.json' does not exist. +Info 24 [00:00:51.000] File '/package.json' does not exist. +Info 25 [00:00:52.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info +Info 26 [00:00:53.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 27 [00:00:54.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 28 [00:00:55.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 29 [00:00:56.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 30 [00:00:57.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 31 [00:00:58.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 32 [00:00:59.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info 33 [00:01:00.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 34 [00:01:01.000] Files (3) /a/lib/lib.es2016.full.d.ts /user/username/projects/myproject/src/fileB.mts /user/username/projects/myproject/src/fileA.ts @@ -104,21 +105,21 @@ Info 33 [00:01:00.000] Files (3) Matched by default include pattern '**/*' File is ECMAScript module because '../package.json' has field "type" with value "module" -Info 34 [00:01:01.000] ----------------------------------------------- -Info 35 [00:01:02.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 36 [00:01:03.000] event: - {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json"}} +Info 35 [00:01:02.000] ----------------------------------------------- +Info 36 [00:01:03.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Info 37 [00:01:04.000] event: - {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":68,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es2016","module":"node16","outDir":"","traceResolution":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}} + {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json"}} Info 38 [00:01:05.000] event: + {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":68,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es2016","module":"node16","outDir":"","traceResolution":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}} +Info 39 [00:01:06.000] event: {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/projects/myproject/src/fileA.ts","configFile":"/user/username/projects/myproject/src/tsconfig.json","diagnostics":[]}} -Info 39 [00:01:06.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 39 [00:01:07.000] Files (3) +Info 40 [00:01:07.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 40 [00:01:08.000] Files (3) -Info 39 [00:01:08.000] ----------------------------------------------- -Info 39 [00:01:09.000] Open files: -Info 39 [00:01:10.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 39 [00:01:11.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 40 [00:01:09.000] ----------------------------------------------- +Info 40 [00:01:10.000] Open files: +Info 40 [00:01:11.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 40 [00:01:12.000] Projects: /user/username/projects/myproject/src/tsconfig.json After request PolledWatches:: @@ -143,16 +144,16 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 39 [00:01:12.000] response: +Info 40 [00:01:13.000] response: { "responseRequired": false } -Info 40 [00:01:13.000] Modify package json file to remove type module -Info 41 [00:01:17.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 42 [00:01:18.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 43 [00:01:19.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 44 [00:01:20.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 45 [00:01:21.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 41 [00:01:14.000] Modify package json file to remove type module +Info 42 [00:01:18.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 43 [00:01:19.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 44 [00:01:20.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 45 [00:01:21.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 46 [00:01:22.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Before running timeout callbacks //// [/user/username/projects/myproject/package.json] {"name":"app","version":"1.0.0"} @@ -180,9 +181,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 46 [00:01:22.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 47 [00:01:23.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 48 [00:01:24.000] Scheduled: *ensureProjectForOpenFiles* +Info 47 [00:01:23.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 48 [00:01:24.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 49 [00:01:25.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -231,51 +232,52 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 49 [00:01:25.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 50 [00:01:26.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 51 [00:01:27.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 52 [00:01:28.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 53 [00:01:29.000] File '/package.json' does not exist according to earlier cached lookups. -Info 54 [00:01:30.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 55 [00:01:31.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. -Info 56 [00:01:32.000] 'package.json' does not have a 'typesVersions' field. -Info 57 [00:01:33.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 58 [00:01:34.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. -Info 59 [00:01:35.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== -Info 60 [00:01:36.000] Module resolution kind is not specified, using 'Node16'. -Info 61 [00:01:37.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 62 [00:01:38.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. -Info 63 [00:01:39.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. -Info 64 [00:01:40.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. -Info 65 [00:01:41.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 66 [00:01:42.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 67 [00:01:43.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 68 [00:01:44.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 69 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 70 [00:01:46.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 71 [00:01:47.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 72 [00:01:48.000] File '/package.json' does not exist according to earlier cached lookups. -Info 73 [00:01:49.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 74 [00:01:50.000] Different program with same set of files -Info 75 [00:01:51.000] Running: *ensureProjectForOpenFiles* -Info 76 [00:01:52.000] Before ensureProjectForOpenFiles: -Info 77 [00:01:53.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 77 [00:01:54.000] Files (3) - -Info 77 [00:01:55.000] ----------------------------------------------- -Info 77 [00:01:56.000] Open files: -Info 77 [00:01:57.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 77 [00:01:58.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 77 [00:01:59.000] After ensureProjectForOpenFiles: -Info 78 [00:02:00.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 78 [00:02:01.000] Files (3) - -Info 78 [00:02:02.000] ----------------------------------------------- -Info 78 [00:02:03.000] Open files: -Info 78 [00:02:04.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 78 [00:02:05.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 78 [00:02:06.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 79 [00:02:07.000] event: +Info 50 [00:01:26.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 51 [00:01:27.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 52 [00:01:28.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 53 [00:01:29.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 54 [00:01:30.000] File '/package.json' does not exist according to earlier cached lookups. +Info 55 [00:01:31.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 56 [00:01:32.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. +Info 57 [00:01:33.000] 'package.json' does not have a 'typesVersions' field. +Info 58 [00:01:34.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 59 [00:01:35.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Info 60 [00:01:36.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Info 61 [00:01:37.000] Module resolution kind is not specified, using 'Node16'. +Info 62 [00:01:38.000] Resolving in CJS mode with conditions 'node', 'require', 'types'. +Info 63 [00:01:39.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 64 [00:01:40.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +Info 65 [00:01:41.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +Info 66 [00:01:42.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +Info 67 [00:01:43.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 68 [00:01:44.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 69 [00:01:45.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 70 [00:01:46.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 71 [00:01:47.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 72 [00:01:48.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 73 [00:01:49.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 74 [00:01:50.000] File '/package.json' does not exist according to earlier cached lookups. +Info 75 [00:01:51.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 76 [00:01:52.000] Different program with same set of files +Info 77 [00:01:53.000] Running: *ensureProjectForOpenFiles* +Info 78 [00:01:54.000] Before ensureProjectForOpenFiles: +Info 79 [00:01:55.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 79 [00:01:56.000] Files (3) + +Info 79 [00:01:57.000] ----------------------------------------------- +Info 79 [00:01:58.000] Open files: +Info 79 [00:01:59.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 79 [00:02:00.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 79 [00:02:01.000] After ensureProjectForOpenFiles: +Info 80 [00:02:02.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 80 [00:02:03.000] Files (3) + +Info 80 [00:02:04.000] ----------------------------------------------- +Info 80 [00:02:05.000] Open files: +Info 80 [00:02:06.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 80 [00:02:07.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 80 [00:02:08.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 81 [00:02:09.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -303,7 +305,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 80 [00:02:08.000] request: +Info 82 [00:02:10.000] request: { "command": "geterr", "arguments": { @@ -367,7 +369,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 81 [00:02:09.000] response: +Info 83 [00:02:11.000] response: { "responseRequired": false } @@ -397,7 +399,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 82 [00:02:10.000] event: +Info 84 [00:02:12.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -451,7 +453,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 83 [00:02:11.000] event: +Info 85 [00:02:13.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -505,9 +507,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 84 [00:02:12.000] event: +Info 86 [00:02:14.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 85 [00:02:13.000] event: +Info 87 [00:02:15.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":1}} Before running immediate callbacks and checking length (1) @@ -535,12 +537,12 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 86 [00:02:14.000] Modify package json file to add type module -Info 87 [00:02:18.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 88 [00:02:19.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 89 [00:02:20.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 90 [00:02:21.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 91 [00:02:22.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 88 [00:02:16.000] Modify package json file to add type module +Info 89 [00:02:20.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 90 [00:02:21.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 91 [00:02:22.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 92 [00:02:23.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 93 [00:02:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Before running timeout callbacks //// [/user/username/projects/myproject/package.json] {"name":"app","version":"1.0.0","type":"module"} @@ -570,9 +572,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 92 [00:02:23.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 93 [00:02:24.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 94 [00:02:25.000] Scheduled: *ensureProjectForOpenFiles* +Info 94 [00:02:25.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 95 [00:02:26.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 96 [00:02:27.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -625,48 +627,49 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 95 [00:02:26.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 96 [00:02:27.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 97 [00:02:28.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 98 [00:02:29.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 99 [00:02:30.000] File '/package.json' does not exist according to earlier cached lookups. -Info 100 [00:02:31.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 101 [00:02:32.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. -Info 102 [00:02:33.000] 'package.json' does not have a 'typesVersions' field. -Info 103 [00:02:34.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 104 [00:02:35.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. -Info 105 [00:02:36.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== -Info 106 [00:02:37.000] Module resolution kind is not specified, using 'Node16'. -Info 107 [00:02:38.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 108 [00:02:39.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 109 [00:02:40.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 110 [00:02:41.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 111 [00:02:42.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 112 [00:02:43.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 113 [00:02:44.000] File '/package.json' does not exist according to earlier cached lookups. -Info 114 [00:02:45.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 115 [00:02:46.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 116 [00:02:47.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 117 [00:02:48.000] Different program with same set of files -Info 118 [00:02:49.000] Running: *ensureProjectForOpenFiles* -Info 119 [00:02:50.000] Before ensureProjectForOpenFiles: -Info 120 [00:02:51.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 120 [00:02:52.000] Files (3) - -Info 120 [00:02:53.000] ----------------------------------------------- -Info 120 [00:02:54.000] Open files: -Info 120 [00:02:55.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 120 [00:02:56.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 120 [00:02:57.000] After ensureProjectForOpenFiles: -Info 121 [00:02:58.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 121 [00:02:59.000] Files (3) - -Info 121 [00:03:00.000] ----------------------------------------------- -Info 121 [00:03:01.000] Open files: -Info 121 [00:03:02.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 121 [00:03:03.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 121 [00:03:04.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 122 [00:03:05.000] event: +Info 97 [00:02:28.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 98 [00:02:29.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 99 [00:02:30.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 100 [00:02:31.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 101 [00:02:32.000] File '/package.json' does not exist according to earlier cached lookups. +Info 102 [00:02:33.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 103 [00:02:34.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. +Info 104 [00:02:35.000] 'package.json' does not have a 'typesVersions' field. +Info 105 [00:02:36.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 106 [00:02:37.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Info 107 [00:02:38.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Info 108 [00:02:39.000] Module resolution kind is not specified, using 'Node16'. +Info 109 [00:02:40.000] Resolving in ESM mode with conditions 'node', 'import', 'types'. +Info 110 [00:02:41.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 111 [00:02:42.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 112 [00:02:43.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 113 [00:02:44.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 114 [00:02:45.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 115 [00:02:46.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 116 [00:02:47.000] File '/package.json' does not exist according to earlier cached lookups. +Info 117 [00:02:48.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 118 [00:02:49.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 119 [00:02:50.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 120 [00:02:51.000] Different program with same set of files +Info 121 [00:02:52.000] Running: *ensureProjectForOpenFiles* +Info 122 [00:02:53.000] Before ensureProjectForOpenFiles: +Info 123 [00:02:54.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 123 [00:02:55.000] Files (3) + +Info 123 [00:02:56.000] ----------------------------------------------- +Info 123 [00:02:57.000] Open files: +Info 123 [00:02:58.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 123 [00:02:59.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 123 [00:03:00.000] After ensureProjectForOpenFiles: +Info 124 [00:03:01.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 124 [00:03:02.000] Files (3) + +Info 124 [00:03:03.000] ----------------------------------------------- +Info 124 [00:03:04.000] Open files: +Info 124 [00:03:05.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 124 [00:03:06.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 124 [00:03:07.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 125 [00:03:08.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -692,7 +695,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 123 [00:03:06.000] request: +Info 126 [00:03:09.000] request: { "command": "geterr", "arguments": { @@ -752,7 +755,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 124 [00:03:07.000] response: +Info 127 [00:03:10.000] response: { "responseRequired": false } @@ -780,7 +783,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 125 [00:03:08.000] event: +Info 128 [00:03:11.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -830,7 +833,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 126 [00:03:09.000] event: +Info 129 [00:03:12.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} Before running immediate callbacks and checking length (1) @@ -880,9 +883,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 127 [00:03:10.000] event: +Info 130 [00:03:13.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 128 [00:03:11.000] event: +Info 131 [00:03:14.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}} Before running immediate callbacks and checking length (1) @@ -908,13 +911,13 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 129 [00:03:12.000] Delete package.json -Info 130 [00:03:14.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 131 [00:03:15.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 132 [00:03:16.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 133 [00:03:17.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 134 [00:03:18.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 135 [00:03:19.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 132 [00:03:15.000] Delete package.json +Info 133 [00:03:17.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 134 [00:03:18.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 135 [00:03:19.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 136 [00:03:20.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 137 [00:03:21.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 138 [00:03:22.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Before running timeout callbacks //// [/user/username/projects/myproject/package.json] deleted @@ -940,9 +943,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 136 [00:03:20.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 137 [00:03:21.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 138 [00:03:22.000] Scheduled: *ensureProjectForOpenFiles* +Info 139 [00:03:23.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 140 [00:03:24.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 141 [00:03:25.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -991,48 +994,48 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 139 [00:03:23.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 140 [00:03:24.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 141 [00:03:25.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 142 [00:03:26.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 143 [00:03:27.000] File '/package.json' does not exist according to earlier cached lookups. -Info 144 [00:03:28.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 145 [00:03:29.000] File '/user/username/projects/myproject/package.json' does not exist. -Info 146 [00:03:30.000] File '/user/username/projects/package.json' does not exist. -Info 147 [00:03:31.000] File '/user/username/package.json' does not exist. -Info 148 [00:03:32.000] File '/user/package.json' does not exist. -Info 149 [00:03:33.000] File '/package.json' does not exist according to earlier cached lookups. -Info 150 [00:03:34.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 151 [00:03:35.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -Info 152 [00:03:36.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -Info 153 [00:03:37.000] File '/user/username/package.json' does not exist according to earlier cached lookups. -Info 154 [00:03:38.000] File '/user/package.json' does not exist according to earlier cached lookups. -Info 155 [00:03:39.000] File '/package.json' does not exist according to earlier cached lookups. -Info 156 [00:03:40.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 157 [00:03:41.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 142 [00:03:26.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 143 [00:03:27.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 144 [00:03:28.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 145 [00:03:29.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 146 [00:03:30.000] File '/package.json' does not exist according to earlier cached lookups. +Info 147 [00:03:31.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 148 [00:03:32.000] File '/user/username/projects/myproject/package.json' does not exist. +Info 149 [00:03:33.000] File '/user/username/projects/package.json' does not exist. +Info 150 [00:03:34.000] File '/user/username/package.json' does not exist. +Info 151 [00:03:35.000] File '/user/package.json' does not exist. +Info 152 [00:03:36.000] File '/package.json' does not exist according to earlier cached lookups. +Info 153 [00:03:37.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 154 [00:03:38.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info 155 [00:03:39.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info 156 [00:03:40.000] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info 157 [00:03:41.000] File '/user/package.json' does not exist according to earlier cached lookups. Info 158 [00:03:42.000] File '/package.json' does not exist according to earlier cached lookups. -Info 159 [00:03:43.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 160 [00:03:44.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 161 [00:03:45.000] Different program with same set of files -Info 162 [00:03:46.000] Running: *ensureProjectForOpenFiles* -Info 163 [00:03:47.000] Before ensureProjectForOpenFiles: -Info 164 [00:03:48.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 164 [00:03:49.000] Files (3) - -Info 164 [00:03:50.000] ----------------------------------------------- -Info 164 [00:03:51.000] Open files: -Info 164 [00:03:52.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 164 [00:03:53.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 164 [00:03:54.000] After ensureProjectForOpenFiles: -Info 165 [00:03:55.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 165 [00:03:56.000] Files (3) - -Info 165 [00:03:57.000] ----------------------------------------------- -Info 165 [00:03:58.000] Open files: -Info 165 [00:03:59.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 165 [00:04:00.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 165 [00:04:01.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 166 [00:04:02.000] event: +Info 159 [00:03:43.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 160 [00:03:44.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 161 [00:03:45.000] File '/package.json' does not exist according to earlier cached lookups. +Info 162 [00:03:46.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 163 [00:03:47.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 164 [00:03:48.000] Different program with same set of files +Info 165 [00:03:49.000] Running: *ensureProjectForOpenFiles* +Info 166 [00:03:50.000] Before ensureProjectForOpenFiles: +Info 167 [00:03:51.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 167 [00:03:52.000] Files (3) + +Info 167 [00:03:53.000] ----------------------------------------------- +Info 167 [00:03:54.000] Open files: +Info 167 [00:03:55.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 167 [00:03:56.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 167 [00:03:57.000] After ensureProjectForOpenFiles: +Info 168 [00:03:58.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 168 [00:03:59.000] Files (3) + +Info 168 [00:04:00.000] ----------------------------------------------- +Info 168 [00:04:01.000] Open files: +Info 168 [00:04:02.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 168 [00:04:03.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 168 [00:04:04.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 169 [00:04:05.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -1060,7 +1063,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 167 [00:04:03.000] request: +Info 170 [00:04:06.000] request: { "command": "geterr", "arguments": { @@ -1124,7 +1127,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 168 [00:04:04.000] response: +Info 171 [00:04:07.000] response: { "responseRequired": false } @@ -1154,7 +1157,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 169 [00:04:05.000] event: +Info 172 [00:04:08.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -1208,7 +1211,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 170 [00:04:06.000] event: +Info 173 [00:04:09.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -1262,9 +1265,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 171 [00:04:07.000] event: +Info 174 [00:04:10.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 172 [00:04:08.000] event: +Info 175 [00:04:11.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} Before running immediate callbacks and checking length (1) @@ -1292,10 +1295,10 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 173 [00:04:09.000] Modify package json file to without type module -Info 174 [00:04:12.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 175 [00:04:13.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 176 [00:04:14.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 176 [00:04:12.000] Modify package json file to without type module +Info 177 [00:04:15.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 178 [00:04:16.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 179 [00:04:17.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Before running timeout callbacks //// [/user/username/projects/myproject/package.json] {"name":"app","version":"1.0.0"} @@ -1325,9 +1328,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 177 [00:04:15.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 178 [00:04:16.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 179 [00:04:17.000] Scheduled: *ensureProjectForOpenFiles* +Info 180 [00:04:18.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 181 [00:04:19.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 182 [00:04:20.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -1380,52 +1383,53 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 180 [00:04:18.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 181 [00:04:19.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 182 [00:04:20.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 183 [00:04:21.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 184 [00:04:22.000] File '/package.json' does not exist according to earlier cached lookups. -Info 185 [00:04:23.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 186 [00:04:24.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. -Info 187 [00:04:25.000] 'package.json' does not have a 'typesVersions' field. +Info 183 [00:04:21.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 184 [00:04:22.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 185 [00:04:23.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 186 [00:04:24.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 187 [00:04:25.000] File '/package.json' does not exist according to earlier cached lookups. Info 188 [00:04:26.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 189 [00:04:27.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. -Info 190 [00:04:28.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== -Info 191 [00:04:29.000] Module resolution kind is not specified, using 'Node16'. -Info 192 [00:04:30.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 193 [00:04:31.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. -Info 194 [00:04:32.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. -Info 195 [00:04:33.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. -Info 196 [00:04:34.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 197 [00:04:35.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 198 [00:04:36.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 199 [00:04:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 200 [00:04:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 201 [00:04:39.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 202 [00:04:40.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 203 [00:04:41.000] File '/package.json' does not exist according to earlier cached lookups. -Info 204 [00:04:42.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 205 [00:04:43.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 206 [00:04:44.000] Different program with same set of files -Info 207 [00:04:45.000] Running: *ensureProjectForOpenFiles* -Info 208 [00:04:46.000] Before ensureProjectForOpenFiles: -Info 209 [00:04:47.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 209 [00:04:48.000] Files (3) - -Info 209 [00:04:49.000] ----------------------------------------------- -Info 209 [00:04:50.000] Open files: -Info 209 [00:04:51.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 209 [00:04:52.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 209 [00:04:53.000] After ensureProjectForOpenFiles: -Info 210 [00:04:54.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 210 [00:04:55.000] Files (3) - -Info 210 [00:04:56.000] ----------------------------------------------- -Info 210 [00:04:57.000] Open files: -Info 210 [00:04:58.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 210 [00:04:59.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 210 [00:05:00.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 211 [00:05:01.000] event: +Info 189 [00:04:27.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. +Info 190 [00:04:28.000] 'package.json' does not have a 'typesVersions' field. +Info 191 [00:04:29.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 192 [00:04:30.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Info 193 [00:04:31.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Info 194 [00:04:32.000] Module resolution kind is not specified, using 'Node16'. +Info 195 [00:04:33.000] Resolving in CJS mode with conditions 'node', 'require', 'types'. +Info 196 [00:04:34.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 197 [00:04:35.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +Info 198 [00:04:36.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +Info 199 [00:04:37.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +Info 200 [00:04:38.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 201 [00:04:39.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 202 [00:04:40.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 203 [00:04:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 204 [00:04:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 205 [00:04:43.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 206 [00:04:44.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 207 [00:04:45.000] File '/package.json' does not exist according to earlier cached lookups. +Info 208 [00:04:46.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 209 [00:04:47.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 210 [00:04:48.000] Different program with same set of files +Info 211 [00:04:49.000] Running: *ensureProjectForOpenFiles* +Info 212 [00:04:50.000] Before ensureProjectForOpenFiles: +Info 213 [00:04:51.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 213 [00:04:52.000] Files (3) + +Info 213 [00:04:53.000] ----------------------------------------------- +Info 213 [00:04:54.000] Open files: +Info 213 [00:04:55.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 213 [00:04:56.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 213 [00:04:57.000] After ensureProjectForOpenFiles: +Info 214 [00:04:58.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 214 [00:04:59.000] Files (3) + +Info 214 [00:05:00.000] ----------------------------------------------- +Info 214 [00:05:01.000] Open files: +Info 214 [00:05:02.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 214 [00:05:03.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 214 [00:05:04.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 215 [00:05:05.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -1453,7 +1457,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 212 [00:05:02.000] request: +Info 216 [00:05:06.000] request: { "command": "geterr", "arguments": { @@ -1517,7 +1521,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 213 [00:05:03.000] response: +Info 217 [00:05:07.000] response: { "responseRequired": false } @@ -1547,7 +1551,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 214 [00:05:04.000] event: +Info 218 [00:05:08.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -1601,7 +1605,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 215 [00:05:05.000] event: +Info 219 [00:05:09.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -1655,9 +1659,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 216 [00:05:06.000] event: +Info 220 [00:05:10.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 217 [00:05:07.000] event: +Info 221 [00:05:11.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":4}} Before running immediate callbacks and checking length (1) @@ -1685,10 +1689,10 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 218 [00:05:08.000] Delete package.json -Info 219 [00:05:10.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 220 [00:05:11.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 221 [00:05:12.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 222 [00:05:12.000] Delete package.json +Info 223 [00:05:14.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 224 [00:05:15.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 225 [00:05:16.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Before running timeout callbacks //// [/user/username/projects/myproject/package.json] deleted @@ -1716,9 +1720,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 222 [00:05:13.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 223 [00:05:14.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 224 [00:05:15.000] Scheduled: *ensureProjectForOpenFiles* +Info 226 [00:05:17.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 227 [00:05:18.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 228 [00:05:19.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -1771,49 +1775,49 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 225 [00:05:16.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 226 [00:05:17.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 227 [00:05:18.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 228 [00:05:19.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 229 [00:05:20.000] File '/package.json' does not exist according to earlier cached lookups. -Info 230 [00:05:21.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 231 [00:05:22.000] File '/user/username/projects/myproject/package.json' does not exist. -Info 232 [00:05:23.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -Info 233 [00:05:24.000] File '/user/username/package.json' does not exist according to earlier cached lookups. -Info 234 [00:05:25.000] File '/user/package.json' does not exist according to earlier cached lookups. -Info 235 [00:05:26.000] File '/package.json' does not exist according to earlier cached lookups. -Info 236 [00:05:27.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 237 [00:05:28.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -Info 238 [00:05:29.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -Info 239 [00:05:30.000] File '/user/username/package.json' does not exist according to earlier cached lookups. -Info 240 [00:05:31.000] File '/user/package.json' does not exist according to earlier cached lookups. -Info 241 [00:05:32.000] File '/package.json' does not exist according to earlier cached lookups. -Info 242 [00:05:33.000] Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. -Info 243 [00:05:34.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 244 [00:05:35.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 229 [00:05:20.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 230 [00:05:21.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 231 [00:05:22.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 232 [00:05:23.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 233 [00:05:24.000] File '/package.json' does not exist according to earlier cached lookups. +Info 234 [00:05:25.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 235 [00:05:26.000] File '/user/username/projects/myproject/package.json' does not exist. +Info 236 [00:05:27.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info 237 [00:05:28.000] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info 238 [00:05:29.000] File '/user/package.json' does not exist according to earlier cached lookups. +Info 239 [00:05:30.000] File '/package.json' does not exist according to earlier cached lookups. +Info 240 [00:05:31.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 241 [00:05:32.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info 242 [00:05:33.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info 243 [00:05:34.000] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info 244 [00:05:35.000] File '/user/package.json' does not exist according to earlier cached lookups. Info 245 [00:05:36.000] File '/package.json' does not exist according to earlier cached lookups. -Info 246 [00:05:37.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 247 [00:05:38.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 248 [00:05:39.000] Different program with same set of files -Info 249 [00:05:40.000] Running: *ensureProjectForOpenFiles* -Info 250 [00:05:41.000] Before ensureProjectForOpenFiles: -Info 251 [00:05:42.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 251 [00:05:43.000] Files (3) - -Info 251 [00:05:44.000] ----------------------------------------------- -Info 251 [00:05:45.000] Open files: -Info 251 [00:05:46.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 251 [00:05:47.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 251 [00:05:48.000] After ensureProjectForOpenFiles: -Info 252 [00:05:49.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 252 [00:05:50.000] Files (3) - -Info 252 [00:05:51.000] ----------------------------------------------- -Info 252 [00:05:52.000] Open files: -Info 252 [00:05:53.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 252 [00:05:54.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 252 [00:05:55.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 253 [00:05:56.000] event: +Info 246 [00:05:37.000] Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. +Info 247 [00:05:38.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 248 [00:05:39.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 249 [00:05:40.000] File '/package.json' does not exist according to earlier cached lookups. +Info 250 [00:05:41.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 251 [00:05:42.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 252 [00:05:43.000] Different program with same set of files +Info 253 [00:05:44.000] Running: *ensureProjectForOpenFiles* +Info 254 [00:05:45.000] Before ensureProjectForOpenFiles: +Info 255 [00:05:46.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 255 [00:05:47.000] Files (3) + +Info 255 [00:05:48.000] ----------------------------------------------- +Info 255 [00:05:49.000] Open files: +Info 255 [00:05:50.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 255 [00:05:51.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 255 [00:05:52.000] After ensureProjectForOpenFiles: +Info 256 [00:05:53.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 256 [00:05:54.000] Files (3) + +Info 256 [00:05:55.000] ----------------------------------------------- +Info 256 [00:05:56.000] Open files: +Info 256 [00:05:57.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 256 [00:05:58.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 256 [00:05:59.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 257 [00:06:00.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -1843,7 +1847,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 254 [00:05:57.000] request: +Info 258 [00:06:01.000] request: { "command": "geterr", "arguments": { @@ -1911,7 +1915,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 255 [00:05:58.000] response: +Info 259 [00:06:02.000] response: { "responseRequired": false } @@ -1943,7 +1947,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 256 [00:05:59.000] event: +Info 260 [00:06:03.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -2001,7 +2005,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 257 [00:06:00.000] event: +Info 261 [00:06:04.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -2059,9 +2063,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 258 [00:06:01.000] event: +Info 262 [00:06:05.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 259 [00:06:02.000] event: +Info 263 [00:06:06.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":5}} Before running immediate callbacks and checking length (1) diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js index c35cf9853fbfe..e5bc763d8120c 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js @@ -73,28 +73,29 @@ Info 13 [00:00:40.000] Found 'package.json' at '/user/username/projects/myproj Info 14 [00:00:41.000] 'package.json' does not have a 'typesVersions' field. Info 15 [00:00:42.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== Info 16 [00:00:43.000] Module resolution kind is not specified, using 'Node16'. -Info 17 [00:00:44.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 18 [00:00:45.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. -Info 19 [00:00:46.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. -Info 20 [00:00:47.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. -Info 21 [00:00:48.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 22 [00:00:49.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 23 [00:00:50.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 24 [00:00:51.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 25 [00:00:52.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 26 [00:00:53.000] File '/a/lib/package.json' does not exist. -Info 27 [00:00:54.000] File '/a/package.json' does not exist. -Info 28 [00:00:55.000] File '/package.json' does not exist. -Info 29 [00:00:56.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info -Info 30 [00:00:57.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 31 [00:00:58.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 32 [00:00:59.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 33 [00:01:00.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 34 [00:01:01.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 35 [00:01:02.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots -Info 36 [00:01:03.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info 37 [00:01:04.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 38 [00:01:05.000] Files (3) +Info 17 [00:00:44.000] Resolving in CJS mode with conditions 'node', 'require', 'types'. +Info 18 [00:00:45.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 19 [00:00:46.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +Info 20 [00:00:47.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +Info 21 [00:00:48.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +Info 22 [00:00:49.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 23 [00:00:50.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 24 [00:00:51.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 25 [00:00:52.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 26 [00:00:53.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 27 [00:00:54.000] File '/a/lib/package.json' does not exist. +Info 28 [00:00:55.000] File '/a/package.json' does not exist. +Info 29 [00:00:56.000] File '/package.json' does not exist. +Info 30 [00:00:57.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2016.full.d.ts 500 undefined WatchType: Closed Script info +Info 31 [00:00:58.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 32 [00:00:59.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 33 [00:01:00.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 34 [00:01:01.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 35 [00:01:02.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 36 [00:01:03.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Type roots +Info 37 [00:01:04.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info 38 [00:01:05.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 39 [00:01:06.000] Files (3) /a/lib/lib.es2016.full.d.ts /user/username/projects/myproject/src/fileB.mts /user/username/projects/myproject/src/fileA.ts @@ -109,21 +110,21 @@ Info 38 [00:01:05.000] Files (3) Matched by default include pattern '**/*' File is CommonJS module because '../package.json' does not have field "type" -Info 39 [00:01:06.000] ----------------------------------------------- -Info 40 [00:01:07.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 41 [00:01:08.000] event: - {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json"}} +Info 40 [00:01:07.000] ----------------------------------------------- +Info 41 [00:01:08.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Info 42 [00:01:09.000] event: - {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":68,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es2016","module":"node16","outDir":"","traceResolution":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}} + {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/src/tsconfig.json"}} Info 43 [00:01:10.000] event: + {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":68,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es2016","module":"node16","outDir":"","traceResolution":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}} +Info 44 [00:01:11.000] event: {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/projects/myproject/src/fileA.ts","configFile":"/user/username/projects/myproject/src/tsconfig.json","diagnostics":[]}} -Info 44 [00:01:11.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 44 [00:01:12.000] Files (3) +Info 45 [00:01:12.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 45 [00:01:13.000] Files (3) -Info 44 [00:01:13.000] ----------------------------------------------- -Info 44 [00:01:14.000] Open files: -Info 44 [00:01:15.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 44 [00:01:16.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 45 [00:01:14.000] ----------------------------------------------- +Info 45 [00:01:15.000] Open files: +Info 45 [00:01:16.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 45 [00:01:17.000] Projects: /user/username/projects/myproject/src/tsconfig.json After request PolledWatches:: @@ -150,16 +151,16 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 44 [00:01:17.000] response: +Info 45 [00:01:18.000] response: { "responseRequired": false } -Info 45 [00:01:18.000] Modify package json file to add type module -Info 46 [00:01:22.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 47 [00:01:23.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 48 [00:01:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 49 [00:01:25.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 50 [00:01:26.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 46 [00:01:19.000] Modify package json file to add type module +Info 47 [00:01:23.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 48 [00:01:24.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 49 [00:01:25.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 50 [00:01:26.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 51 [00:01:27.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Before running timeout callbacks //// [/user/username/projects/myproject/package.json] {"name":"app","version":"1.0.0","type":"module"} @@ -189,9 +190,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 51 [00:01:27.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 52 [00:01:28.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 53 [00:01:29.000] Scheduled: *ensureProjectForOpenFiles* +Info 52 [00:01:28.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 53 [00:01:29.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 54 [00:01:30.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -244,48 +245,49 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 54 [00:01:30.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 55 [00:01:31.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 56 [00:01:32.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 57 [00:01:33.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 58 [00:01:34.000] File '/package.json' does not exist according to earlier cached lookups. -Info 59 [00:01:35.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 60 [00:01:36.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. -Info 61 [00:01:37.000] 'package.json' does not have a 'typesVersions' field. -Info 62 [00:01:38.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 63 [00:01:39.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. -Info 64 [00:01:40.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== -Info 65 [00:01:41.000] Module resolution kind is not specified, using 'Node16'. -Info 66 [00:01:42.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 67 [00:01:43.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 68 [00:01:44.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 69 [00:01:45.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 70 [00:01:46.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 71 [00:01:47.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 72 [00:01:48.000] File '/package.json' does not exist according to earlier cached lookups. -Info 73 [00:01:49.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 74 [00:01:50.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 75 [00:01:51.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 76 [00:01:52.000] Different program with same set of files -Info 77 [00:01:53.000] Running: *ensureProjectForOpenFiles* -Info 78 [00:01:54.000] Before ensureProjectForOpenFiles: -Info 79 [00:01:55.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 79 [00:01:56.000] Files (3) - -Info 79 [00:01:57.000] ----------------------------------------------- -Info 79 [00:01:58.000] Open files: -Info 79 [00:01:59.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 79 [00:02:00.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 79 [00:02:01.000] After ensureProjectForOpenFiles: -Info 80 [00:02:02.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 80 [00:02:03.000] Files (3) - -Info 80 [00:02:04.000] ----------------------------------------------- -Info 80 [00:02:05.000] Open files: -Info 80 [00:02:06.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 80 [00:02:07.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 80 [00:02:08.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 81 [00:02:09.000] event: +Info 55 [00:01:31.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 56 [00:01:32.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 57 [00:01:33.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 58 [00:01:34.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 59 [00:01:35.000] File '/package.json' does not exist according to earlier cached lookups. +Info 60 [00:01:36.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 61 [00:01:37.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. +Info 62 [00:01:38.000] 'package.json' does not have a 'typesVersions' field. +Info 63 [00:01:39.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 64 [00:01:40.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Info 65 [00:01:41.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Info 66 [00:01:42.000] Module resolution kind is not specified, using 'Node16'. +Info 67 [00:01:43.000] Resolving in ESM mode with conditions 'node', 'import', 'types'. +Info 68 [00:01:44.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 69 [00:01:45.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 70 [00:01:46.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 71 [00:01:47.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 72 [00:01:48.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 73 [00:01:49.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 74 [00:01:50.000] File '/package.json' does not exist according to earlier cached lookups. +Info 75 [00:01:51.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 76 [00:01:52.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 77 [00:01:53.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 78 [00:01:54.000] Different program with same set of files +Info 79 [00:01:55.000] Running: *ensureProjectForOpenFiles* +Info 80 [00:01:56.000] Before ensureProjectForOpenFiles: +Info 81 [00:01:57.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 81 [00:01:58.000] Files (3) + +Info 81 [00:01:59.000] ----------------------------------------------- +Info 81 [00:02:00.000] Open files: +Info 81 [00:02:01.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 81 [00:02:02.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 81 [00:02:03.000] After ensureProjectForOpenFiles: +Info 82 [00:02:04.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 82 [00:02:05.000] Files (3) + +Info 82 [00:02:06.000] ----------------------------------------------- +Info 82 [00:02:07.000] Open files: +Info 82 [00:02:08.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 82 [00:02:09.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 82 [00:02:10.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 83 [00:02:11.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -311,7 +313,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 82 [00:02:10.000] request: +Info 84 [00:02:12.000] request: { "command": "geterr", "arguments": { @@ -371,7 +373,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 83 [00:02:11.000] response: +Info 85 [00:02:13.000] response: { "responseRequired": false } @@ -399,7 +401,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 84 [00:02:12.000] event: +Info 86 [00:02:14.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -449,7 +451,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 85 [00:02:13.000] event: +Info 87 [00:02:15.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} Before running immediate callbacks and checking length (1) @@ -499,9 +501,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 86 [00:02:14.000] event: +Info 88 [00:02:16.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 87 [00:02:15.000] event: +Info 89 [00:02:17.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":1}} Before running immediate callbacks and checking length (1) @@ -527,12 +529,12 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 88 [00:02:16.000] Modify package json file to remove type module -Info 89 [00:02:20.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 90 [00:02:21.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 91 [00:02:22.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 92 [00:02:23.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 93 [00:02:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 90 [00:02:18.000] Modify package json file to remove type module +Info 91 [00:02:22.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 92 [00:02:23.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 93 [00:02:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 94 [00:02:25.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 95 [00:02:26.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 1:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Before running timeout callbacks //// [/user/username/projects/myproject/package.json] {"name":"app","version":"1.0.0"} @@ -560,9 +562,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 94 [00:02:25.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 95 [00:02:26.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 96 [00:02:27.000] Scheduled: *ensureProjectForOpenFiles* +Info 96 [00:02:27.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 97 [00:02:28.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 98 [00:02:29.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -611,51 +613,52 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 97 [00:02:28.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 98 [00:02:29.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 99 [00:02:30.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 100 [00:02:31.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 101 [00:02:32.000] File '/package.json' does not exist according to earlier cached lookups. -Info 102 [00:02:33.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 103 [00:02:34.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. -Info 104 [00:02:35.000] 'package.json' does not have a 'typesVersions' field. -Info 105 [00:02:36.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 106 [00:02:37.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. -Info 107 [00:02:38.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== -Info 108 [00:02:39.000] Module resolution kind is not specified, using 'Node16'. -Info 109 [00:02:40.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. -Info 110 [00:02:41.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. -Info 111 [00:02:42.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. -Info 112 [00:02:43.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. -Info 113 [00:02:44.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. -Info 114 [00:02:45.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. -Info 115 [00:02:46.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== -Info 116 [00:02:47.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 117 [00:02:48.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations -Info 118 [00:02:49.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 119 [00:02:50.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 120 [00:02:51.000] File '/package.json' does not exist according to earlier cached lookups. -Info 121 [00:02:52.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 122 [00:02:53.000] Different program with same set of files -Info 123 [00:02:54.000] Running: *ensureProjectForOpenFiles* -Info 124 [00:02:55.000] Before ensureProjectForOpenFiles: -Info 125 [00:02:56.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 125 [00:02:57.000] Files (3) - -Info 125 [00:02:58.000] ----------------------------------------------- -Info 125 [00:02:59.000] Open files: -Info 125 [00:03:00.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 125 [00:03:01.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 125 [00:03:02.000] After ensureProjectForOpenFiles: -Info 126 [00:03:03.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 126 [00:03:04.000] Files (3) - -Info 126 [00:03:05.000] ----------------------------------------------- -Info 126 [00:03:06.000] Open files: -Info 126 [00:03:07.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 126 [00:03:08.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 126 [00:03:09.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 127 [00:03:10.000] event: +Info 99 [00:02:30.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 100 [00:02:31.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 101 [00:02:32.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 102 [00:02:33.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 103 [00:02:34.000] File '/package.json' does not exist according to earlier cached lookups. +Info 104 [00:02:35.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 105 [00:02:36.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. +Info 106 [00:02:37.000] 'package.json' does not have a 'typesVersions' field. +Info 107 [00:02:38.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 108 [00:02:39.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Info 109 [00:02:40.000] ======== Resolving module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts'. ======== +Info 110 [00:02:41.000] Module resolution kind is not specified, using 'Node16'. +Info 111 [00:02:42.000] Resolving in CJS mode with conditions 'node', 'require', 'types'. +Info 112 [00:02:43.000] Loading module as file / folder, candidate module location '/user/username/projects/myproject/src/fileB.mjs', target file type 'TypeScript'. +Info 113 [00:02:44.000] File '/user/username/projects/myproject/src/fileB.mjs.ts' does not exist. +Info 114 [00:02:45.000] File '/user/username/projects/myproject/src/fileB.mjs.tsx' does not exist. +Info 115 [00:02:46.000] File '/user/username/projects/myproject/src/fileB.mjs.d.ts' does not exist. +Info 116 [00:02:47.000] File name '/user/username/projects/myproject/src/fileB.mjs' has a '.mjs' extension - stripping it. +Info 117 [00:02:48.000] File '/user/username/projects/myproject/src/fileB.mts' exist - use it as a name resolution result. +Info 118 [00:02:49.000] ======== Module name './fileB.mjs' was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. ======== +Info 119 [00:02:50.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 120 [00:02:51.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 0 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Failed Lookup Locations +Info 121 [00:02:52.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 122 [00:02:53.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 123 [00:02:54.000] File '/package.json' does not exist according to earlier cached lookups. +Info 124 [00:02:55.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 125 [00:02:56.000] Different program with same set of files +Info 126 [00:02:57.000] Running: *ensureProjectForOpenFiles* +Info 127 [00:02:58.000] Before ensureProjectForOpenFiles: +Info 128 [00:02:59.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 128 [00:03:00.000] Files (3) + +Info 128 [00:03:01.000] ----------------------------------------------- +Info 128 [00:03:02.000] Open files: +Info 128 [00:03:03.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 128 [00:03:04.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 128 [00:03:05.000] After ensureProjectForOpenFiles: +Info 129 [00:03:06.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 129 [00:03:07.000] Files (3) + +Info 129 [00:03:08.000] ----------------------------------------------- +Info 129 [00:03:09.000] Open files: +Info 129 [00:03:10.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 129 [00:03:11.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 129 [00:03:12.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 130 [00:03:13.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -683,7 +686,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 128 [00:03:11.000] request: +Info 131 [00:03:14.000] request: { "command": "geterr", "arguments": { @@ -747,7 +750,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 129 [00:03:12.000] response: +Info 132 [00:03:15.000] response: { "responseRequired": false } @@ -777,7 +780,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 130 [00:03:13.000] event: +Info 133 [00:03:16.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -831,7 +834,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 131 [00:03:14.000] event: +Info 134 [00:03:17.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -885,9 +888,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 132 [00:03:15.000] event: +Info 135 [00:03:18.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 133 [00:03:16.000] event: +Info 136 [00:03:19.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}} Before running immediate callbacks and checking length (1) @@ -915,13 +918,13 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 134 [00:03:17.000] Delete package.json -Info 135 [00:03:19.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 136 [00:03:20.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 137 [00:03:21.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 138 [00:03:22.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 139 [00:03:23.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file -Info 140 [00:03:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 137 [00:03:20.000] Delete package.json +Info 138 [00:03:22.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 139 [00:03:23.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 140 [00:03:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 141 [00:03:25.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 142 [00:03:26.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file +Info 143 [00:03:27.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Before running timeout callbacks //// [/user/username/projects/myproject/package.json] deleted @@ -949,9 +952,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 141 [00:03:25.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 142 [00:03:26.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 143 [00:03:27.000] Scheduled: *ensureProjectForOpenFiles* +Info 144 [00:03:28.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 145 [00:03:29.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 146 [00:03:30.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -1004,49 +1007,49 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 144 [00:03:28.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 145 [00:03:29.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 146 [00:03:30.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 147 [00:03:31.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 148 [00:03:32.000] File '/package.json' does not exist according to earlier cached lookups. -Info 149 [00:03:33.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 150 [00:03:34.000] File '/user/username/projects/myproject/package.json' does not exist. -Info 151 [00:03:35.000] File '/user/username/projects/package.json' does not exist. -Info 152 [00:03:36.000] File '/user/username/package.json' does not exist. -Info 153 [00:03:37.000] File '/user/package.json' does not exist. -Info 154 [00:03:38.000] File '/package.json' does not exist according to earlier cached lookups. -Info 155 [00:03:39.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 156 [00:03:40.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -Info 157 [00:03:41.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -Info 158 [00:03:42.000] File '/user/username/package.json' does not exist according to earlier cached lookups. -Info 159 [00:03:43.000] File '/user/package.json' does not exist according to earlier cached lookups. -Info 160 [00:03:44.000] File '/package.json' does not exist according to earlier cached lookups. -Info 161 [00:03:45.000] Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. -Info 162 [00:03:46.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 163 [00:03:47.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 164 [00:03:48.000] File '/package.json' does not exist according to earlier cached lookups. -Info 165 [00:03:49.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 166 [00:03:50.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 167 [00:03:51.000] Different program with same set of files -Info 168 [00:03:52.000] Running: *ensureProjectForOpenFiles* -Info 169 [00:03:53.000] Before ensureProjectForOpenFiles: -Info 170 [00:03:54.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 170 [00:03:55.000] Files (3) - -Info 170 [00:03:56.000] ----------------------------------------------- -Info 170 [00:03:57.000] Open files: -Info 170 [00:03:58.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 170 [00:03:59.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 170 [00:04:00.000] After ensureProjectForOpenFiles: -Info 171 [00:04:01.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 171 [00:04:02.000] Files (3) - -Info 171 [00:04:03.000] ----------------------------------------------- -Info 171 [00:04:04.000] Open files: -Info 171 [00:04:05.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 171 [00:04:06.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 171 [00:04:07.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 172 [00:04:08.000] event: +Info 147 [00:03:31.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 148 [00:03:32.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 149 [00:03:33.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 150 [00:03:34.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 151 [00:03:35.000] File '/package.json' does not exist according to earlier cached lookups. +Info 152 [00:03:36.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 153 [00:03:37.000] File '/user/username/projects/myproject/package.json' does not exist. +Info 154 [00:03:38.000] File '/user/username/projects/package.json' does not exist. +Info 155 [00:03:39.000] File '/user/username/package.json' does not exist. +Info 156 [00:03:40.000] File '/user/package.json' does not exist. +Info 157 [00:03:41.000] File '/package.json' does not exist according to earlier cached lookups. +Info 158 [00:03:42.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 159 [00:03:43.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info 160 [00:03:44.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info 161 [00:03:45.000] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info 162 [00:03:46.000] File '/user/package.json' does not exist according to earlier cached lookups. +Info 163 [00:03:47.000] File '/package.json' does not exist according to earlier cached lookups. +Info 164 [00:03:48.000] Reusing resolution of module './fileB.mjs' from '/user/username/projects/myproject/src/fileA.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/fileB.mts'. +Info 165 [00:03:49.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 166 [00:03:50.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 167 [00:03:51.000] File '/package.json' does not exist according to earlier cached lookups. +Info 168 [00:03:52.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 169 [00:03:53.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 170 [00:03:54.000] Different program with same set of files +Info 171 [00:03:55.000] Running: *ensureProjectForOpenFiles* +Info 172 [00:03:56.000] Before ensureProjectForOpenFiles: +Info 173 [00:03:57.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 173 [00:03:58.000] Files (3) + +Info 173 [00:03:59.000] ----------------------------------------------- +Info 173 [00:04:00.000] Open files: +Info 173 [00:04:01.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 173 [00:04:02.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 173 [00:04:03.000] After ensureProjectForOpenFiles: +Info 174 [00:04:04.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 174 [00:04:05.000] Files (3) + +Info 174 [00:04:06.000] ----------------------------------------------- +Info 174 [00:04:07.000] Open files: +Info 174 [00:04:08.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 174 [00:04:09.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 174 [00:04:10.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 175 [00:04:11.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -1076,7 +1079,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 173 [00:04:09.000] request: +Info 176 [00:04:12.000] request: { "command": "geterr", "arguments": { @@ -1144,7 +1147,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 174 [00:04:10.000] response: +Info 177 [00:04:13.000] response: { "responseRequired": false } @@ -1176,7 +1179,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 175 [00:04:11.000] event: +Info 178 [00:04:14.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -1234,7 +1237,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 176 [00:04:12.000] event: +Info 179 [00:04:15.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -1292,9 +1295,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 177 [00:04:13.000] event: +Info 180 [00:04:16.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 178 [00:04:14.000] event: +Info 181 [00:04:17.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}} Before running immediate callbacks and checking length (1) @@ -1324,10 +1327,10 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 179 [00:04:15.000] Modify package json file to add type module -Info 180 [00:04:18.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 181 [00:04:19.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 182 [00:04:20.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 182 [00:04:18.000] Modify package json file to add type module +Info 183 [00:04:21.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 184 [00:04:22.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 185 [00:04:23.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 0:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Before running timeout callbacks //// [/user/username/projects/myproject/package.json] {"name":"app","version":"1.0.0","type":"module"} @@ -1359,9 +1362,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 183 [00:04:21.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 184 [00:04:22.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 185 [00:04:23.000] Scheduled: *ensureProjectForOpenFiles* +Info 186 [00:04:24.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 187 [00:04:25.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 188 [00:04:26.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -1418,41 +1421,41 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 186 [00:04:24.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 187 [00:04:25.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 188 [00:04:26.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 189 [00:04:27.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 190 [00:04:28.000] File '/package.json' does not exist according to earlier cached lookups. -Info 191 [00:04:29.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 192 [00:04:30.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. -Info 193 [00:04:31.000] 'package.json' does not have a 'typesVersions' field. +Info 189 [00:04:27.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 190 [00:04:28.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 191 [00:04:29.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 192 [00:04:30.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 193 [00:04:31.000] File '/package.json' does not exist according to earlier cached lookups. Info 194 [00:04:32.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 195 [00:04:33.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. -Info 196 [00:04:34.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 197 [00:04:35.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 198 [00:04:36.000] File '/package.json' does not exist according to earlier cached lookups. -Info 199 [00:04:37.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 200 [00:04:38.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 201 [00:04:39.000] Different program with same set of files -Info 202 [00:04:40.000] Running: *ensureProjectForOpenFiles* -Info 203 [00:04:41.000] Before ensureProjectForOpenFiles: -Info 204 [00:04:42.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 204 [00:04:43.000] Files (3) - -Info 204 [00:04:44.000] ----------------------------------------------- -Info 204 [00:04:45.000] Open files: -Info 204 [00:04:46.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 204 [00:04:47.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 204 [00:04:48.000] After ensureProjectForOpenFiles: -Info 205 [00:04:49.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 205 [00:04:50.000] Files (3) - -Info 205 [00:04:51.000] ----------------------------------------------- -Info 205 [00:04:52.000] Open files: -Info 205 [00:04:53.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 205 [00:04:54.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 205 [00:04:55.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 206 [00:04:56.000] event: +Info 195 [00:04:33.000] Found 'package.json' at '/user/username/projects/myproject/package.json'. +Info 196 [00:04:34.000] 'package.json' does not have a 'typesVersions' field. +Info 197 [00:04:35.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 198 [00:04:36.000] File '/user/username/projects/myproject/package.json' exists according to earlier cached lookups. +Info 199 [00:04:37.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 200 [00:04:38.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 201 [00:04:39.000] File '/package.json' does not exist according to earlier cached lookups. +Info 202 [00:04:40.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 203 [00:04:41.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 204 [00:04:42.000] Different program with same set of files +Info 205 [00:04:43.000] Running: *ensureProjectForOpenFiles* +Info 206 [00:04:44.000] Before ensureProjectForOpenFiles: +Info 207 [00:04:45.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 207 [00:04:46.000] Files (3) + +Info 207 [00:04:47.000] ----------------------------------------------- +Info 207 [00:04:48.000] Open files: +Info 207 [00:04:49.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 207 [00:04:50.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 207 [00:04:51.000] After ensureProjectForOpenFiles: +Info 208 [00:04:52.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 208 [00:04:53.000] Files (3) + +Info 208 [00:04:54.000] ----------------------------------------------- +Info 208 [00:04:55.000] Open files: +Info 208 [00:04:56.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 208 [00:04:57.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 208 [00:04:58.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 209 [00:04:59.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -1480,7 +1483,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 207 [00:04:57.000] request: +Info 210 [00:05:00.000] request: { "command": "geterr", "arguments": { @@ -1544,7 +1547,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 208 [00:04:58.000] response: +Info 211 [00:05:01.000] response: { "responseRequired": false } @@ -1574,7 +1577,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 209 [00:04:59.000] event: +Info 212 [00:05:02.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -1628,7 +1631,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 210 [00:05:00.000] event: +Info 213 [00:05:03.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} Before running immediate callbacks and checking length (1) @@ -1682,9 +1685,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 211 [00:05:01.000] event: +Info 214 [00:05:04.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 212 [00:05:02.000] event: +Info 215 [00:05:05.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":4}} Before running immediate callbacks and checking length (1) @@ -1712,10 +1715,10 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 213 [00:05:03.000] Delete package.json -Info 214 [00:05:05.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 215 [00:05:06.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 216 [00:05:07.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 216 [00:05:06.000] Delete package.json +Info 217 [00:05:08.000] FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 218 [00:05:09.000] Scheduled: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 219 [00:05:10.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/package.json 2:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution Before running timeout callbacks //// [/user/username/projects/myproject/package.json] deleted @@ -1743,9 +1746,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 217 [00:05:08.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation -Info 218 [00:05:09.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json -Info 219 [00:05:10.000] Scheduled: *ensureProjectForOpenFiles* +Info 220 [00:05:11.000] Running: /user/username/projects/myproject/src/tsconfig.jsonFailedLookupInvalidation +Info 221 [00:05:12.000] Scheduled: /user/username/projects/myproject/src/tsconfig.json +Info 222 [00:05:13.000] Scheduled: *ensureProjectForOpenFiles* After running timeout callbacks PolledWatches:: @@ -1798,48 +1801,48 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 220 [00:05:11.000] Running: /user/username/projects/myproject/src/tsconfig.json -Info 221 [00:05:12.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json -Info 222 [00:05:13.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 223 [00:05:14.000] File '/a/package.json' does not exist according to earlier cached lookups. -Info 224 [00:05:15.000] File '/package.json' does not exist according to earlier cached lookups. -Info 225 [00:05:16.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 226 [00:05:17.000] File '/user/username/projects/myproject/package.json' does not exist. -Info 227 [00:05:18.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -Info 228 [00:05:19.000] File '/user/username/package.json' does not exist according to earlier cached lookups. -Info 229 [00:05:20.000] File '/user/package.json' does not exist according to earlier cached lookups. -Info 230 [00:05:21.000] File '/package.json' does not exist according to earlier cached lookups. -Info 231 [00:05:22.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. -Info 232 [00:05:23.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -Info 233 [00:05:24.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -Info 234 [00:05:25.000] File '/user/username/package.json' does not exist according to earlier cached lookups. -Info 235 [00:05:26.000] File '/user/package.json' does not exist according to earlier cached lookups. -Info 236 [00:05:27.000] File '/package.json' does not exist according to earlier cached lookups. -Info 237 [00:05:28.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. -Info 238 [00:05:29.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 223 [00:05:14.000] Running: /user/username/projects/myproject/src/tsconfig.json +Info 224 [00:05:15.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json +Info 225 [00:05:16.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 226 [00:05:17.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 227 [00:05:18.000] File '/package.json' does not exist according to earlier cached lookups. +Info 228 [00:05:19.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 229 [00:05:20.000] File '/user/username/projects/myproject/package.json' does not exist. +Info 230 [00:05:21.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info 231 [00:05:22.000] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info 232 [00:05:23.000] File '/user/package.json' does not exist according to earlier cached lookups. +Info 233 [00:05:24.000] File '/package.json' does not exist according to earlier cached lookups. +Info 234 [00:05:25.000] File '/user/username/projects/myproject/src/package.json' does not exist according to earlier cached lookups. +Info 235 [00:05:26.000] File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. +Info 236 [00:05:27.000] File '/user/username/projects/package.json' does not exist according to earlier cached lookups. +Info 237 [00:05:28.000] File '/user/username/package.json' does not exist according to earlier cached lookups. +Info 238 [00:05:29.000] File '/user/package.json' does not exist according to earlier cached lookups. Info 239 [00:05:30.000] File '/package.json' does not exist according to earlier cached lookups. -Info 240 [00:05:31.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution -Info 241 [00:05:32.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info 242 [00:05:33.000] Different program with same set of files -Info 243 [00:05:34.000] Running: *ensureProjectForOpenFiles* -Info 244 [00:05:35.000] Before ensureProjectForOpenFiles: -Info 245 [00:05:36.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 245 [00:05:37.000] Files (3) - -Info 245 [00:05:38.000] ----------------------------------------------- -Info 245 [00:05:39.000] Open files: -Info 245 [00:05:40.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 245 [00:05:41.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 245 [00:05:42.000] After ensureProjectForOpenFiles: -Info 246 [00:05:43.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) -Info 246 [00:05:44.000] Files (3) - -Info 246 [00:05:45.000] ----------------------------------------------- -Info 246 [00:05:46.000] Open files: -Info 246 [00:05:47.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined -Info 246 [00:05:48.000] Projects: /user/username/projects/myproject/src/tsconfig.json -Info 246 [00:05:49.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts -Info 247 [00:05:50.000] event: +Info 240 [00:05:31.000] File '/a/lib/package.json' does not exist according to earlier cached lookups. +Info 241 [00:05:32.000] File '/a/package.json' does not exist according to earlier cached lookups. +Info 242 [00:05:33.000] File '/package.json' does not exist according to earlier cached lookups. +Info 243 [00:05:34.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: File location affecting resolution +Info 244 [00:05:35.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/src/tsconfig.json Version: 6 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info 245 [00:05:36.000] Different program with same set of files +Info 246 [00:05:37.000] Running: *ensureProjectForOpenFiles* +Info 247 [00:05:38.000] Before ensureProjectForOpenFiles: +Info 248 [00:05:39.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 248 [00:05:40.000] Files (3) + +Info 248 [00:05:41.000] ----------------------------------------------- +Info 248 [00:05:42.000] Open files: +Info 248 [00:05:43.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 248 [00:05:44.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 248 [00:05:45.000] After ensureProjectForOpenFiles: +Info 249 [00:05:46.000] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) +Info 249 [00:05:47.000] Files (3) + +Info 249 [00:05:48.000] ----------------------------------------------- +Info 249 [00:05:49.000] Open files: +Info 249 [00:05:50.000] FileName: /user/username/projects/myproject/src/fileA.ts ProjectRootPath: undefined +Info 249 [00:05:51.000] Projects: /user/username/projects/myproject/src/tsconfig.json +Info 249 [00:05:52.000] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts +Info 250 [00:05:53.000] event: {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/projects/myproject/src/fileA.ts"]}} After running timeout callbacks @@ -1869,7 +1872,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 248 [00:05:51.000] request: +Info 251 [00:05:54.000] request: { "command": "geterr", "arguments": { @@ -1937,7 +1940,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 249 [00:05:52.000] response: +Info 252 [00:05:55.000] response: { "responseRequired": false } @@ -1969,7 +1972,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 250 [00:05:53.000] event: +Info 253 [00:05:56.000] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} After checking timeout queue length (1) and running @@ -2027,7 +2030,7 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 251 [00:05:54.000] event: +Info 254 [00:05:57.000] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[{"start":{"line":1,"offset":21},"end":{"line":1,"offset":34},"text":"The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.","code":1479,"category":"error"}]}} Before running immediate callbacks and checking length (1) @@ -2085,9 +2088,9 @@ FsWatchesRecursive:: /user/username/projects/myproject/src: {} -Info 252 [00:05:55.000] event: +Info 255 [00:05:58.000] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/src/fileA.ts","diagnostics":[]}} -Info 253 [00:05:56.000] event: +Info 256 [00:05:59.000] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":5}} Before running immediate callbacks and checking length (1) diff --git a/tests/cases/conformance/node/nodeModulesPackageImports.ts b/tests/cases/conformance/node/nodeModulesPackageImports.ts index 55122ed464f3d..e4ff6bba86428 100644 --- a/tests/cases/conformance/node/nodeModulesPackageImports.ts +++ b/tests/cases/conformance/node/nodeModulesPackageImports.ts @@ -1,6 +1,7 @@ // @module: node16,nodenext // @declaration: true // @filename: index.ts +// @traceResolution: true // esm format file import * as cjs from "#cjs"; import * as mjs from "#mjs"; diff --git a/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts b/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts index ad842bcdb4a9a..59fe617e4c312 100644 --- a/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts +++ b/tests/cases/conformance/node/nodeModulesPackagePatternExportsTrailers.ts @@ -2,6 +2,7 @@ // @declaration: true // @outDir: out // @filename: index.ts +// @traceResolution: true // esm format file import * as cjsi from "inner/cjs/index.cjs"; import * as mjsi from "inner/mjs/index.mjs";