#![allow(dead_code)] use ts_rs::TS; #[derive(TS)] #[ts(export, export_to = "path_bug/aaa/")] struct Foo { bar: Bar, } #[derive(TS)] #[ts(export_to = "../bindings/path_bug/")] struct Bar { i: i32, } #[test] fn path_bug() { export_bindings_foo(); assert!(Foo::default_output_path().unwrap().is_file()); assert!(Bar::default_output_path().unwrap().is_file()); }