Skip to content

Account for "public" setting in bsconfig #824

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
Oct 5, 2023
Merged

Conversation

zth
Copy link
Collaborator

@zth zth commented Oct 4, 2023

This accounts for the "public" setting in bsconfig. Seems like a fairly hidden property, but we should still support it imo given that trying to use something not listed in public (when public is set) is an error, even though items appear in autocomplete.

Example from the forum: https://forum.rescript-lang.org/t/how-to-only-expose-one-module-from-a-lib/4744/2

@zth zth requested a review from cristianoc October 4, 2023 12:00
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

Is this documented anywhere?
Do you want to keep this feature?

@zth
Copy link
Collaborator Author

zth commented Oct 5, 2023

Not documented I think, at least not anymore. I don't understand why though, because it seems like a great feature to get around that you can't really hide top level modules.

I'd definitively want to keep the feature, at least OTOH. But I think posting on the forum about it might be good. Maybe someone remembers if this was deprecated at some point and if so why, given that it isn't documented from what I can see.

@zth zth merged commit 32325de into master Oct 5, 2023
@zth zth deleted the take-public-into-account branch October 5, 2023 07:29
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