Feature Request: Ability to set default `export_to` directory
timephy opened this issue · 2 comments
Hey,
I've been using this library for a while on multiple projects now, and I've found myself wanting to set a default export_to
location once in a config or at the top of a given lib.rs
file (or similar) - maybe a Cargo.toml
file would be best?
Especially when working in cargo workspaces, it would be nice to configure ts-rs
so it will export all interfaces into a single directory/file. Having many (>10) export_to=".."
s is very verbose and error-prone.
Description of my case:
I've been working with SvelteKit a lot recently, you can only define one import-alias
directory/file. I use @bindings
to point to the bindings
directory generated by the library. And due to SvelteKit's limitations I can only point it to a single directory. But when defining types in multiple library crates, this makes the user experience worse.
Any update on this? 😅