File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export const resolve = (
97
97
createResolver: if ( ! resolver ) {
98
98
// must be a array with 2+ items here already ensured by `normalizeOptions`
99
99
const project = options . project as string [ ]
100
- for ( const tsconfigPath of project ) {
100
+ for ( const tsconfigPath of sortProjectsByAffinity ( project , file ) ) {
101
101
const resolverCached = resolverCache . get ( tsconfigPath )
102
102
if ( resolverCached ) {
103
103
resolver = resolverCached
@@ -139,24 +139,7 @@ export const resolve = (
139
139
break createResolver
140
140
}
141
141
142
- log (
143
- 'no tsconfig matched' ,
144
- file ,
145
- 'with' ,
146
- ...project ,
147
- ', trying from the the nearest one' ,
148
- )
149
- for ( const p of sortProjectsByAffinity ( project , file ) ) {
150
- const resolved = resolve (
151
- source ,
152
- file ,
153
- { ...options , project : p } ,
154
- resolver ,
155
- )
156
- if ( resolved . found ) {
157
- return resolved
158
- }
159
- }
142
+ log ( 'no tsconfig matched' , file , 'with' , ...project )
160
143
}
161
144
162
145
if ( ! resolver ) {
You can’t perform that action at this time.
0 commit comments