-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(workspace): delegate to local ng script to allow customization #1544
Conversation
@vsavkin Just a quick question. I pushed this WIP PR with a quick & dirty implementation of changing the current implementation, s.t. it uses the I was just wondering, because in the implementation right now I've used the
Is this intentional and should be preserved? |
I'm actually surprised there's a need to rely on the user to have the |
@alfaproject well that would be another option. but based on a discussion with @vsavkin relying on the package.json script allows the user to better customize the invocation of the ng script. Otherwise it would be hidden by NX |
Right, I guess there's a valid argument for both ways |
@juristr I like your implementation. I think using I think we should use failedProjects for parallel execution as well. I imagine it was easier to do it the way it is done. |
@vsavkin Alright awesome. Gonna clean up the implementation and complete this PR 👍 |
9393983
to
2fd45ae
Compare
Alright, should be ready for review @vsavkin. There are some tests that aren't passing (even on Another thing I noticed, is that the message "You can isolate the above projects by passing --only-failed" is not always printed. Probably due to this line ..if the failing project is the 1st one to run, then the message isn't being printed. Although IMHO it should. Do you know what's the reasoning behind |
2fd45ae
to
10b4086
Compare
@juristr CI passed, so it might have been something on your local. I think the reasoning behind I think the PR looks good. I'm going to merge it. Thank you @juristr ! |
There was actually a breaking integration test which I fixed and pushed yesterday in this commit 🙂 |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior (This is the behavior we have today, before the PR is merged)
When invoking the various NX CLI commands in non-parallel mode, it directly invokes the ng binary in the node_modules folder. That prevents applying customizations such as setting the memory limits.
Expected Behavior (This is the new behavior we can expect after the PR is merged)
The behavior should be unified between parallel execution (which uses the
ng
script in the package.json) and the non-parallel execution.Issue
#1110