mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
fix(info): handle circular npm dependencies (#16692)
This commit is contained in:
parent
238590aa9f
commit
409e6c8402
1 changed files with 2 additions and 1 deletions
|
@ -580,7 +580,8 @@ impl<'a> GraphDisplayContext<'a> {
|
|||
));
|
||||
if let Some(package) = self.npm_info.packages.get(dep_id) {
|
||||
if !package.dependencies.is_empty() {
|
||||
if self.seen.contains(&package.id.as_serialized()) {
|
||||
let was_seen = !self.seen.insert(package.id.as_serialized());
|
||||
if was_seen {
|
||||
child.text = format!("{} {}", child.text, colors::gray("*"));
|
||||
} else {
|
||||
let package = package.clone();
|
||||
|
|
Loading…
Reference in a new issue