Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix glob expandDirectories extension option gen glob #263

Merged
merged 1 commit into from
Feb 11, 2024
Merged

fix glob expandDirectories extension option gen glob #263

merged 1 commit into from
Feb 11, 2024

Conversation

rick-ame
Copy link

When only set extensions option for expandDirectories like

const res = await globby(["tests"], {
  expandDirectories: {
     extensions: ["js"],
  },
});
console.log(res);

it gets an empty array even with js files existing because getDirectoryGlobgenerates tests/**/.js pattern which is invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants