Skip to content

Commit 5014931

Browse files
committed
fix(RequisitionFilePatternParser): Avoid trying to parse a directory as a requisition file
1 parent 493fc8f commit 5014931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/requisition-runners/requisition-file-pattern-parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class RequisitionFilePatternParser {
3838
private getMatchingFiles(): string[] {
3939
let result: string[] = [];
4040
this.patterns.map((pattern: string) => {
41-
const items = glob.sync(pattern);
41+
const items = glob.sync(pattern, {nodir: true});
4242
if (items.length > 0) {
4343
result = result.concat(items.sort());
4444
} else {

0 commit comments

Comments
 (0)