From 41f618a1df6bb8c66d7968ac64456139b9f4c197 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 17 May 2023 17:38:50 -0400 Subject: fix(npm): improved optional dependency support (#19135) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cli/factory.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/factory.rs') 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(), )) } -- cgit v1.2.3