File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' eslint-import-resolver-typescript ' : patch
3
+ ---
4
+
5
+ fix: include mapper with no files and force non-dynamic projects to use absolute paths
Original file line number Diff line number Diff line change @@ -430,7 +430,9 @@ function initMappers(options: InternalResolverOptions) {
430
430
// Turn glob patterns into paths
431
431
const projectPaths = [
432
432
...new Set ( [
433
- ...configPaths . filter ( path => ! isDynamicPattern ( path ) ) ,
433
+ ...configPaths
434
+ . filter ( p => ! isDynamicPattern ( p ) )
435
+ . map ( p => path . resolve ( process . cwd ( ) , p ) ) ,
434
436
...globSync (
435
437
configPaths . filter ( path => isDynamicPattern ( path ) ) ,
436
438
{
@@ -504,11 +506,6 @@ function initMappers(options: InternalResolverOptions) {
504
506
: [ ] ) ,
505
507
]
506
508
507
- if ( files . length === 0 ) {
508
- // eslint-disable-next-line unicorn/no-useless-undefined
509
- return undefined
510
- }
511
-
512
509
return {
513
510
path : toNativePathSeparator ( tsconfigResult . path ) ,
514
511
files : new Set ( files . map ( toNativePathSeparator ) ) ,
You can’t perform that action at this time.
0 commit comments