moroshko / react-scanner

Extract React components and props usage from code.
MIT License
563 stars 40 forks source link

Process exits when it cannot find any files to parse #68

Open gyfchong opened 1 year ago

gyfchong commented 1 year ago

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.