diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-12 23:32:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 23:32:59 -0400 |
commit | bcb6ee9d0864f490f6da47cbe2593310b21333ff (patch) | |
tree | e2e06d2466dec8022645e368455c1ed8f59cab7f /cli/standalone.rs | |
parent | 8db853514caae431a0ce91360d854c1b7f3c405f (diff) |
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.
Diffstat (limited to 'cli/standalone.rs')
-rw-r--r-- | cli/standalone.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs index c678dd37a..6d2c7551a 100644 --- a/cli/standalone.rs +++ b/cli/standalone.rs @@ -241,8 +241,8 @@ pub async fn run( parse_from_json(&base, &source).unwrap().import_map, )), false, - ps.npm_resolver.api().clone(), - ps.npm_resolver.resolution().clone(), + ps.npm_api.clone(), + ps.npm_resolution.clone(), ps.package_json_deps_installer.clone(), ) }, |