Open ai opened 4 months ago
Good idea, the only thing I'd change is to rename missed
to exclude
exclude
for me looks like list to exclude from paths
, like !pattern
in glob
so, wouldn't the - paths: 'core/*.ts', !core/test/*.test.ts
pattern work in your case? Would you prefer an explicit config setting to it?
No, !
only affect to the glob matching pattern, no to the list:
glob({
pattern: ['a*.txt', '!ab.txt'],
files: ['a.txt', 'ab.txt']
}) //=> true, since `a.txt` still pass ['a*.txt', '!ab.txt'] pattern
I see. Still, I think "skip" or "ignore" would suit better than "missed"
Use case:
So I suggest something like: