Change how environment variable is read

This commit is contained in:
Gustavo
2024-03-06 16:44:51 -03:00
parent afbc24e34c
commit b325448cc6
+1 -1
View File
@@ -34,7 +34,7 @@ impl DerivedTS {
.export
.then(|| self.generate_export_test(&rust_ty, &generics));
let export_dir = std::env::var("TS_RS_EXPORT_DIR").ok();
let export_dir = std::option_env!("TS_RS_EXPORT_DIR");
let export_to = {
let path = match self.export_to.as_deref() {
Some(dirname) if dirname.ends_with('/') => {