The types of files generated are impacted by both the language of implementation and the deployment context. Example JavaScript might be a target but how you install the package will very depending on if you're targeting browser only, Deno only or the browser and Deno.
I can also see CMTools being used for documentation projects like a breamer presentation rendered with Pandoc. The --lang option doesn't seem a good fit there.
As the number of generated files increases the transform.ts module is going to get long. Maybe transform.ts holds the defaults then there is additional modules for project type, e.g. transform_jsbrowser.ts, transform_pandoc.ts.