-
Notifications
You must be signed in to change notification settings - Fork 143
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(watchTree): convert options.interval to seconds #113
Conversation
Please fix this! 👍 |
Released as |
Should you bounce to a major version number? Since this is a breaking API change :) |
+1 for moving to 1.0 anyway, this package is almost as old as npm :) |
Author wins, shipping 1.0 |
Shipped
|
I just upgraded and it stopped working for me, as in it doesn't re-run the command after changes are made. It does run the first time. At first I thought that the issue was that I had previously set --interval=0.1, but when I changed it to --interval=1 it still doesn't work. Removing --interval altogether does solve the issue. Am I doing something wrong here, or could this be a bug? (other than that: love this package. I use it in pretty much every project these days) |
Confirmed, thanks. The CLI is multiplying the interval * 1000, but then passing that to Fix coming |
@hilko released a fix in |
This is still not correct. If you watch multiple directories then the same options object is passed from CLI to I've raised #126 to fix this. |
Fixes #112.
interval
was only converted to seconds through the CLI. There should be some higher orderparseOptions
added to handle this kind of thing.This at least fixes the issue for the time being.
@mikeal review?