Skip to content

Commit b335763

Browse files
nicolo-ribaudoevocateur
authored andcommitted
fix(package-graph): Flatten cycles to avoid skipping packages (#2185)
1 parent e1b3d62 commit b335763

37 files changed

+512
-52
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
+---+
2+
| A |
3+
+---+
4+
|
5+
v
6+
+---+ +---+ +---+
7+
| E | --> | B | <-- | G |
8+
+---+ +---+ +---+
9+
^ | ^
10+
| v |
11+
+---+ +---+ +---+
12+
| D | <-- | C | --> | F |
13+
+---+ +---+ +---+
14+
15+
Cycles:
16+
B -> C -> D -> E -> B
17+
B -> C -> F -> G -> B
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"version": "1.0.0"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "cycle-intersection"
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "a",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"b": "^1.0.0"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "b",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"c": "^1.0.0"
6+
}
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "c",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"d": "^1.0.0",
6+
"f": "^1.0.0"
7+
}
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "d",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"e": "^1.0.0"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "e",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"b": "^1.0.0"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "f",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"g": "^1.0.0"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "g",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"b": "^1.0.0"
6+
}
7+
}

0 commit comments

Comments
 (0)