I need to run affected:build with some additional params (baseUrl, deployUrl etc).
I feel like it is not possible, especially for multiple apps with different sets of params.
so I want to use nx print-affected, parse output, and then run related commands.
Q: how do I get just a list of affected apps and nothing more?
right now I’m using this script:
nx print-affected --target=build --select=tasks.target.project
```> email@example.com affected:print
> nx print-affected –target=build –select=tasks.target.project
and I want just
If you know any other way to run affected apps with additional params - please, share
When I run that command (firstname.lastname@example.org) I get the output you want - just the affected apps, nothing else.
Are you manually entering the command in a terminal prompt, or running it programmatically? If it’s the latter, could that be responsible for the extra output, not Nx itself?
programmaticaly, bash shell. in the terminal it works as expected.
If you’re running it as an NPM script you could use the
npm run affected:print --silent
(Sorry for the delayed reply!)