forked from yarnpkg/berry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change data-structures used by hoisting algorithm to better fit its p…
…urpose (yarnpkg#745) * Speedup hoisting by introducing micro-optimizations * Add node name itself to the list of parent node names * Commit current unfinished work * Simplify hoister * Do not activate compat plugin for node-modules linker * Add hoisting tracing for troubleshooting purposes * Avoid using mkdir in favor of mkdirp, because we have contention on dir creation. * Add multi-pass hoisting * Implements seemingly fast and correct shallow-first hoisting * Simplify things a bit * Turn off self-check by default * Run version check * Cleanup * Add failing test for node_modules hoisting with workspace conflict * Hoist pnp roots independently * Adds workspace roots support with passthrough hoisting * Fix $wsroot$ packages handling * Fix topLevel package node creation * Update packages/yarnpkg-pnpify/sources/buildNodeModulesTree.ts Co-Authored-By: Maël Nison <[email protected]> * Update packages/yarnpkg-pnpify/sources/buildNodeModulesTree.ts Co-Authored-By: Maël Nison <[email protected]> * Use early return in n_m tree building function * deps -> dependencies * Makes shrinkTree more efficient by utilizing circular refs * deps -> dependencies * Document the hoisting algorithm used Co-authored-by: Nicolò Ribaudo <[email protected]> Co-authored-by: Maël Nison <[email protected]>
- Loading branch information
1 parent
ca9d23f
commit bceb690
Showing
9 changed files
with
724 additions
and
590 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
releases: | ||
"@yarnpkg/cli": prerelease | ||
"@yarnpkg/plugin-compat": prerelease | ||
"@yarnpkg/plugin-node-modules": prerelease | ||
"@yarnpkg/plugin-pnp": prerelease | ||
"@yarnpkg/pnp": prerelease | ||
"@yarnpkg/pnpify": prerelease | ||
|
||
declined: | ||
- "@yarnpkg/plugin-constraints" | ||
- "@yarnpkg/plugin-dlx" | ||
- "@yarnpkg/plugin-essentials" | ||
- "@yarnpkg/plugin-init" | ||
- "@yarnpkg/plugin-interactive-tools" | ||
- "@yarnpkg/plugin-npm-cli" | ||
- "@yarnpkg/plugin-pack" | ||
- "@yarnpkg/plugin-patch" | ||
- "@yarnpkg/plugin-stage" | ||
- "@yarnpkg/plugin-typescript" | ||
- "@yarnpkg/plugin-version" | ||
- "@yarnpkg/plugin-workspace-tools" | ||
- vscode-zipfs | ||
- "@yarnpkg/builder" | ||
- "@yarnpkg/core" | ||
- "@yarnpkg/doctor" |
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
Oops, something went wrong.