AST and code generation using current TypeScript version #14906
-
How can I use the TypeScript source parser/compiler that is part of my installed e.g. I want to set up a little tool in my project to watch certain source files and when I make changes to them I want to parse the abstract syntax tree, find any I have tools I can reference for parsing (e.g. https://astexplorer.net/) and I'll figure out the transform part next but first I need to get access to the I did some investigating and it looks like dnt uses https://github.com/dsherret/ts-morph which appears to somehow compile/bundle its own version of the TypeScript compiler (here). I'd prefer to not need to grab |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The short answer is no - Deno doesn't expose TSC internals to users for programmatic access.
Using |
Beta Was this translation helpful? Give feedback.
The short answer is no - Deno doesn't expose TSC internals to users for programmatic access.
Using
ts-morph
or pullingtypescript
from a CDN is a preferred soluti…