denoland / deno_emit

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
https://jsr.io/@deno/emit
MIT License
225 stars 23 forks source link

How can I typecheck a module graph from rust? #57

Closed ProofOfKeags closed 1 year ago

ProofOfKeags commented 2 years ago

I saw in the README that this module does no typechecking during its bundling process. I would like to do the typechecking prior to bundling, and I do not want to make the deno CLI application a dependency. What library does the typechecking for the CLI?

dsherret commented 1 year ago

It's not possible at the moment and out of scope for deno_emit. The way to do this would be with deno check mod.ts