Skip to content

Commit

Permalink
fix: don't print info messages about linked dependencies (#6372)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Apr 9, 2023
1 parent b7ba559 commit ea23c7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-turkeys-arrive.md
@@ -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`.
12 changes: 7 additions & 5 deletions pkg-manager/resolve-dependencies/src/toResolveImporter.ts
Expand Up @@ -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
Expand Down

0 comments on commit ea23c7f

Please sign in to comment.