File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export async function cleanOutDir(configs: ResolvedOptions[]): Promise<void> {
19
19
cwd : config . cwd ,
20
20
absolute : true ,
21
21
onlyFiles : false ,
22
+ expandDirectories : false ,
22
23
} )
23
24
24
25
const normalizedOutDir = config . outDir . replace ( RE_LAST_SLASH , '' )
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ export async function toObjectEntry(
46
46
return entry
47
47
}
48
48
49
- const resolvedEntry = ( await glob ( entry , { cwd } ) ) . map ( ( file ) =>
50
- path . resolve ( cwd , file ) ,
51
- )
49
+ const resolvedEntry = (
50
+ await glob ( entry , { cwd, expandDirectories : false } )
51
+ ) . map ( ( file ) => path . resolve ( cwd , file ) )
52
52
const base = lowestCommonAncestor ( ...resolvedEntry )
53
53
return Object . fromEntries (
54
54
resolvedEntry . map ( ( file ) => {
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ async function resolveWorkspace(
95
95
patterns : '**/package.json' ,
96
96
ignore : exclude ,
97
97
cwd : rootCwd ,
98
+ expandDirectories : false ,
98
99
} )
99
100
)
100
101
. filter ( ( file ) => file !== 'package.json' ) // exclude root package.json
@@ -107,6 +108,7 @@ async function resolveWorkspace(
107
108
cwd : rootCwd ,
108
109
onlyDirectories : true ,
109
110
absolute : true ,
111
+ expandDirectories : false ,
110
112
} )
111
113
) . map ( ( file ) => slash ( path . resolve ( file ) ) )
112
114
}
You can’t perform that action at this time.
0 commit comments