summaryrefslogtreecommitdiff
path: root/cli/resolver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/resolver.rs')
-rw-r--r--cli/resolver.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/cli/resolver.rs b/cli/resolver.rs
index 7f49116f4..6fa8eaabe 100644
--- a/cli/resolver.rs
+++ b/cli/resolver.rs
@@ -182,14 +182,20 @@ impl CliGraphResolver {
self
}
+ pub async fn force_top_level_package_json_install(
+ &self,
+ ) -> Result<(), AnyError> {
+ self
+ .package_json_deps_installer
+ .ensure_top_level_install()
+ .await
+ }
+
pub async fn top_level_package_json_install_if_necessary(
&self,
) -> Result<(), AnyError> {
if self.found_package_json_dep_flag.is_raised() {
- self
- .package_json_deps_installer
- .ensure_top_level_install()
- .await?;
+ self.force_top_level_package_json_install().await?;
}
Ok(())
}