mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-28 02:53:15 -04:00
fix: don't print info messages about linked dependencies (#6372)
This commit is contained in:
5
.changeset/nervous-turkeys-arrive.md
Normal file
5
.changeset/nervous-turkeys-arrive.md
Normal 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`.
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user