We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature request
When I pass a directory into the watchFile, it emits UsageError.
watchFile
Instead of emitting error, it would be better if it add the value into watchedDirs.
watchedDirs
It'll be beneficial if we change the file watching logic in watcher.js:47-59 into this.
if (watchFile) { for (const filePath of watchFile) { if (fs.existsSync(filePath) && !fs.lstatSync(filePath).isFile()) { watchedDirs.push(filePath); } else { watchedFiles.push(filePath); } } } else { watchedDirs.push(sourceDir); }
Thanks for creating this lib.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is this a feature request or a bug?
Feature request
What is the current behavior?
When I pass a directory into the
watchFile
, it emits UsageError.What is the expected or desired behavior?
Instead of emitting error, it would be better if it add the value into
watchedDirs
.Suggested solution.
It'll be beneficial if we change the file watching logic in watcher.js:47-59 into this.
Thanks for creating this lib.
The text was updated successfully, but these errors were encountered: