summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/main.rs b/cli/main.rs
index f45586c61..fb02e5718 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -191,12 +191,10 @@ async fn install_command(
root: Option<PathBuf>,
force: bool,
) -> Result<(), AnyError> {
- // First, fetch and compile the module; this step ensures that the module exists.
- let mut fetch_flags = flags.clone();
- fetch_flags.reload = true;
- let global_state = GlobalState::new(fetch_flags)?;
+ let global_state = GlobalState::new(flags.clone())?;
let main_module = ModuleSpecifier::resolve_url_or_path(&module_url)?;
let mut worker = MainWorker::create(&global_state, main_module.clone())?;
+ // First, fetch and compile the module; this step ensures that the module exists.
worker.preload_module(&main_module).await?;
installer::install(flags, &module_url, args, name, root, force)
}