Best practice for utilizing subpaths in Nx Module libraries #27788
Unanswered
ksdc-grantw
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I wanted to get some feedback on utilizing subpaths when importing from other modules. I have a Nx workspace that contains apps and shared libs, including a
shared-ui
library. As you would imagine, this hold many UI components that are all exported from the rootindex.ts
file.But the library is growing and I would like to enforce some kind of logical grouping instead of exporting everything from
shared-ui
. When is library is created, a path is added totsconfig.base.json
, like so:So I thought, "What if I just add to that?", ie:
This works, things compile and build and run, and the linter is happy. My question is:
Im going to go ahead with this for now, I need to move forward. But I look forward to response and discussion.
Thanks,
Grant
Beta Was this translation helpful? Give feedback.
All reactions