commit a8ba1104fc03467f457c8a4d6166c8dd222f9851
parent 8039ede82f84916f2da9c584379642643f0be551
Author: triesap <tyson@radroots.org>
Date: Sat, 21 Feb 2026 15:32:37 +0000
core: force unit dimension export for deterministic ts checks
- export radrootscoreunitdimension explicitly in ts export test setup path
- remove dependence on incidental dependency graph inclusion during ts-rs generation
- keep unit and unit-dimension assertion coverage stable across clean ci environments
- verify with `radroots-core` ts-rs tests and xtask sdk export-ts command locally
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs
@@ -34,7 +34,7 @@ pub use unit::{
#[cfg(all(test, feature = "ts-rs", feature = "std"))]
mod ts_export_tests {
- use crate::RadrootsCoreDiscount;
+ use crate::{RadrootsCoreDiscount, RadrootsCoreUnitDimension};
use std::{
fs,
path::{Path, PathBuf},
@@ -63,6 +63,7 @@ mod ts_export_tests {
fn export_types() {
RadrootsCoreDiscount::export_all().expect("export core ts-rs definitions");
+ RadrootsCoreUnitDimension::export_all().expect("export core unit dimension definition");
}
#[test]