Replies: 1 comment
-
UPD: I gave up to use a buildable lib as it seems to have even more challenges (like to support it's rebuilds before calling nx test). Simply changed tsConfig to have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm struggling to get buildable libraries into use.
The idea: provide library that will be a source for i18n assets and ways to integrate it with different types of apps in nx repository.
So I've made shared library with translations as json files and integration variants to use it in different contexts (express, nest, out of framework use). For front apps I simply copy json assets in a build step via
assets:{glob,input,outpu}
, for use in backends I've marked lib as buildable and specify path to it's dist folder in ts alias.At this point it does what it should but I have to rebuild lib before building app. For production there is build --with-deps, but no such thing on serve state. How can I achieve lib rebuilds as dep? Or mb I'm doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions