- Upgrade to ES modules.
- Drop -n/--no-color flag, determine color based on TTY. Use FORCE_COLOR=0/1 envvar override color support.
- @atom/watcher is likely being discontinued, so switching to chokidar@3
- Fix typo in usage output.
- Fix package.json
main
entry.
- File watching is now handled by the
@atom/watcher
package. - BREAKING
Removed
i/--ignore
option. - BREAKING
-w/--watch
arguments are now specified as extglob patterns.
-
Add
-K/--kill-signal
option to overrideSIGTERM
with a custom signal. -
Add
-m/--multiple
flag to allow the kill signal to be sent to the process multiple times. -
-K
and-m
make upgrading a process on change possible, for examplewatchy -w /etc/nginx/nginx.conf -mK SIGHUP -- nginx
will upgrade nginx whenever the config file is changed.
-
BREAKING The path passed to
-w/--watch
is no longer split on comma. This was a bit of a lazy way to handle multiple paths and inherently prevented the possibility of watching a path with a comma. From0.7.0
on, specify multiple paths to watch by passing multiple-w/--watch
flags.For example, instead of
watchy -w bin,lib,CHANGELOG.md -- ls
use
watchy -w bin -w lib -w CHANGELOG.md -- ls
- Add a changelog.
- Add
--no-init-spawn
option to optionally not run the command on start, but only after changes.