-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: runOnChangeOnly=true #1751
Conversation
Fixed the problem in lib/monitor/run and made this test to run. Script will create a tmp file, which should not happen as runOnChangeOnly is set to true.
Moved run.kill outside the run function Moved up restart bind, before runCmd so that we can use it in run.kill If command is not to be run the we just need to watch files and not fork/spawn a child process Binding options with instance of run, so that we can use it in run.kill (https://travis-ci.org/github/remy/nodemon/builds/714612398) Updated run options inside if condition (https://travis-ci.org/github/remy/nodemon/builds/714620936)
This ensures that config.options.execOptions exists before accessing script (https://travis-ci.org/github/remy/nodemon/builds/714622542)
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. |
@remy Did you get time to look at this PR? |
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. |
Caught me at a personal time that I was actively avoiding the computer. I must have looked at it once, but I couldn't see tests for such significant changes. Happy to reopen if there's checks for the specific changes (that either shows fixes have been applied or otherwise). |
@remy Updated the test case to be run now in |
Please verify the test case for runOnChangeOnly under |
Okay, I'm always super wary of large code changes, even if they're rearranging, but this change still has all tests passing so either the 100s of tests I've written are garbage or your code hasn't broken anything 👍 Merging now. |
Thanks for merging and adding the label |
Updated