1

I see that Nx is deprecating the print-affected command. The alternatives given does not produce the output I want.

Right now, I am using nx print-affected --target=<script name> which tells me which projects are affected for that target. I am not seeing a way to do this with either show projects, graph or affected. The closest command I see is show projects with the --affected flag, but it does not accept a target.

puter
  • 97
  • 9

1 Answers1

2

nx show projects --affected --with-target build should accomplish your goal

Craigory Coppola
  • 647
  • 4
  • 13
  • Thank you, for some reason I had an older version of Nx in the node_modules even though package.json has a newer version. That's why I didn't see this in the `--help` section. – puter Jul 26 '23 at 05:14