Good clarification. Perhaps the compiler API is the better choice here? I&#x27;m not fully aware of the differences &#x2F; divisions between the two. <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;wiki&#x2F;Using-the-Compiler-API" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;wiki&#x2F;Using-the-Compi...</a>