summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-08 11:48:29 -0400
committerGitHub <noreply@github.com>2023-06-08 11:48:29 -0400
commit55f01508540e015563e5e54fd0652e81b347b9c1 (patch)
treedee62f23a86df0545801956aa4422825b940e821 /cli/factory.rs
parent976c38104569182ba41d9351a108e673f63ffb98 (diff)
refactor(compile): store the npm snapshot in the eszip (#19343)
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index c4331652e..30055da7d 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -30,6 +30,7 @@ use crate::npm::create_npm_fs_resolver;
use crate::npm::CliNpmRegistryApi;
use crate::npm::CliNpmResolver;
use crate::npm::NpmCache;
+use crate::npm::NpmCacheDir;
use crate::npm::NpmPackageFsResolver;
use crate::npm::NpmResolution;
use crate::npm::PackageJsonDepsInstaller;
@@ -270,8 +271,9 @@ impl CliFactory {
pub fn npm_cache(&self) -> Result<&Arc<NpmCache>, AnyError> {
self.services.npm_cache.get_or_try_init(|| {
Ok(Arc::new(NpmCache::new(
- self.deno_dir()?.npm_folder_path(),
+ NpmCacheDir::new(self.deno_dir()?.npm_folder_path()),
self.options.cache_setting(),
+ self.fs().clone(),
self.http_client().clone(),
self.text_only_progress_bar().clone(),
)))