mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix ts interface being output to wrong filenames
This commit is contained in:
parent
b7a3321232
commit
1be9c36863
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ pub(crate) fn write_ts_interface(services: &[BackendService]) -> Result<()> {
|
|||
continue;
|
||||
}
|
||||
|
||||
let service_name = service.name.replace("Service", "").to_snake_case();
|
||||
let service_name = service
|
||||
.name
|
||||
.replace("Service", "")
|
||||
.replace("Backend", "")
|
||||
.to_snake_case();
|
||||
|
||||
write_dts_file(root, &service_name, service)?;
|
||||
write_js_file(root, &service_name, service)?;
|
||||
|
|
Loading…
Reference in a new issue