-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(berry): add yarn berry support for built dependencies meta when p…
…runing (#9605) ### Description A rebase of #8550 as rebasing those commits past #8813. I do not know exactly what about that change resulted in my repo getting into such a bad state, but I needed to do a fresh clone after trying to rebase past it. From the original PR: Add support for [yarn berry built option](https://yarnpkg.com/configuration/manifest#dependenciesMeta.built) for dependencies meta to turbo prune. Without this change, yarn install --immutable fails because built is added after turbo accidentally removes it, triggering the following error. > The lockfile would have been modified by this install, which is explicitly forbidden. All credit to @vinnymac for the original PR #### Additional Changes I added some additional unit tests and reworked the `dependenciesMeta` serialization logic so it support multiple fields per dependency. ### Testing Instructions Added unit test along with updating the roundtrip text fixture to include a dependency with `built: false`
- Loading branch information
1 parent
ed31bac
commit 34554db
Showing
3 changed files
with
88 additions
and
17 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 |
---|---|---|
|
@@ -1264,6 +1264,7 @@ eslint-config-turbo@latest: | |
dependenciesMeta: | ||
[email protected]: | ||
unplugged: true | ||
built: false | ||
peerDependenciesMeta: | ||
eslint: | ||
optional: true | ||
|
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