@@ -9,7 +9,7 @@ pub struct TypeScript_original {
9
9
main_file_path : String ,
10
10
11
11
//specific to Typescript
12
- compiler : String ,
12
+ interpreter : String ,
13
13
}
14
14
15
15
impl ReplLikeInterpreter for TypeScript_original { }
@@ -27,7 +27,7 @@ impl Interpreter for TypeScript_original {
27
27
//pre-create string pointing to main file's and binary's path
28
28
let mfp = lwd + "/main.ts" ;
29
29
30
- let compiler = match TypeScript_original :: get_interpreter_option ( & data, "compiler " ) {
30
+ let interpreter = match TypeScript_original :: get_interpreter_option ( & data, "interpreter " ) {
31
31
Some ( user_compiler) => user_compiler. to_string ( ) . replace ( "\" " , "" ) ,
32
32
None => "ts-node" . to_string ( )
33
33
} ;
@@ -36,7 +36,7 @@ impl Interpreter for TypeScript_original {
36
36
support_level,
37
37
code : String :: new ( ) ,
38
38
main_file_path : mfp,
39
- compiler
39
+ interpreter
40
40
} )
41
41
}
42
42
@@ -123,7 +123,7 @@ impl Interpreter for TypeScript_original {
123
123
124
124
fn execute ( & mut self ) -> Result < String , SniprunError > {
125
125
//run th binary and get the std output (or stderr)
126
- let interpreter = TypeScript_original :: get_interpreter_or ( & self . data , & self . compiler ) ;
126
+ let interpreter = TypeScript_original :: get_interpreter_or ( & self . data , & self . interpreter ) ;
127
127
let output = Command :: new ( interpreter. split_whitespace ( ) . next ( ) . unwrap ( ) )
128
128
. args ( interpreter. split_whitespace ( ) . skip ( 1 ) )
129
129
. arg ( & self . main_file_path )
0 commit comments