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 = (
9797 createResolver: if ( ! resolver ) {
9898 // must be a array with 2+ items here already ensured by `normalizeOptions`
9999 const project = options . project as string [ ]
100- for ( const tsconfigPath of project ) {
100+ for ( const tsconfigPath of sortProjectsByAffinity ( project , file ) ) {
101101 const resolverCached = resolverCache . get ( tsconfigPath )
102102 if ( resolverCached ) {
103103 resolver = resolverCached
@@ -139,24 +139,7 @@ export const resolve = (
139139 break createResolver
140140 }
141141
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 )
160143 }
161144
162145 if ( ! resolver ) {
You can’t perform that action at this time.
0 commit comments