turborepo
34554dbb - fix(berry): add yarn berry support for built dependencies meta when pruning (#9605)

Commit
1 year ago
fix(berry): add yarn berry support for built dependencies meta when pruning (#9605) ### Description A rebase of https://github.com/vercel/turborepo/pull/8550 as rebasing those commits past https://github.com/vercel/turborepo/pull/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`
Parents
Loading