@pnpm/default-reporter
Advanced tools
Comparing version
@@ -34,9 +34,2 @@ "use strict"; | ||
const outputs = [ | ||
(0, reportLifecycleScripts_1.reportLifecycleScripts)(log$, { | ||
appendOnly: (opts.appendOnly === true || opts.streamLifecycleOutput) && !opts.hideLifecycleOutput, | ||
aggregateOutput: opts.aggregateOutput, | ||
hideLifecyclePrefix: opts.hideLifecyclePrefix, | ||
cwd, | ||
width, | ||
}), | ||
(0, reportMisc_1.reportMisc)(log$, { | ||
@@ -50,17 +43,6 @@ appendOnly: opts.appendOnly === true, | ||
}), | ||
(0, reportInstallChecks_1.reportInstallChecks)(log$.installCheck, { cwd }), | ||
(0, reportScope_1.reportScope)(log$.scope, { isRecursive: opts.isRecursive, cmd: opts.cmd }), | ||
(0, reportSkippedOptionalDependencies_1.reportSkippedOptionalDependencies)(log$.skippedOptionalDependency, { cwd }), | ||
(0, reportHooks_1.reportHooks)(log$.hook, { cwd, isRecursive: opts.isRecursive }), | ||
(0, reportUpdateCheck_1.reportUpdateCheck)(log$.updateCheck, opts), | ||
]; | ||
if (opts.cmd !== 'dlx') { | ||
outputs.push((0, reportContext_1.reportContext)(log$, { cwd })); | ||
} | ||
// logLevelNumber: 0123 = error warn info debug | ||
const logLevelNumber = reportMisc_1.LOG_LEVEL_NUMBER[opts.logLevel ?? 'info'] ?? reportMisc_1.LOG_LEVEL_NUMBER['info']; | ||
const showInfo = logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.info; | ||
if (opts.cmd in PRINT_EXECUTION_TIME_IN_COMMANDS && showInfo) { | ||
outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime)); | ||
} | ||
if (logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.warn) { | ||
@@ -73,4 +55,16 @@ outputs.push((0, reportPeerDependencyIssues_1.reportPeerDependencyIssues)(log$, opts.peerDependencyRules), (0, reportDeprecations_1.reportDeprecations)({ | ||
if (showInfo) { | ||
outputs.push((0, reportProgress_1.reportProgress)(log$, { | ||
if (opts.cmd in PRINT_EXECUTION_TIME_IN_COMMANDS) { | ||
outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime)); | ||
} | ||
if (opts.cmd !== 'dlx') { | ||
outputs.push((0, reportContext_1.reportContext)(log$, { cwd })); | ||
} | ||
outputs.push((0, reportLifecycleScripts_1.reportLifecycleScripts)(log$, { | ||
appendOnly: (opts.appendOnly === true || opts.streamLifecycleOutput) && !opts.hideLifecycleOutput, | ||
aggregateOutput: opts.aggregateOutput, | ||
hideLifecyclePrefix: opts.hideLifecyclePrefix, | ||
cwd, | ||
width, | ||
}), (0, reportInstallChecks_1.reportInstallChecks)(log$.installCheck, { cwd }), (0, reportScope_1.reportScope)(log$.scope, { isRecursive: opts.isRecursive, cmd: opts.cmd }), (0, reportSkippedOptionalDependencies_1.reportSkippedOptionalDependencies)(log$.skippedOptionalDependency, { cwd }), (0, reportHooks_1.reportHooks)(log$.hook, { cwd, isRecursive: opts.isRecursive }), (0, reportUpdateCheck_1.reportUpdateCheck)(log$.updateCheck, opts), (0, reportProgress_1.reportProgress)(log$, { | ||
cwd, | ||
throttle, | ||
@@ -86,17 +80,17 @@ hideAddedPkgsProgress: opts.hideAddedPkgsProgress, | ||
})); | ||
if (!opts.appendOnly) { | ||
outputs.push((0, reportBigTarballsProgress_1.reportBigTarballProgress)(log$)); | ||
} | ||
if (!opts.isRecursive) { | ||
outputs.push((0, reportSummary_1.reportSummary)(log$, { | ||
cmd: opts.cmd, | ||
cwd, | ||
env: opts.env, | ||
filterPkgsDiff: opts.filterPkgsDiff, | ||
pnpmConfig: opts.pnpmConfig, | ||
})); | ||
} | ||
} | ||
if (!opts.appendOnly && showInfo) { | ||
outputs.push((0, reportBigTarballsProgress_1.reportBigTarballProgress)(log$)); | ||
} | ||
if (!opts.isRecursive && showInfo) { | ||
outputs.push((0, reportSummary_1.reportSummary)(log$, { | ||
cmd: opts.cmd, | ||
cwd, | ||
env: opts.env, | ||
filterPkgsDiff: opts.filterPkgsDiff, | ||
pnpmConfig: opts.pnpmConfig, | ||
})); | ||
} | ||
return outputs; | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/default-reporter", | ||
"version": "1001.3.5", | ||
"version": "1001.3.6", | ||
"description": "The default reporter of pnpm", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@pnpm/util.lex-comparator": "3.0.0", | ||
"@pnpm/util.lex-comparator": "3.0.1", | ||
"ansi-diff": "^1.2.0", | ||
@@ -42,9 +42,9 @@ "boxen": "^5.1.2", | ||
"@pnpm/cli-meta": "1000.0.4", | ||
"@pnpm/config": "1002.5.1", | ||
"@pnpm/config": "1002.5.2", | ||
"@pnpm/core-loggers": "1000.1.4", | ||
"@pnpm/dedupe.types": "1000.0.0", | ||
"@pnpm/dedupe.issues-renderer": "1000.0.1", | ||
"@pnpm/core-loggers": "1000.1.4", | ||
"@pnpm/error": "1000.0.2", | ||
"@pnpm/render-peer-issues": "1000.0.6", | ||
"@pnpm/types": "1000.2.1", | ||
"@pnpm/dedupe.types": "1000.0.0" | ||
"@pnpm/error": "1000.0.2" | ||
}, | ||
@@ -61,3 +61,3 @@ "peerDependencies": { | ||
"normalize-newline": "3.0.0", | ||
"@pnpm/default-reporter": "1001.3.5", | ||
"@pnpm/default-reporter": "1001.3.6", | ||
"@pnpm/logger": "1000.0.0" | ||
@@ -64,0 +64,0 @@ }, |
Sorry, the diff of this file is not supported yet
192008
-0.02%2711
-0.18%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated