Create a generic watch command that will run any arbitrary command of your choosing when a path matching your file globbing pattern is added/updated/deleted.
The following environment variables will be available to your command
watcher_added - A JSON array of relative paths added in the watch directory
watcher_removed - A JSON array of relative paths removed in the watch directory
watcher_changed - A JSON array of relative paths changed in the watch directory