M-Zuber / npm-watch

run npm scripts when files change
MIT License
323 stars 38 forks source link

Does not work with patterns (macOS) #56

Closed inca closed 3 years ago

inca commented 6 years ago

There's a similar issue but in my case npm-watch actually works as long as the concrete file is specified, e.g.:

{
  watch: {
    compile: [
      'dir/file.js'
    ]
  }
}

As soon as I replace it with a pattern, e.g. dir/*.js, nothing gets restarted.

ligne13 commented 5 years ago

My answer on the similar issue : https://github.com/M-Zuber/npm-watch/issues/35#issuecomment-431081458

M-Zuber commented 3 years ago

Please test with the newest version and open a new issue if the problem still persists