M-Zuber / npm-watch

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

Fix triggering when using "inline" pattern for conifig #67

Open lexoyo opened 5 years ago

lexoyo commented 5 years ago

Fix #35 Fix #56

Hi I hope this helps The problem is very annoying so I took 5 min to fix it Did not have time for unit tests though sorry :grin:


This change is Reviewable

M-Zuber commented 3 years ago

The problem here is that it will then result in changes to all file types restarting the scripts. In the most recent release, I have added the option to have a global config, where a user could then opt in to such behavior (or set a global default list of extensions). If you would be able to update this PR to take advantage of that, I would be happy to review it.