chore: merge changes

This commit is contained in:
emirsassan 2025-06-04 21:35:58 +03:00 • committed by LynithDev
parent 5a427c0379
commit 831514d8c7

View file

@ -3,15 +3,21 @@ use std::path::Path;
use std::process::Command;
pub fn formatter(file: &Path) -> io::Result<()> {
Command::new("pnpm")
let result = Command::new("pnpm")
.arg("eslint")
.arg("--flag")
.arg("unstable_ts_config")
.arg("--fix")
.arg(file)
.output()
.map(|_| ())
.map_err(io::Error::other)
.output();
match result {
Ok(_) => Ok(()),
Err(e) => {
eprintln!("error running formatter on {}: {}", file.display(), e);
Ok(())
}
}
}
const _: specta_typescript::FormatterFn = formatter;