@pnpm/default-reporter 900.1.3 → 900.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,13 +31,6 @@ function reporterForClient(log$, opts) {
31
31
  ? (0, operators_1.throttleTime)(opts.throttleProgress, undefined, { leading: true, trailing: true })
32
32
  : undefined;
33
33
  const outputs = [
34
- (0, reportLifecycleScripts_1.reportLifecycleScripts)(log$, {
35
- appendOnly: (opts.appendOnly === true || opts.streamLifecycleOutput) && !opts.hideLifecycleOutput,
36
- aggregateOutput: opts.aggregateOutput,
37
- hideLifecyclePrefix: opts.hideLifecyclePrefix,
38
- cwd,
39
- width,
40
- }),
41
34
  (0, reportMisc_1.reportMisc)(log$, {
42
35
  appendOnly: opts.appendOnly === true,
43
36
  config: opts.config,
@@ -46,28 +39,30 @@ function reporterForClient(log$, opts) {
46
39
  zoomOutCurrent: opts.isRecursive,
47
40
  peerDependencyRules: opts.peerDependencyRules,
48
41
  }),
49
- (0, reportInstallChecks_1.reportInstallChecks)(log$.installCheck, { cwd }),
50
- (0, reportScope_1.reportScope)(log$.scope, { isRecursive: opts.isRecursive, cmd: opts.cmd }),
51
- (0, reportSkippedOptionalDependencies_1.reportSkippedOptionalDependencies)(log$.skippedOptionalDependency, { cwd }),
52
- (0, reportHooks_1.reportHooks)(log$.hook, { cwd, isRecursive: opts.isRecursive }),
53
- (0, reportUpdateCheck_1.reportUpdateCheck)(log$.updateCheck, opts),
54
42
  ];
55
- if (opts.cmd !== 'dlx') {
56
- outputs.push((0, reportContext_1.reportContext)(log$, { cwd }));
57
- }
58
- if (opts.cmd in PRINT_EXECUTION_TIME_IN_COMMANDS) {
59
- outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime));
60
- }
61
43
  // logLevelNumber: 0123 = error warn info debug
62
44
  const logLevelNumber = reportMisc_1.LOG_LEVEL_NUMBER[opts.logLevel ?? 'info'] ?? reportMisc_1.LOG_LEVEL_NUMBER['info'];
45
+ const showInfo = logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.info;
63
46
  if (logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.warn) {
64
47
  outputs.push((0, reportPeerDependencyIssues_1.reportPeerDependencyIssues)(log$, opts.peerDependencyRules), (0, reportDeprecations_1.reportDeprecations)({
65
48
  deprecation: log$.deprecation,
66
49
  stage: log$.stage,
67
50
  }, { cwd, isRecursive: opts.isRecursive }), (0, reportRequestRetry_1.reportRequestRetry)(log$.requestRetry));
68
51
  }
69
- if (logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.info) {
70
- outputs.push((0, reportProgress_1.reportProgress)(log$, {
52
+ if (showInfo) {
53
+ if (opts.cmd in PRINT_EXECUTION_TIME_IN_COMMANDS) {
54
+ outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime));
55
+ }
56
+ if (opts.cmd !== 'dlx') {
57
+ outputs.push((0, reportContext_1.reportContext)(log$, { cwd }));
58
+ }
59
+ outputs.push((0, reportLifecycleScripts_1.reportLifecycleScripts)(log$, {
60
+ appendOnly: (opts.appendOnly === true || opts.streamLifecycleOutput) && !opts.hideLifecycleOutput,
61
+ aggregateOutput: opts.aggregateOutput,
62
+ hideLifecyclePrefix: opts.hideLifecyclePrefix,
63
+ cwd,
64
+ width,
65
+ }), (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$, {
71
66
  cwd,
72
67
  throttle,
73
68
  hideAddedPkgsProgress: opts.hideAddedPkgsProgress,
@@ -79,18 +74,18 @@ function reporterForClient(log$, opts) {
79
74
  width,
80
75
  hideProgressPrefix: opts.hideProgressPrefix,
81
76
  }));
82
- }
83
- if (!opts.appendOnly) {
84
- outputs.push((0, reportBigTarballsProgress_1.reportBigTarballProgress)(log$));
85
- }
86
- if (!opts.isRecursive) {
87
- outputs.push((0, reportSummary_1.reportSummary)(log$, {
88
- cmd: opts.cmd,
89
- cwd,
90
- env: opts.env,
91
- filterPkgsDiff: opts.filterPkgsDiff,
92
- pnpmConfig: opts.pnpmConfig,
93
- }));
77
+ if (!opts.appendOnly) {
78
+ outputs.push((0, reportBigTarballsProgress_1.reportBigTarballProgress)(log$));
79
+ }
80
+ if (!opts.isRecursive) {
81
+ outputs.push((0, reportSummary_1.reportSummary)(log$, {
82
+ cmd: opts.cmd,
83
+ cwd,
84
+ env: opts.env,
85
+ filterPkgsDiff: opts.filterPkgsDiff,
86
+ pnpmConfig: opts.pnpmConfig,
87
+ }));
88
+ }
94
89
  }
95
90
  return outputs;
96
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporterForClient/index.ts"],"names":[],"mappings":";;AA8BA,8CAsIC;AAhKD,8CAA6C;AAC7C,2EAAsE;AACtE,mDAA+C;AAC/C,+DAA2D;AAC3D,6DAAyD;AACzD,+CAA2C;AAC3C,+DAA2D;AAC3D,qEAAiE;AACjE,6CAA2D;AAC3D,6EAAyE;AACzE,qDAAiD;AACjD,6DAAyD;AACzD,+CAA2C;AAC3C,2FAAuF;AACvF,+CAA2C;AAC3C,mDAAoE;AACpE,2DAAuD;AAGvD,MAAM,gCAAgC,GAAG;IACvC,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,GAAG,EAAE,IAAI;IACT,MAAM,EAAE,IAAI;CACb,CAAA;AAED,SAAgB,iBAAiB,CAC/B,IAwBC,EACD,IAmBC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAA;IACx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;YACR,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;SAC5C,CAAC,EACF,GAAG,IAAA,yBAAW,EAAC,IAAI,EAAE;YACnB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,GAAG;YACH,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,KAAK;YACL,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;SAC5C,CAAC,CACH,CAAA;QACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO,CAAC,IAAI,CAAC,IAAA,oDAAwB,EAAC,IAAI,CAAC,CAAC,CAAA;QAC9C,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,OAAO,CAAC,IAAI,CAAC,IAAA,6BAAa,EAAC,IAAI,EAAE;gBAC/B,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,GAAG;gBACH,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B,CAAC,CAAC,CAAA;QACL,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/default-reporter",
3
- "version": "900.1.3",
3
+ "version": "900.1.4",
4
4
  "description": "The default reporter of pnpm",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -36,8 +36,8 @@
36
36
  "semver": "^7.6.2",
37
37
  "stacktracey": "^2.1.8",
38
38
  "string-length": "^4.0.2",
39
- "@pnpm/cli-meta": "900.0.0",
40
39
  "@pnpm/config": "900.0.3",
40
+ "@pnpm/cli-meta": "900.0.0",
41
41
  "@pnpm/core-loggers": "900.1.0",
42
42
  "@pnpm/dedupe.issues-renderer": "900.0.1",
43
43
  "@pnpm/dedupe.types": "900.0.0",
@@ -52,7 +52,7 @@
52
52
  "ghooks": "2.0.4",
53
53
  "load-json-file": "^6.2.0",
54
54
  "normalize-newline": "3.0.0",
55
- "@pnpm/default-reporter": "900.1.3",
55
+ "@pnpm/default-reporter": "900.1.4",
56
56
  "@pnpm/logger": "900.0.0"
57
57
  },
58
58
  "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/default-reporter#readme",