-
-
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
YAML file passed to -w does not trigger restart when it changes #2216
YAML file passed to -w does not trigger restart when it changes #2216
Comments
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. |
This is still an issue. The work-around gets the job done, but could also falsely trigger a re-start if any other YAML files are in the watched directories. |
ACK - this is actually a bug, though not entirely apparent. If you run nodemon in the I'm trying to work on a fix for this. |
I wrote a fix last night but it's not fully passing tests (but I think those tests need to be updated). I've published a dev build if you want to try it out though - if you install using |
Tried it and it worked. Will watch for an updated release. |
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. |
Commenting to keep this alive. Any estimate on the next release? |
I'm still trying to scrape the time to get the tests to pass (I've marked as not-stale to prevent the bot from closing). The code change is there, but there's a lot of tests that fail (in the match logic) due to the change, and I'm trying to work out which are false negatives and which are real. Definitely going in soon…ish! |
That's going up in the latest release now 👍 |
🎉 This issue has been resolved in version 3.1.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
nodemon -v
: 3.1.4nodemon -w src/openapi.yaml -w src src/server.ts
Expected behaviour
A change to the file
src/openapi.yaml
should cause nodemon to restart the watched processActual behaviour
Changes to the YAML file have no effect
Work-around
Passing
--ext yaml,ts
causes the file to trigger restarts when it changes. However, I expected that an explicitly-specified file would not need to be further enabled by--ext
.The text was updated successfully, but these errors were encountered: