-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildTarget is hardcoded and only modifies configuration #553
Comments
Update: adding issue of nx-devkit here for visibility It does not delegate the build work if |
Hi, @mpsanchis. Regarding the
As a workaround for you, I suggest having the option I firmly believe that the Let me know your thoughts about this workaround and if it solves your problem. |
Agreed :) Actually I was playing with the different alternatives, and this is the cleanest one. Plus, it avoids the nasty bug when calling |
closed by #571 Changes available on version 8.0.0 |
Thank you, @mpsanchis, for opening the issue and telling us your problem. The changes are available in version 8.0.0. |
Hi Diego,
Today I noticed two details about the
buildTarget
option, which imho should be modified for (1) improved understanding and (2) flexibility. These are:buildTarget
is actually only modifying the build target configuration. In the end, you call the NX devkit to run something likenx run my-module:my-build-target:my-configuration
, and this parameter only modifies the third part of this string. I would expect that, being namedbuildTarget
, it modifies themy-build-target
part, not themy-configuration
part.build
, but what if they're not? I am having issues with the nx-devkit right now, because it won't correctly run the target if it depends on other targets. In my case, I have to run something likebuild-npm-library
instead of the standardbuild
, and because this value is hardcoded in this plugin, I can't even modify it by passing it as an option.I know that changing these is a breaking change, but semantically would make a lot of sense.
Thank you in advance, and congratulations for the great plugin
The text was updated successfully, but these errors were encountered: