@pnpm/default-reporter
Advanced tools
Comparing version 12.4.10 to 12.4.11
@@ -87,2 +87,3 @@ "use strict"; | ||
outputs.push((0, reportSummary_1.reportSummary)(log$, { | ||
cmd: opts.cmd, | ||
cwd, | ||
@@ -89,0 +90,0 @@ env: opts.env, |
@@ -12,2 +12,3 @@ /// <reference types="node" /> | ||
}, opts: { | ||
cmd: string; | ||
cwd: string; | ||
@@ -14,0 +15,0 @@ env: NodeJS.ProcessEnv; |
@@ -46,3 +46,3 @@ "use strict"; | ||
const summaryLog$ = log$.summary.pipe((0, operators_1.take)(1)); | ||
const _printDiffs = printDiffs.bind(null, { prefix: opts.cwd }); | ||
const _printDiffs = printDiffs.bind(null, { cmd: opts.cmd, prefix: opts.cwd, pnpmConfig: opts.pnpmConfig }); | ||
return Rx.combineLatest(pkgsDiff$, summaryLog$) | ||
@@ -67,3 +67,3 @@ .pipe((0, operators_1.take)(1), (0, operators_1.map)(([pkgsDiff]) => { | ||
msg += constants_1.EOL; | ||
msg += _printDiffs(diffs); | ||
msg += _printDiffs(diffs, depType); | ||
msg += constants_1.EOL; | ||
@@ -84,3 +84,3 @@ } | ||
exports.reportSummary = reportSummary; | ||
function printDiffs(opts, pkgsDiff) { | ||
function printDiffs(opts, pkgsDiff, depType) { | ||
// Sorts by alphabet then by removed/added | ||
@@ -113,2 +113,5 @@ // + ava 0.10.0 | ||
} | ||
if (pkg.added && depType === 'dev' && opts.pnpmConfig?.saveDev === false && opts.cmd === 'add') { | ||
result += `${chalk_1.default.yellow(' already in devDependencies, was not moved to dependencies.')}`; | ||
} | ||
return result; | ||
@@ -115,0 +118,0 @@ }).join(constants_1.EOL); |
{ | ||
"name": "@pnpm/default-reporter", | ||
"version": "12.4.10", | ||
"version": "12.4.11", | ||
"description": "The default reporter of pnpm", | ||
@@ -40,9 +40,9 @@ "main": "lib/index.js", | ||
"string-length": "^4.0.2", | ||
"@pnpm/config": "20.3.0", | ||
"@pnpm/dedupe.issues-renderer": "1.0.0", | ||
"@pnpm/core-loggers": "9.0.6", | ||
"@pnpm/dedupe.types": "1.0.0", | ||
"@pnpm/core-loggers": "9.0.6", | ||
"@pnpm/error": "5.0.2", | ||
"@pnpm/config": "20.4.0", | ||
"@pnpm/types": "9.4.2", | ||
"@pnpm/render-peer-issues": "4.0.6", | ||
"@pnpm/types": "9.4.2", | ||
"@pnpm/error": "5.0.2" | ||
"@pnpm/dedupe.issues-renderer": "1.0.0" | ||
}, | ||
@@ -57,3 +57,3 @@ "devDependencies": { | ||
"strip-ansi": "^6.0.1", | ||
"@pnpm/default-reporter": "12.4.10" | ||
"@pnpm/default-reporter": "12.4.11" | ||
}, | ||
@@ -60,0 +60,0 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/default-reporter#readme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
185550
2641
+ Added@pnpm/config@20.4.0(transitive)
- Removed@pnpm/config@20.3.0(transitive)
Updated@pnpm/config@20.4.0