mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(npm): support dist tags specified in npm package dependencies (#16652)
Closes #16321
This commit is contained in:
parent
300fd07fad
commit
6da6ed8985
4 changed files with 335 additions and 111 deletions
|
@ -518,6 +518,12 @@ impl TestNpmRegistryApi {
|
|||
.insert(package_to.0.to_string(), package_to.1.to_string());
|
||||
}
|
||||
|
||||
pub fn add_dist_tag(&self, package_name: &str, tag: &str, version: &str) {
|
||||
let mut infos = self.package_infos.lock();
|
||||
let info = infos.get_mut(package_name).unwrap();
|
||||
info.dist_tags.insert(tag.to_string(), version.to_string());
|
||||
}
|
||||
|
||||
pub fn add_peer_dependency(
|
||||
&self,
|
||||
package_from: (&str, &str),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue