@@ -2,6 +2,7 @@ use std::process::Command;
fn main() {
println!("cargo:rerun-if-changed=interpreter.ts");
+
match Command::new("tsc").spawn() {
Ok(_) => println!("Was spawned :)"),
Err(e) => {
@@ -1 +1 @@
-pub static INTERPRTER_JS: &str = include_str!("../interpreter.js");
+pub static INTERPRTER_JS: &str = include_str!("../gen/interpreter.js");
@@ -8,6 +8,8 @@
"es6",
"dom"
],
+ "rootDir": "src",
"strict": true,
+ "outDir": "gen",
}