fix(resolve-dependencies): always include dependenciesMeta

This commit is contained in:
Zoltan Kochan
2021-11-05 03:30:17 +02:00
parent 574acea08b
commit bc1c2aa624
2 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/resolve-dependencies": patch
---
The `dependenciesMeta` field should be added to all packages that have it in the manifest.

View File

@@ -155,13 +155,14 @@ export default async function (
for (const { id, manifest } of projectsToLink) {
for (const [alias, depPath] of Object.entries(dependenciesByProjectId[id])) {
const depNode = dependenciesGraph[depPath]
if (depNode.isPure) continue
const projectSnapshot = opts.wantedLockfile.importers[id]
if (manifest.dependenciesMeta != null) {
projectSnapshot.dependenciesMeta = manifest.dependenciesMeta
}
const depNode = dependenciesGraph[depPath]
if (depNode.isPure) continue
const ref = depPathToRef(depPath, {
alias,
realName: depNode.name,