diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2020-09-05 20:31:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 13:31:14 +0200 |
commit | 34e98fa59cd70f7ce64e587bef41fac536a3076b (patch) | |
tree | 456d1ad748f48659739b5a0010b7ba97780d6937 /cli/main.rs | |
parent | a14b3c9e30a1b18f70519eac03be5a4648b65036 (diff) |
feat(install): bundle before installation (#5276)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/main.rs b/cli/main.rs index 574ba9ed2..e6fab71c8 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -304,15 +304,7 @@ async fn install_command( root: Option<PathBuf>, force: bool, ) -> Result<(), ErrBox> { - // Firstly fetch and compile module, this step ensures that module exists. - let mut fetch_flags = flags.clone(); - fetch_flags.reload = true; - let global_state = GlobalState::new(fetch_flags)?; - let main_module = ModuleSpecifier::resolve_url_or_path(&module_url)?; - let mut worker = MainWorker::create(&global_state, main_module.clone())?; - worker.preload_module(&main_module).await?; - installer::install(flags, &module_url, args, name, root, force) - .map_err(ErrBox::from) + installer::install(flags, &module_url, args, name, root, force).await } async fn lint_command( |