-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add pruning to yarn lock v2 dep graph builder
- Loading branch information
1 parent
1341f41
commit ded8dde
Showing
28 changed files
with
688 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
test/jest/dep-graph-builders/fixtures/yarn-lock-v2/hand-rolled/empty/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "empty", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT" | ||
} |
11 changes: 11 additions & 0 deletions
11
test/jest/dep-graph-builders/fixtures/yarn-lock-v2/hand-rolled/empty/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
|
||
"empty@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "empty@workspace:." | ||
languageName: unknown | ||
linkType: soft |
10 changes: 10 additions & 0 deletions
10
.../fixtures/yarn-lock-v2/hand-rolled/repeat-node-in-different-top-level-chains/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "repeat-node-in-different-top-level-chains", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"a": "1.0.0", | ||
"d": "1.0.0" | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ers/fixtures/yarn-lock-v2/hand-rolled/repeat-node-in-different-top-level-chains/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
|
||
"repeat-node-in-different-top-level-chains@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "empty@workspace:." | ||
languageName: unknown | ||
linkType: soft | ||
dependencies: | ||
a: 1.0.0 | ||
d: 1.0.0 | ||
|
||
"a@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "a@npm:1.0.0" | ||
dependencies: | ||
b: 1.0.0 | ||
|
||
"b@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "b@npm:1.0.0" | ||
dependencies: | ||
c: 1.0.0 | ||
|
||
"c@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "c@npm:1.0.0" | ||
|
||
"d@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "d@npm:1.0.0" | ||
dependencies: | ||
b: 1.0.0 |
9 changes: 9 additions & 0 deletions
9
...uilders/fixtures/yarn-lock-v2/hand-rolled/repeat-node-within-top-level-chain/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "repeat-node-within-top-level-chain", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"a": "1.0.0" | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...h-builders/fixtures/yarn-lock-v2/hand-rolled/repeat-node-within-top-level-chain/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
|
||
"repeat-node-within-top-level-chain@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "empty@workspace:." | ||
languageName: unknown | ||
linkType: soft | ||
dependencies: | ||
a: 1.0.0 | ||
|
||
"a@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "a@npm:1.0.0" | ||
dependencies: | ||
b: 1.0.0 | ||
d: 1.0.0 | ||
|
||
"b@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "b@npm:1.0.0" | ||
dependencies: | ||
c: 1.0.0 | ||
|
||
"c@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "c@npm:1.0.0" | ||
|
||
"d@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "d@npm:1.0.0" | ||
dependencies: | ||
b: 1.0.0 |
9 changes: 9 additions & 0 deletions
9
test/jest/dep-graph-builders/fixtures/yarn-lock-v2/hand-rolled/simple-chain/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "simple-chain", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"a": "1.0.0" | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
test/jest/dep-graph-builders/fixtures/yarn-lock-v2/hand-rolled/simple-chain/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
|
||
"simple-chain@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "empty@workspace:." | ||
languageName: unknown | ||
linkType: soft | ||
dependencies: | ||
a: 1.0.0 | ||
|
||
"a@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "a@npm:1.0.0" | ||
dependencies: | ||
b: 1.0.0 | ||
|
||
"b@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "b@npm:1.0.0" | ||
|
9 changes: 9 additions & 0 deletions
9
...est/dep-graph-builders/fixtures/yarn-lock-v2/hand-rolled/simple-cyclic-chain/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "simple-cyclic-chain", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"a": "1.0.0" | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
test/jest/dep-graph-builders/fixtures/yarn-lock-v2/hand-rolled/simple-cyclic-chain/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
|
||
"simple-cyclic-chain@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "empty@workspace:." | ||
languageName: unknown | ||
linkType: soft | ||
dependencies: | ||
a: 1.0.0 | ||
|
||
"a@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "a@npm:1.0.0" | ||
dependencies: | ||
b: 1.0.0 | ||
|
||
"b@npm:1.0.0": | ||
version: 1.0.0 | ||
resolution: "b@npm:1.0.0" | ||
dependencies: | ||
a: 1.0.0 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.