-
Notifications
You must be signed in to change notification settings - Fork 47
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
Without --delete
, if barrel file already exists, then it doesn't work properly
#153
Comments
--delete
, if barrel file already exists, then it doesn't work properly
No activity has been seen recently, marking as stale. If this is a mistake please reach out to a collaborator |
This is a valid issue. Shame there's an inactivity bot closing issues on an apparently-inactive repository. Premature optimization. 😞 |
Confirmed this is still an issue... |
this is a known issue. a PR is welcome to be submitted and I've been working on a V3 that compiles to ESM compatible version as well. Its been done during my free time between work, travel, and personal responsibilities. |
Is there a work around? If I generate all barrels and then on save, have it regenerate this happens to the barrels it already generated |
@nrgapple The workaround currently is to make sure you have the |
I've tried both with |
No activity has been seen recently, marking as stale. If this is a mistake please reach out to a collaborator |
No activity has been seen recently, marking as stale. If this is a mistake please reach out to a collaborator |
I found another bug when using this tool programmatically (see #680). If you pass the |
Using:
if barrel doesn't exist:
if barrel already exists:
The error is here:
What is the purpose of returning early?
Why should we assume it contains descendent modules...what if someone has added one?
directory.barrel
only contains{name, path}
of the a barrel file. Is this some sort of regression? I can't figure it out.The text was updated successfully, but these errors were encountered: