@pnpm/default-reporter
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -39,2 +39,4 @@ "use strict"; | ||
return reportBadTarballSize(err, logObj['message']); | ||
case 'ELIFECYCLE': | ||
return reportLifecycleError(logObj['message']); | ||
default: | ||
@@ -183,2 +185,11 @@ // Errors with known error codes are printed w/o stack trace | ||
} | ||
function reportLifecycleError(msg) { | ||
if (msg.stage === 'test') { | ||
return formatErrorSummary('Test failed. See above for more details.'); | ||
} | ||
if (typeof msg.errno === 'number') { | ||
return formatErrorSummary(`Command failed with exit code ${msg.errno}.`); | ||
} | ||
return formatErrorSummary('Command failed.'); | ||
} | ||
//# sourceMappingURL=reportError.js.map |
{ | ||
"name": "@pnpm/default-reporter", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "The default reporter of pnpm", | ||
@@ -13,7 +13,7 @@ "main": "lib/index.js", | ||
"pretty-test": "ts-node test | tap-diff", | ||
"test": "npm run lint && npm run just-test", | ||
"test": "pnpm run lint && pnpm run just-test", | ||
"just-test-preview": "ts-node test --type-check", | ||
"just-test": "npm run tsc && ts-node test --type-check", | ||
"just-test": "pnpm run tsc && ts-node test --type-check", | ||
"tsc": "rimraf lib && tsc", | ||
"prepublishOnly": "npm run tsc" | ||
"prepublishOnly": "pnpm run tsc" | ||
}, | ||
@@ -69,3 +69,2 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/default-reporter", | ||
"load-json-file": "6.0.0", | ||
"mos-tap-diff": "1.0.0", | ||
"normalize-newline": "3.0.0", | ||
@@ -72,0 +71,0 @@ "rimraf": "2.6.3", |
@@ -5,6 +5,6 @@ # @pnpm/default-reporter | ||
## Install | ||
## Installation | ||
``` | ||
pnpm install @pnpm/default-reporter | ||
<pnpm|npm|yarn> add @pnpm/default-reporter | ||
``` | ||
@@ -11,0 +11,0 @@ |
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
109725
17
1520