fn main() {
#[cfg(not(target_arch = "wasm32"))]
{
let output_dir = std::env::args()
.nth(1)
.unwrap_or_else(|| "bindings".to_string());
unsafe { std::env::set_var("TS_RS_EXPORT_DIR", &output_dir) };
myko::codegen::generate_item_types(&output_dir)
.expect("Failed to generate TypeScript types");
}
#[cfg(target_arch = "wasm32")]
{
panic!("typegen is not supported on wasm32");
}
}