Add Missing Fields From Scroll Event (#4022)

* Add onscroll field data

* Add bun 1.2.10 generated file changes

* Improve error messaging when bun is not installed
This commit is contained in:
Henry authored and GitHub committed 2025-05-07 11:57:32 -07:00
1 parent d00636ca31
commit c9ca9f32ad
14 files changed
+281 -37

No files matched your search

+16 -6
View File
@@ -172,13 +172,23 @@ fn gen_bindings(input_path: &Path, output_path: &Path, minify_level: MinifyLevel
.arg("--outfile")
.arg(output_path)
.args(minify_level.as_args())
.status()
.unwrap();
.status();
let status = match status {
Ok(status) => status,
Err(error) => {
if Command::new("bun").status().is_ok() {
panic!(
"Bun failed to generated bindings for {:?}. Error:\n{:?}",
input_path, error
);
} else {
panic!("Make sure you have Bun installed. Failed to generate bindings for {:?}. Error:\n{:?}", input_path, error);
}
}
};
if !status.success() {
panic!(
"Failed to generate bindings for {:?}. Make sure you have bun installed",
input_path
);
panic!("Bun failed to generate bindings for {:?}.", input_path);
}
}