fix(npm): store npm binary command resolution in lockfile (#19219)

Part of #19038

Closes #19034 (eliminates the time spent re-resolving)
This commit is contained in:
David Sherret 2023-05-22 16:55:04 -04:00 committed by GitHub
parent 612226de8e
commit 7b4c483aa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 103 additions and 41 deletions

View file

@ -518,7 +518,7 @@ impl ReplSession {
self.has_initialized_node_runtime = true;
}
self.npm_resolver.add_package_reqs(npm_imports).await?;
self.npm_resolver.add_package_reqs(&npm_imports).await?;
// prevent messages in the repl about @types/node not being cached
if has_node_specifier {