TypeScript/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json
Wesley Wigham 586b0d5011
moduleResolution: node12 support (#45884)
* Initial support for module: node12

* Add allowJs and declaration emit enabled tests

* Fix typos

* cts, mts, cjs, mjs, etc extension support

* Fix watch of files whose intepretation changes due to a package.json update

* Minor PR feedback

* Adjust error message

* Initial import/export/self-name support

* Accept new error codes

* TypesVersions support in export/import map conditions

* Fix import suggestion and autoimport default extensions under new resolution modes

* Add tests for import maps non-relative name lookup feature

* Fix isDeclarationFileName for .d.mts and .d.cts

* Preserve new extensions when generating module specifiers

* Fix spurious implict any suggestion caused by file ordering bug and optimize import name format detection by relying on parents being set

* Fix a bunch of incremental bugs that dont repro under fourslash for some reason

* Accept updated baseline

* Always include extensions on completions for cjs/mjs style imports

* String completion relative import suggestions respect the mode of the import when choosing if they provide extensions

* Style feedback

* Change diagnostic case
2021-09-24 14:25:59 -07:00

37 lines
3 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.",
"File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.",
"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.",
"File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.",
"File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it.",
"'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.",
"'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.",
"Module name 'foo/bar/foobar.json', matched pattern '*'.",
"Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'.",
"Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file type 'JavaScript'.",
"File '/node_modules/foo/bar/foobar.json.js' does not exist.",
"File '/node_modules/foo/bar/foobar.json.jsx' does not exist.",
"File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.",
"File '/node_modules/foo/bar/foobar.json' exist - use it as a name resolution result.",
"File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.",
"======== Module name 'foo/bar/foobar.json' was successfully resolved to '/node_modules/foo/bar/foobar.json'. ========"
]