Skip to content

Commit

Permalink
fix(cli/install): preserve compat flag (#14223)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyrupThinker authored Apr 6, 2022
1 parent 0df1854 commit b8d66a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/tools/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ fn resolve_shim_data(
executable_args.push("--no-prompt".to_string());
}

if flags.compat {
executable_args.push("--compat".to_string());
}

if !flags.v8_flags.is_empty() {
executable_args.push(format!("--v8-flags={}", flags.v8_flags.join(",")));
}
Expand Down Expand Up @@ -588,6 +592,7 @@ mod tests {
allow_read: Some(vec![]),
typecheck_mode: TypecheckMode::None,
log_level: Some(Level::Error),
compat: true,
..Flags::default()
},
&InstallFlags {
Expand All @@ -609,6 +614,7 @@ mod tests {
"--allow-net",
"--quiet",
"--no-check",
"--compat",
"http://localhost:4545/echo_server.ts",
"--foobar",
]
Expand Down

0 comments on commit b8d66a6

Please sign in to comment.