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

Can I ignore an entry in exports? #30

Closed
Tracked by #130
NullVoxPopuli opened this issue Jun 5, 2023 · 5 comments · Fixed by #59
Closed
Tracked by #130

Can I ignore an entry in exports? #30

NullVoxPopuli opened this issue Jun 5, 2023 · 5 comments · Fixed by #59
Labels
feature New feature or request planned I'm going to do this

Comments

@NullVoxPopuli
Copy link

my packages have a legacy/support entrypoint, which isn't exactly public API, but is there for folks who know about.

It's also a CJS module, but with an ambiguous entry in the exports.
I'd like to ignore checking this file / exports, because it ultimately wouldn't be used by 99.999% of users.

Is this possible? possible soon? thanks!!

@andrewbranch
Copy link
Collaborator

Yes 😄

@gabro
Copy link

gabro commented Jun 30, 2023

I also have a similar scenario, but for .css files that my component library exposes.

Does it make sense to exclude them? Or would it be better to provide a .d.ts for those .css files?

@andrewbranch
Copy link
Collaborator

It probably makes more sense to exclude them.

@RobbieTheWagner
Copy link

How can we exclude CSS files then?

@Kenneth-Sills
Copy link

@RobbieTheWagner Looks like this'd be done over with the CLI's --exclude-entrypoints argument, which can also be pre-specified in the .attw.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request planned I'm going to do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants