summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-11 18:10:51 -0400
committerGitHub <noreply@github.com>2023-04-11 18:10:51 -0400
commit8820f6e922d3332d0fdd035b504897503d4cdf3a (patch)
treee7e858bdcc2019812987199e9da5a96b09764652 /cli/proc_state.rs
parent805214626f1058ef3114be302ad7deb6aa834a6d (diff)
fix(npm): do not "npm install" when npm specifier happens to match package.json entry (#18660)
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index 188f57289..d3a0618ef 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -393,6 +393,7 @@ impl ProcState {
build_graph_with_npm_resolution(
graph,
+ &self.resolver,
&self.npm_resolver,
roots.clone(),
&mut cache,
@@ -695,6 +696,7 @@ impl ProcState {
let mut graph = ModuleGraph::default();
build_graph_with_npm_resolution(
&mut graph,
+ &self.resolver,
&self.npm_resolver,
roots,
loader,