2 Commits

Author SHA1 Message Date
Antoine Bluchet
3d123a1628 Fix watch directories instead of cwd files 2015-09-04 11:29:34 +02:00
Antoine Bluchet
506c7146e4 Watch refactor: improve tests, paths resolving
- move tests from bash to js
- removed `pm2_env`.watch path resolving in favor of chokidar `cwd`
  option ([see here](https://github.com/paulmillr/chokidar/blob/master/CHANGELOG.md#chokidar-100-7-april-2015)) (fix #1577)
- if watch is a boolean, path is set to process cwd (`pm2_env.pm_cwd`) (keep #1578 coverage)
2015-09-03 23:43:13 +02:00