From 3f5513758d9e237d7c3775165c4164db89a95d31 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 19 Oct 2020 20:19:20 +0100 Subject: feat(cli/installer): Add missing flags for deno install (#7601) This commit adds support for following flags: - deno install --importmap - deno install --no-remote - deno install --lock - deno install --lock-write - deno install --cached-only - deno install --v8-flags - deno install --seed --- cli/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index ba2b18940..ecf8d5fc7 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -203,7 +203,10 @@ async fn install_command( root: Option, force: bool, ) -> Result<(), AnyError> { - let program_state = ProgramState::new(flags.clone())?; + let mut preload_flags = flags.clone(); + preload_flags.inspect = None; + preload_flags.inspect_brk = None; + let program_state = ProgramState::new(preload_flags)?; let main_module = ModuleSpecifier::resolve_url_or_path(&module_url)?; let mut worker = MainWorker::new(&program_state, main_module.clone()); // First, fetch and compile the module; this step ensures that the module exists. -- cgit v1.2.3