Add --ignore-missing
option to nx run
to run non-existent targets as noop without failing
#28415
Closed
akwodkiewicz
started this conversation in
Feature Requests
Replies: 2 comments
-
Any combination of composing targets differently with |
Beta Was this translation helpful? Give feedback.
0 replies
-
As a workaround,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to run
so that Nx will not fail when
some-target
does not exist on foobar, but just do nothing.Why?
Obviously I don't want to run
foobar:some-target
verbatim.In my Dockerfile, I have the project parametrized (
$NX_PROJECT_NAME
) and I am reusing the same Dockerfile with multiple projects.I want to add an additional target that needs to be run during the image build process, but the target will only be specified for some of the projects that use that Dockerfile.
I'd like to add the following line and call it a day:
RUN nx run --ignore-missing $NX_PROJECT_NAME:some-target
However, since there is no flag like this one, I need to parse project configuration which feels very roundabout:
Beta Was this translation helpful? Give feedback.
All reactions