Mix compiler that regenerates the TypeScript client after Elixir recompiles.
Configure in your project's config/config.exs:
config :elixir_ts_rpc,
router: MyApp.Router,
out: Path.expand("../client/src/rpc.gen.ts", __DIR__)And append to the compilers list in mix.exs:
compilers: Mix.compilers() ++ [:elixir_ts_rpc]Build artifacts
The generated .ts file is tracked as a build artifact via manifests/0.
Running mix clean removes it along with the standard BEAM artifacts.