bumpp 10.0.2 → 10.0.3
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.
- package/dist/cli.mjs +9 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
-
import { x } from 'tinyexec';
|
|
2
|
+
import { x, NonZeroExitError } from 'tinyexec';
|
|
3
3
|
import { l as loadBumpConfig, i as isReleaseType, c, b as bumpConfigDefaults, v as versionBump, P as ProgressEvent, s as symbols } from './shared/bumpp.B_9jg8A3.mjs';
|
|
4
4
|
import cac from 'cac';
|
|
5
5
|
import { valid } from 'semver';
|
|
@@ -22,7 +22,7 @@ var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
|
22
22
|
return ExitCode2;
|
|
23
23
|
})(ExitCode || {});
|
|
24
24
|
|
|
25
|
-
const version = "10.0.
|
|
25
|
+
const version = "10.0.3";
|
|
26
26
|
|
|
27
27
|
async function parseArgs() {
|
|
28
28
|
try {
|
|
@@ -139,8 +139,14 @@ function progress({ event, script, updatedFiles, skippedFiles, newVersion }) {
|
|
|
139
139
|
}
|
|
140
140
|
function errorHandler(error) {
|
|
141
141
|
let message = error.message || String(error);
|
|
142
|
+
if (error instanceof NonZeroExitError)
|
|
143
|
+
message += `
|
|
144
|
+
|
|
145
|
+
${error.output?.stderr || ""}`;
|
|
142
146
|
if (process.env.DEBUG || process.env.NODE_ENV === "development")
|
|
143
|
-
message
|
|
147
|
+
message += `
|
|
148
|
+
|
|
149
|
+
${error.stack || ""}`;
|
|
144
150
|
console.error(message);
|
|
145
151
|
process.exit(ExitCode.FatalError);
|
|
146
152
|
}
|