TypeScript/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.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

36 lines
2.9 KiB
JSON

[
"======== Resolving module 'foo/bar/foobar.json' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'NodeJs'.",
"'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.",
"'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.",
"Module name 'foo/bar/foobar.json', matched pattern '*'.",
"Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'.",
"Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file type 'TypeScript'.",
"File '/node_modules/foo/bar/foobar.json.ts' does not exist.",
"File '/node_modules/foo/bar/foobar.json.tsx' does not exist.",
"File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.",
"Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it.",
"Trying substitution 'src/types', candidate module location: 'src/types'.",
"Loading module as file / folder, candidate module location '/src/types', target file type 'TypeScript'.",
"Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file type 'TypeScript'.",
"File '/node_modules/foo/package.json' does not exist.",
"File '/node_modules/foo/bar/foobar.json.ts' does not exist.",
"File '/node_modules/foo/bar/foobar.json.tsx' does not exist.",
"File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.",
"'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.",
"Module name 'foo/bar/foobar.json', matched pattern '*'.",
"Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'.",
"Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file type 'JavaScript'.",
"File '/node_modules/foo/bar/foobar.json.js' does not exist.",
"File '/node_modules/foo/bar/foobar.json.jsx' does not exist.",
"Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it.",
"Trying substitution 'src/types', candidate module location: 'src/types'.",
"Loading module as file / folder, candidate module location '/src/types', target file type 'JavaScript'.",
"Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file type 'JavaScript'.",
"File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/foo/bar/foobar.json.js' does not exist.",
"File '/node_modules/foo/bar/foobar.json.jsx' does not exist.",
"======== Module name 'foo/bar/foobar.json' was not resolved. ========"
]