What is the rationale be…

less than 1 minute read

What is the rationale behind affecting a large portion of libraries and having to rebuild/test them when the nx.json file is edited? I can understand needing to relint them as tags could change but if I add a tag to a library why do I need to retest and rebuild a massive amount of the repo. Referring to using the distributed caching functionality here, editing nx.json seems to bust the cache.

Responses:

I learned earlier today that you can configure what is affected by changes to nx.json in nx.json, the default is that all changes to nx.json affect all apps/libs.

Not sure if you can configure it to only lint on those changes though :confused:

https://nx.dev/react/workspace/configuration#-code-nx-json-code-

Updated: