How could we have a JSON file shared between both libraries and applications? #26141
Unanswered
zackarydev
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
-
We were thinking of having the file outside both libs and apps, TS allows us to import the JSON file. But if we make a change to the file Nx doesn't consider it as an effect, i.e. it doesn't cause the apps/libs to become affected.
Another solution is to create another lib just for that one config object but that seems pretty useless... Another option is to host it on a URL but that seems slightly overkill too (for this specific context).
Any other ideas?
cp /config/file.json /app/config.json
?Beta Was this translation helpful? Give feedback.
All reactions