From bcb6ee9d0864f490f6da47cbe2593310b21333ff Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sun, 12 Mar 2023 23:32:59 -0400 Subject: refactor(npm): push npm struct creation to a higher level (#18139) This has been bothering me for a while and it became more painful while working on #18136 because injecting the shared progress bar became very verbose. Basically we should move the creation of all these npm structs up to a higher level. This is a stepping stone for a future refactor where we can improve how we create all our structs. --- cli/graph_util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/graph_util.rs') diff --git a/cli/graph_util.rs b/cli/graph_util.rs index ecae9ea4e..0a9436833 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -165,8 +165,8 @@ pub async fn create_graph_and_maybe_check( ps.options.to_maybe_jsx_import_source_config(), ps.maybe_import_map.clone(), ps.options.no_npm(), - ps.npm_resolver.api().clone(), - ps.npm_resolver.resolution().clone(), + ps.npm_api.clone(), + ps.npm_resolution.clone(), ps.package_json_deps_installer.clone(), ); let graph_resolver = cli_resolver.as_graph_resolver(); -- cgit v1.2.3