moroshko / react-scanner

Extract React components and props usage from code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process exits when it cannot find any files to parse

gyfchong opened this issue · comments

Currently I'm trying to use this to scan multiple directories using await scanner.run() within a loop.

The issue is that some of these directories may or may not have the files I'm looking to match, so when the scanner decides to exit at the first sight of no files, this causes a problem in the rest of the process.

I expect it to let me know no files are found and perhaps leave it to me to decide what to do when it can't find any files.