diff options
author | Valentin Anger <syrupthinker@gryphno.de> | 2022-04-06 22:54:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 16:54:12 -0400 |
commit | b8d66a683a72e6d3b48e44d08fcdae433e4fb755 (patch) | |
tree | 0dd3a1b8a102ffbde94e6999f3871fb14690e253 | |
parent | 0df18542499d1220f1182496d3b7028eef243eb0 (diff) |
fix(cli/install): preserve compat flag (#14223)
-rw-r--r-- | cli/tools/installer.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index 686e127df..a4340e98c 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -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(","))); } @@ -588,6 +592,7 @@ mod tests { allow_read: Some(vec![]), typecheck_mode: TypecheckMode::None, log_level: Some(Level::Error), + compat: true, ..Flags::default() }, &InstallFlags { @@ -609,6 +614,7 @@ mod tests { "--allow-net", "--quiet", "--no-check", + "--compat", "http://localhost:4545/echo_server.ts", "--foobar", ] |