-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Watch mode lets you configure which source files should be watched. Certain directories are ignored by default, using https://github.com/novemberborn/ignore-by-default. Currently if you use a negation pattern in --source it stops ignoring those default directories. This is annoying as you'll have to repeat them manually.
It would be good to stop one of those default directories from being ignored. Then we could let you specify a negation pattern without disabling all default ignore patterns.
You can find the current logic at https://github.com/sindresorhus/ava/blob/1868204c1901f45b4f66a520ef6486fdd71fe1d2/lib/watcher.js#L273:L276.