TypeScript/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
Sheetal Nandi f6d425e1e3
Module Resolution and Type Reference directive cache updates and its API changes (#43700)
* Make the module resolution cache apis for updating compiler options or clearing it

* Cache package.json lookup results from module resolution

* Use per directory cache for type reference directive resolution as well

* Update Baselines and/or Applied Lint Fixes

* Change trace according to feedback

* Update Baselines and/or Applied Lint Fixes

Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2021-04-21 21:30:18 -07:00

75 lines
7.2 KiB
JSON

[
"======== Resolving module 'anotherLib' from '/project/src/app.ts'. ========",
"Module resolution kind is not specified, using 'NodeJs'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'.",
"'paths' option is specified, looking for a pattern to match module name 'anotherLib'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'anotherLib'.",
"Resolving module name 'anotherLib' relative to base url '/project' - '/project/anotherLib'.",
"Loading module as file / folder, candidate module location '/project/anotherLib', target file type 'TypeScript'.",
"File '/project/anotherLib.ts' does not exist.",
"File '/project/anotherLib.tsx' does not exist.",
"File '/project/anotherLib.d.ts' does not exist.",
"Directory '/project/anotherLib' does not exist, skipping all lookups in it.",
"Loading module 'anotherLib' from 'node_modules' folder, target file type 'TypeScript'.",
"Directory '/project/src/node_modules' does not exist, skipping all lookups in it.",
"File '/project/node_modules/anotherLib/package.json' does not exist.",
"File '/project/node_modules/anotherLib.ts' does not exist.",
"File '/project/node_modules/anotherLib.tsx' does not exist.",
"File '/project/node_modules/anotherLib.d.ts' does not exist.",
"File '/project/node_modules/anotherLib/index.ts' does not exist.",
"File '/project/node_modules/anotherLib/index.tsx' does not exist.",
"File '/project/node_modules/anotherLib/index.d.ts' exist - use it as a name resolution result.",
"Resolving real path for '/project/node_modules/anotherLib/index.d.ts', result '/project/node_modules/anotherLib/index.d.ts'.",
"======== Module name 'anotherLib' was successfully resolved to '/project/node_modules/anotherLib/index.d.ts'. ========",
"======== Resolving module '@shared/lib/app' from '/project/src/app.ts'. ========",
"Module resolution kind is not specified, using 'NodeJs'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name '@shared/lib/app'.",
"'paths' option is specified, looking for a pattern to match module name '@shared/lib/app'.",
"Module name '@shared/lib/app', matched pattern '@shared/*'.",
"Trying substitution '../shared/*', candidate module location: '../shared/lib/app'.",
"Loading module as file / folder, candidate module location '/shared/lib/app', target file type 'TypeScript'.",
"File '/shared/lib/app.ts' does not exist.",
"File '/shared/lib/app.tsx' does not exist.",
"File '/shared/lib/app.d.ts' exist - use it as a name resolution result.",
"======== Module name '@shared/lib/app' was successfully resolved to '/shared/lib/app.d.ts'. ========",
"======== Resolving module 'troublesome-lib/lib/Compactable' from '/project/node_modules/anotherLib/index.d.ts'. ========",
"Module resolution kind is not specified, using 'NodeJs'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'.",
"'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Compactable'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Compactable'.",
"Resolving module name 'troublesome-lib/lib/Compactable' relative to base url '/project' - '/project/troublesome-lib/lib/Compactable'.",
"Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Compactable', target file type 'TypeScript'.",
"Loading module 'troublesome-lib/lib/Compactable' from 'node_modules' folder, target file type 'TypeScript'.",
"Directory '/project/node_modules/anotherLib/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'.",
"'package.json' does not have a 'typesVersions' field.",
"File '/project/node_modules/troublesome-lib/lib/Compactable.ts' does not exist.",
"File '/project/node_modules/troublesome-lib/lib/Compactable.tsx' does not exist.",
"File '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' exist - use it as a name resolution result.",
"Resolving real path for '/project/node_modules/troublesome-lib/lib/Compactable.d.ts', result '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'.",
"======== Module name 'troublesome-lib/lib/Compactable' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Compactable.d.ts' with Package ID 'troublesome-lib/lib/Compactable.d.ts@1.17.1'. ========",
"======== Resolving module './Option' from '/project/node_modules/troublesome-lib/lib/Compactable.d.ts'. ========",
"Module resolution kind is not specified, using 'NodeJs'.",
"Loading module as file / folder, candidate module location '/project/node_modules/troublesome-lib/lib/Option', target file type 'TypeScript'.",
"File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist.",
"File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist.",
"File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exist - use it as a name resolution result.",
"File '/project/node_modules/troublesome-lib/package.json' exists according to earlier cached lookups.",
"======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ========",
"======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ========",
"Module resolution kind is not specified, using 'NodeJs'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'.",
"'paths' option is specified, looking for a pattern to match module name 'troublesome-lib/lib/Option'.",
"'baseUrl' option is set to '/project', using this value to resolve non-relative module name 'troublesome-lib/lib/Option'.",
"Resolving module name 'troublesome-lib/lib/Option' relative to base url '/project' - '/project/troublesome-lib/lib/Option'.",
"Loading module as file / folder, candidate module location '/project/troublesome-lib/lib/Option', target file type 'TypeScript'.",
"Loading module 'troublesome-lib/lib/Option' from 'node_modules' folder, target file type 'TypeScript'.",
"Directory '/shared/lib/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/shared/node_modules/troublesome-lib/package.json'.",
"'package.json' does not have a 'typesVersions' field.",
"File '/shared/node_modules/troublesome-lib/lib/Option.ts' does not exist.",
"File '/shared/node_modules/troublesome-lib/lib/Option.tsx' does not exist.",
"File '/shared/node_modules/troublesome-lib/lib/Option.d.ts' exist - use it as a name resolution result.",
"Resolving real path for '/shared/node_modules/troublesome-lib/lib/Option.d.ts', result '/shared/node_modules/troublesome-lib/lib/Option.d.ts'.",
"======== Module name 'troublesome-lib/lib/Option' was successfully resolved to '/shared/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ========"
]