Skip to content

fix(barrels): fix glob pattern to discover nested directory #430

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

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

Romakita
Copy link
Contributor

No description provided.

@@ -28,7 +29,7 @@ export async function generateBarrels({exclude, directory, cwd}) {
const directories = (
await globby(
directory.map((d) => {
return join(d, "*");
return joinPosix(d, "*");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't all join needs to be replaced? i did for my solution, maybe not alias join and just use it for all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because for other path like cwd, we have to use the normal path.join function to avoid specific OS issue

@Romakita Romakita merged commit b22339f into master Dec 23, 2024
11 checks passed
@Romakita
Copy link
Contributor Author

🎉 This PR is included in version 6.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants