floatdrop / gulp-watch

Watch, that actually is an endless stream
MIT License
643 stars 99 forks source link

"Watched unexpected filepath" error dumped from watcher #293

Closed loganfsmyth closed 6 years ago

loganfsmyth commented 7 years ago

I made a reproduction repository in https://github.com/loganfsmyth/__gulp-watch-bug

Seems to be treating my touch packages/dep/package.json as if it were inside the main/node_modules folder instead for some reason.

Here's the stuff dumped in the console:

Node.js version: v6.11.2 darwin x64 gulp-watch version: 4.3.11 Globs: "./packages/*/package.json" Filepath: /Users/<username>/projects/__gulp-watch-bug/packages/main/node_modules/dep/package.json Event: change Process CWD: /Users/<username>/projects/__gulp-watch-bug Options:

{
  "events": [
    "add",
    "change",
    "unlink"
  ],
  "ignoreInitial": true,
  "readDelay": 10
}