pub fn js_package_gen( root_dir: impl AsRef<Path>, pkg_name: &str, type_defs: &[TypeDef], ) -> Result<()>