fix: don't print info messages about linked dependencies (#6372)

This commit is contained in:
Zoltan Kochan
2023-04-09 19:14:55 +03:00
committed by GitHub
parent 72ba638e34
commit d52c6d751f
2 changed files with 12 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/resolve-dependencies": patch
---
Don't print an info message about linked dependencies if they are real linked dependencies specified via the `link:` protocol in `package.json`.

View File

@@ -100,11 +100,13 @@ async function partitionLinkedPackages (
nonLinkedDependencies.push(dependency)
continue
}
// This info-log might be better to be moved to the reporter
logger.info({
message: `${dependency.alias} is linked to ${opts.modulesDir} from ${isInnerLink}`,
prefix: opts.projectDir,
})
if (!dependency.pref.startsWith('link:')) {
// This info-log might be better to be moved to the reporter
logger.info({
message: `${dependency.alias} is linked to ${opts.modulesDir} from ${isInnerLink}`,
prefix: opts.projectDir,
})
}
linkedAliases.add(dependency.alias)
}
return nonLinkedDependencies