From 48da3c17ea905f50b82948e6f94795e1589f852e Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Wed, 21 Aug 2024 15:23:32 -0700 Subject: fix(add): Handle packages without root exports (#25102) Fixes #24607. This PR makes the logic that caches top level dependencies (things present in import map) smarter, so we handle JSR dependencies without root exports. --- cli/tools/installer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools/installer.rs') diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index 456e5c1a6..1809e1f16 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -275,7 +275,7 @@ async fn install_local( } let factory = CliFactory::from_flags(flags); - crate::module_loader::load_top_level_deps(&factory).await?; + crate::tools::registry::cache_top_level_deps(&factory, None).await?; if let Some(lockfile) = factory.cli_options()?.maybe_lockfile() { lockfile.write_if_changed()?; -- cgit v1.2.3