@pnpm/render-peer-issues
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -38,12 +38,12 @@ "use strict"; | ||
.map(([projectKey, project]) => { | ||
let summary = ''; | ||
const summaries = []; | ||
const { conflicts, intersections } = peerDependencyIssuesByProjects[projectKey]; | ||
if (conflicts.length) { | ||
summary += chalk_1.default.red(`✕ Conflicting peer dependencies:\n ${(0, cli_columns_1.default)(conflicts, cliColumnsOptions)}`); | ||
summaries.push(chalk_1.default.red(`✕ Conflicting peer dependencies:\n ${(0, cli_columns_1.default)(conflicts, cliColumnsOptions)}`)); | ||
} | ||
if (Object.keys(intersections).length) { | ||
summary += `Peer dependencies that should be installed:\n ${(0, cli_columns_1.default)(Object.entries(intersections).map(([name, version]) => formatNameAndRange(name, version)), cliColumnsOptions)}`; | ||
summaries.push(`Peer dependencies that should be installed:\n ${(0, cli_columns_1.default)(Object.entries(intersections).map(([name, version]) => formatNameAndRange(name, version)), cliColumnsOptions)}`); | ||
} | ||
const title = chalk_1.default.white(projectKey); | ||
return `${(0, archy_1.default)(toArchyData(title, project))}${summary}`; | ||
return `${(0, archy_1.default)(toArchyData(title, project))}${summaries.join('\n')}`; | ||
}).join('\n\n'); | ||
@@ -50,0 +50,0 @@ } |
{ | ||
"name": "@pnpm/render-peer-issues", | ||
"description": "Visualizes peer dependency issues", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"bugs": { | ||
@@ -25,3 +25,3 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"dependencies": { | ||
"@pnpm/types": "7.7.0", | ||
"@pnpm/types": "7.7.1", | ||
"archy": "^1.0.0", | ||
@@ -28,0 +28,0 @@ "chalk": "^4.1.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9695
+ Added@pnpm/types@7.7.1(transitive)
- Removed@pnpm/types@7.7.0(transitive)
Updated@pnpm/types@7.7.1