sindresorhus / globby

User-friendly glob matching
MIT License
2.49k stars 126 forks source link

Expose new `generateGlobTasks` and `generateGlobTasksSync` #221

Closed fisker closed 2 years ago

fisker commented 2 years ago

The old generateGlobTasks doesn't apply expandDirectories option.

I also changed pattern to patterns, I'm going to combine tasks with same options in a later PR.

If user want single pattern

tasks.flatMap(({patterns, options}) => patterns.map(pattern => ({pattern, options})))