I am currently exploring the Typescript Compiler API to develop a tool that merges typescript files. I am curious if there is a way to:
- Modify the AST after parsing a .ts file.
- Convert the modified AST back into a .ts file.
I have reviewed the documentation on the Compiler API, but it appears to focus on read-only operations when working with the AST, whereas my interest lies in making modifications to the source files.
Any assistance would be greatly appreciated. Thank you.