Whe any third party file imports a .json file, thirdPartyCEMs is empty.
What happens:
- find-dependencies.js calls
rsModuleLexer.parseAsync with json as fileData.
rsModuleLexer throws then a GenericFailure error, which is not catched by find-dependencies.js
cli.js catches the error in line 78 and logs Failed to add third party CEMs. ... , but the stack of the error is kind of useless and contains only the json file contents
Expected behavior:
Do not scan json files for dependencies, because it can not have a dependency.
Suggested fix:
skip the dependency scan for json files