Hi I want to build all …
Hi. I want to build all projects related with dependency. In my project, server application implicitly depends on client because the server will serve static files built from client .
When I run nx build server , I expected server and client are built but client isn’t. Am I missing something?
Responses:
dep-graph seems correct.
you need to run nx affected --target=build then all affected projects will be rebuild
nx build server will only do what the command says: build the server
what you want is “build everything that is affected by my current changes”
Yes nx affected --target=build works to building everything affected by a change. If you want to explicitly build a project and its dependencies, you can run nx build server --with-deps (this won’t check what has been affected, it will just rebuild the server and its dependencies.)