diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-08-22 17:35:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 17:35:04 +0200 |
commit | c66386dbd20b735161017a239c6af013da1f1718 (patch) | |
tree | 312e4cc304901212c9d6fb95521e3e3799598531 /cli/proc_state.rs | |
parent | 57d48134d168cc128f075cb7381d773ea028c81e (diff) |
feat(unstable): Respect --cached-only flags for npm: specifiers (#15512)
This commit changes "npm:" specifier handling to respect "--cached-only" flags and adds "Download" messages for npm registry api calls.
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r-- | cli/proc_state.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs index a314b55d2..0ffca1fa9 100644 --- a/cli/proc_state.rs +++ b/cli/proc_state.rs @@ -217,8 +217,11 @@ impl ProcState { warn!("{}", ignored_options); } let emit_cache = EmitCache::new(dir.gen_cache.clone()); - let npm_resolver = - GlobalNpmPackageResolver::from_deno_dir(&dir, cli_options.reload_flag())?; + let npm_resolver = GlobalNpmPackageResolver::from_deno_dir( + &dir, + cli_options.reload_flag(), + cli_options.cache_setting(), + )?; Ok(ProcState(Arc::new(Inner { dir, |