feat: rename generated file to have bg instead of wasm

This commit is contained in:
Sendil Kumar
2018-03-05 22:25:14 +01:00
parent 644e96cd46
commit d5ac523fe2
11 changed files with 26 additions and 26 deletions

View File

@ -177,13 +177,13 @@ impl Project {
.expect("failed to run bindgen");
let mut wasm = Vec::new();
File::open(root.join("out_wasm.wasm")).unwrap()
File::open(root.join("out_bg.wasm")).unwrap()
.read_to_end(&mut wasm).unwrap();
let obj = cli::wasm2es6js::Config::new()
.base64(true)
.generate(&wasm)
.expect("failed to convert wasm to js");
File::create(root.join("out_wasm.d.ts")).unwrap()
File::create(root.join("out_bg.d.ts")).unwrap()
.write_all(obj.typescript().as_bytes()).unwrap();