The FindFromNpmPackages method in the AstVisitorFinder is too slow and too clever.
It is very likely that the order visitors are run in will have a big impact. So this means visitors can either be explicitly configured via a CLI option for single scripts or via extra config in a tsconfig file for projects.
The CLI option would override the config from tsconfig files. In fact if the CLI option was provided, tsos run would not even bother looking at the tsconfig file.
The
FindFromNpmPackages
method in theAstVisitorFinder
is too slow and too clever.It is very likely that the order visitors are run in will have a big impact. So this means visitors can either be explicitly configured via a CLI option for single scripts or via extra config in a tsconfig file for projects.
The CLI option would override the config from tsconfig files. In fact if the CLI option was provided,
tsos run
would not even bother looking at the tsconfig file.