-
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(node): use proper watch value with the node:execute executor #4083
Conversation
Nx Cloud ReportCI ran the following commands for commit 972de09. Click to see the status, the terminal output, and the build insights.
Sent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. we'll probably need a migration for this. Existing projects should have their workspace.json updated so that watch: true
is set, and doesn't break any existing expectations.
New projects will not have watch by default.
If you need help with the migration, let me know and I can guide you!
Sounds good, I'll take a look at adding the migration and reach out if I need any help. Thanks @Cammisuli |
@Cammisuli I took at shot at the migration (mainly following set-build-libs-from-source.ts as a reference). Wasn't sure what version this would fall under so I just used |
Alright, thank you! We'll probably get this in after v11. I'll check up again soon. |
I'm finally coming around to this and I seem to have found an issue with the execute watch setting not actually working... I'll see if I can fix it with this pr. Thanks again for your patience! |
So I had to remove the migration because the underlying issue is actually fixed. Now we pass the proper option from the execute builder to whatever underlying builder that's being called. I also changed a couple more things so that things are properly watched and reloaded when you do want to have |
Nice! Thanks for pushing those changes @Cammisuli |
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
When running a node app, the execute builder continues to watch for file changes when the watch mode is set to false.
Expected Behavior
The node application to run once and exit.
Related Issue(s)
Fixes #4054