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

Conversation

rick-ast
Copy link
Contributor

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.

@rick-ast rick-ast changed the title fix glob expandDirectories extension option gen dir fix glob expandDirectories extension option gen glob Jan 31, 2024
@sindresorhus sindresorhus merged commit af5d139 into sindresorhus:main Feb 11, 2024
6 checks passed
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.

None yet

2 participants