diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-17 17:38:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-17 17:38:50 -0400 |
| commit | 41f618a1df6bb8c66d7968ac64456139b9f4c197 (patch) | |
| tree | dbcc67e009cf70099be82ea3774669e8aefc6023 /cli/factory.rs | |
| parent | ad223362451688c13a4441563210f58bdb046a78 (diff) | |
fix(npm): improved optional dependency support (#19135)
Note: If the package information has already been cached, then this
requires running with `--reload` or for the registry information to be
fetched some other way (ex. the cache busting).
Closes #15544
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/factory.rs')
| -rw-r--r-- | cli/factory.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/factory.rs b/cli/factory.rs index a3da40036..0c85536c4 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -313,6 +313,7 @@ impl CliFactory { CliNpmRegistryApi::default_url().to_owned(), npm_resolution.clone(), self.options.node_modules_dir_path(), + self.options.npm_system_info(), ); Ok(Arc::new(CliNpmResolver::new( fs.clone(), @@ -557,8 +558,9 @@ impl CliFactory { self.deno_dir()?, self.npm_api()?, self.npm_cache()?, - self.npm_resolver().await?, self.npm_resolution().await?, + self.npm_resolver().await?, + self.options.npm_system_info(), self.package_json_deps_provider(), )) } |
