summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/module_loader.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs
index 1da3f1f2a..5752c50aa 100644
--- a/cli/module_loader.rs
+++ b/cli/module_loader.rs
@@ -75,6 +75,9 @@ pub async fn load_top_level_deps(factory: &CliFactory) -> Result<(), AnyError> {
let npm_resolver = factory.npm_resolver().await?;
if let Some(npm_resolver) = npm_resolver.as_managed() {
npm_resolver.ensure_top_level_package_json_install().await?;
+ // TODO(nathanwhit): we call `cache_packages` if the lockfile is modified,
+ // so by calling it here it's possible we end up calling it twice
+ npm_resolver.cache_packages().await?;
}
// cache as many entries in the import map as we can
if let Some(import_map) = factory.maybe_import_map().await? {