TauRPC
TauRPC copied to clipboard
Export types in CI?
Hello!
I'm having difficulty building my application in CI when using Tauri (v1.7.2) and TauRPC (v0.2.7).
For simplicity reasons, our team would like to .gitignore bindings.ts
, as the file tends to create merge conflicts and adds a little clutter to PRs.
But (for obvious reasons) this causes the frontend build to fail, as the createTauRPCProxy
function can't be imported from a file that doesn't exist.
I've attempted a number of methods for exporting the types at build time, i.e. exporting the export_types function and running it from src-tauri/main.rs
, but found this was unsuccessful; after a few hours of troubleshooting, I have to admit I am a little out of my depth when getting into the finer details of Tauri build-time behavior.
Is there a method you would recommend for accomplishing this end? Or a place I might look next for guidance on making progress?
Thanks so much!