Hi,
Are you already using autoscan?
If yes, then I don’t think there is much you can do, just wait for this feature to arrive.
If not, then before the analysis, generate the report and import it with sonar.javascript.lcov.reportPaths
property (both JS and TS will work with this property).