File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export function resolve(
170
170
}
171
171
}
172
172
173
- packageJsonPaths = fg . sync ( [ " **/package.json" , " !**/node_modules/**" ] ) ;
173
+ packageJsonPaths = fg . sync ( [ ' **/package.json' , ' !**/node_modules/**' ] ) ;
174
174
initMappers ( cachedOptions )
175
175
176
176
const mappedPath = getMappedPath ( source , file , cachedOptions . extensions , true )
@@ -273,7 +273,7 @@ function getMappedPath(
273
273
paths = [ resolved ]
274
274
}
275
275
} else {
276
- const packageJsonPath = packageJsonPaths . find ( ( p ) => {
276
+ const packageJsonPath = packageJsonPaths . find ( p => {
277
277
const { dir } = path . parse ( p )
278
278
return ! ! dir && file . includes ( dir )
279
279
} )
@@ -306,7 +306,7 @@ function getMappedPath(
306
306
307
307
return false
308
308
} )
309
- . filter ( ( item ) => packageJsonPath && item ?. includes ( packageJsonPath ) )
309
+ . filter ( item => packageJsonPath && item ?. includes ( packageJsonPath ) )
310
310
}
311
311
312
312
if ( retry && paths . length === 0 ) {
You can’t perform that action at this time.
0 commit comments