diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-10-19 20:19:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 21:19:20 +0200 |
commit | 3f5513758d9e237d7c3775165c4164db89a95d31 (patch) | |
tree | 37b6e2526446d23a2373ecc53932ae6805aeff8a /cli/main.rs | |
parent | 9d664f8375856be228e4f98b8381ac934d84604b (diff) |
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
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<PathBuf>, 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. |