Hello Netlify team! Thank you so much for such an incredible service!
I am trying to put together an example of how to use Netlify with Monorepos managed by Nx.
And I need to use a custom “ignore build” command. Is there a way to use npm modules in the ignore command?
The reason I want to use Nx is that it knows about my repo’s dependency graph and allows me to determine whether a specific project (or any of its dependencies) has changed between commits. Nx offers a super simple command to determine this:
nx print-affected --base=HEAD~ --head=HEAD
Is there a way to use the “nx CLI” in the ignore command? (the npm modules get installed after the ignore command runs unfortunately)
build: ignore: nx print-affected --base=HEAD~ --head=HEAD
(the above command won’t be the final command that I will use, as I need to parse what it returns, and return a code 0 or 1 based on that, but for now, I just need to get it running)
If this is possible, then how could I see why the above is failing? On the “deploy” logs it hides any error output.