Skip to content

Commit c89137d

Browse files
committed
Add traceModuleResolution baseline changes
1 parent 09330b8 commit c89137d

File tree

168 files changed

+5209
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+5209
-218
lines changed

tests/baselines/reference/allowJsCrossMonorepoPackage.trace.json

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[
2+
"Found 'package.json' at '/packages/main/package.json'.",
23
"======== Resolving module 'shared' from '/packages/main/index.ts'. ========",
34
"Explicitly specified module resolution kind: 'Bundler'.",
45
"Resolving in CJS mode with conditions 'import', 'types'.",
5-
"Found 'package.json' at '/packages/main/package.json'.",
6+
"File '/packages/main/package.json' exists according to earlier cached lookups.",
67
"Loading module 'shared' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
78
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
89
"Found 'package.json' at '/packages/main/node_modules/shared/package.json'.",
@@ -45,6 +46,7 @@
4546
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
4647
"Resolving real path for '/packages/main/node_modules/shared/index.js', result '/packages/shared/index.js'.",
4748
"======== Module name 'shared' was successfully resolved to '/packages/shared/index.js' with Package ID 'shared/[email protected]'. ========",
49+
"Found 'package.json' at '/packages/shared/package.json'.",
4850
"======== Resolving module './utils.js' from '/packages/shared/index.js'. ========",
4951
"Explicitly specified module resolution kind: 'Bundler'.",
5052
"Resolving in CJS mode with conditions 'import', 'types'.",
@@ -55,10 +57,11 @@
5557
"File '/packages/shared/utils.d.ts' does not exist.",
5658
"File '/packages/shared/utils.js' exists - use it as a name resolution result.",
5759
"======== Module name './utils.js' was successfully resolved to '/packages/shared/utils.js'. ========",
60+
"File '/packages/shared/package.json' exists according to earlier cached lookups.",
5861
"======== Resolving module 'pkg' from '/packages/shared/utils.js'. ========",
5962
"Explicitly specified module resolution kind: 'Bundler'.",
6063
"Resolving in CJS mode with conditions 'import', 'types'.",
61-
"Found 'package.json' at '/packages/shared/package.json'.",
64+
"File '/packages/shared/package.json' exists according to earlier cached lookups.",
6265
"Loading module 'pkg' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
6366
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
6467
"Directory '/packages/shared/node_modules' does not exist, skipping all lookups in it.",
@@ -72,6 +75,11 @@
7275
"File '/node_modules/pkg/index.d.ts' exists - use it as a name resolution result.",
7376
"Resolving real path for '/node_modules/pkg/index.d.ts', result '/node_modules/pkg/index.d.ts'.",
7477
"======== Module name 'pkg' was successfully resolved to '/node_modules/pkg/index.d.ts'. ========",
78+
"File '/node_modules/pkg/package.json' does not exist according to earlier cached lookups.",
79+
"File '/node_modules/package.json' does not exist.",
80+
"File '/package.json' does not exist.",
81+
"File '/.ts/package.json' does not exist.",
82+
"File '/package.json' does not exist according to earlier cached lookups.",
7583
"======== Resolving module '@typescript/lib-es5' from '/packages/main/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
7684
"Explicitly specified module resolution kind: 'Node10'.",
7785
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -86,6 +94,8 @@
8694
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
8795
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
8896
"======== Module name '@typescript/lib-es5' was not resolved. ========",
97+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
98+
"File '/package.json' does not exist according to earlier cached lookups.",
8999
"======== Resolving module '@typescript/lib-decorators' from '/packages/main/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
90100
"Explicitly specified module resolution kind: 'Node10'.",
91101
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -100,6 +110,8 @@
100110
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
101111
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
102112
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
113+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
114+
"File '/package.json' does not exist according to earlier cached lookups.",
103115
"======== Resolving module '@typescript/lib-decorators/legacy' from '/packages/main/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
104116
"Explicitly specified module resolution kind: 'Node10'.",
105117
"Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -114,6 +126,8 @@
114126
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
115127
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
116128
"======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========",
129+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
130+
"File '/package.json' does not exist according to earlier cached lookups.",
117131
"======== Resolving module '@typescript/lib-dom' from '/packages/main/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========",
118132
"Explicitly specified module resolution kind: 'Node10'.",
119133
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -128,6 +142,8 @@
128142
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
129143
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
130144
"======== Module name '@typescript/lib-dom' was not resolved. ========",
145+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
146+
"File '/package.json' does not exist according to earlier cached lookups.",
131147
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/packages/main/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
132148
"Explicitly specified module resolution kind: 'Node10'.",
133149
"Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -142,6 +158,8 @@
142158
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
143159
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
144160
"======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========",
161+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
162+
"File '/package.json' does not exist according to earlier cached lookups.",
145163
"======== Resolving module '@typescript/lib-scripthost' from '/packages/main/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========",
146164
"Explicitly specified module resolution kind: 'Node10'.",
147165
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -155,5 +173,7 @@
155173
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
156174
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
157175
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
158-
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
176+
"======== Module name '@typescript/lib-scripthost' was not resolved. ========",
177+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
178+
"File '/package.json' does not exist according to earlier cached lookups."
159179
]

tests/baselines/reference/bundlerConditionsExcludesNode(module=esnext).trace.json

+20-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[
2+
"Found 'package.json' at '/node_modules/conditions/package.json'.",
3+
"File '/node_modules/conditions/package.json' exists according to earlier cached lookups.",
4+
"File '/package.json' does not exist.",
25
"======== Resolving module 'conditions' from '/main.ts'. ========",
36
"Explicitly specified module resolution kind: 'Bundler'.",
47
"Resolving in CJS mode with conditions 'import', 'types'.",
5-
"File '/package.json' does not exist.",
8+
"File '/package.json' does not exist according to earlier cached lookups.",
69
"Loading module 'conditions' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
710
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
8-
"Found 'package.json' at '/node_modules/conditions/package.json'.",
11+
"File '/node_modules/conditions/package.json' exists according to earlier cached lookups.",
912
"Entering conditional exports.",
1013
"Saw non-matching condition 'node'.",
1114
"Matched 'exports' condition 'default'.",
@@ -18,6 +21,8 @@
1821
"Exiting conditional exports.",
1922
"Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'.",
2023
"======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/[email protected]'. ========",
24+
"File '/.ts/package.json' does not exist.",
25+
"File '/package.json' does not exist according to earlier cached lookups.",
2126
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
2227
"Explicitly specified module resolution kind: 'Node10'.",
2328
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -30,6 +35,8 @@
3035
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
3136
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
3237
"======== Module name '@typescript/lib-es5' was not resolved. ========",
38+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
39+
"File '/package.json' does not exist according to earlier cached lookups.",
3340
"======== Resolving module '@typescript/lib-decorators' from '/.src/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
3441
"Explicitly specified module resolution kind: 'Node10'.",
3542
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -42,6 +49,8 @@
4249
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
4350
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
4451
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
52+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
53+
"File '/package.json' does not exist according to earlier cached lookups.",
4554
"======== Resolving module '@typescript/lib-decorators/legacy' from '/.src/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
4655
"Explicitly specified module resolution kind: 'Node10'.",
4756
"Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -54,6 +63,8 @@
5463
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
5564
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
5665
"======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========",
66+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
67+
"File '/package.json' does not exist according to earlier cached lookups.",
5768
"======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========",
5869
"Explicitly specified module resolution kind: 'Node10'.",
5970
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -66,6 +77,8 @@
6677
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
6778
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
6879
"======== Module name '@typescript/lib-dom' was not resolved. ========",
80+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
81+
"File '/package.json' does not exist according to earlier cached lookups.",
6982
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/.src/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
7083
"Explicitly specified module resolution kind: 'Node10'.",
7184
"Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -78,6 +91,8 @@
7891
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
7992
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
8093
"======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========",
94+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
95+
"File '/package.json' does not exist according to earlier cached lookups.",
8196
"======== Resolving module '@typescript/lib-scripthost' from '/.src/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========",
8297
"Explicitly specified module resolution kind: 'Node10'.",
8398
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
@@ -89,5 +104,7 @@
89104
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
90105
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
91106
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
92-
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
107+
"======== Module name '@typescript/lib-scripthost' was not resolved. ========",
108+
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
109+
"File '/package.json' does not exist according to earlier cached lookups."
93110
]

0 commit comments

Comments
 (0)