bumpp 10.0.2 → 10.1.0
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 +16 -8
- package/dist/index.mjs +6 -4
- package/dist/shared/bumpp.BYfOJvKL.mjs +7129 -0
- package/package.json +16 -17
- package/dist/shared/bumpp.B_9jg8A3.mjs +0 -941
package/dist/cli.mjs
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
-
import { x } from 'tinyexec';
|
|
3
|
-
import { l as loadBumpConfig, i as isReleaseType,
|
|
2
|
+
import { x, NonZeroExitError } from 'tinyexec';
|
|
3
|
+
import { l as loadBumpConfig, i as isReleaseType, b as bumpConfigDefaults, v as versionBump, P as ProgressEvent, s as symbols } from './shared/bumpp.BYfOJvKL.mjs';
|
|
4
|
+
import c from 'ansis';
|
|
4
5
|
import cac from 'cac';
|
|
5
6
|
import { valid } from 'semver';
|
|
6
7
|
import 'args-tokenizer';
|
|
7
|
-
import '
|
|
8
|
+
import 'readline';
|
|
9
|
+
import 'events';
|
|
8
10
|
import 'node:child_process';
|
|
9
11
|
import 'node:fs';
|
|
10
12
|
import 'node:path';
|
|
11
13
|
import 'jsonc-parser';
|
|
12
14
|
import 'node:fs/promises';
|
|
13
|
-
import 'js-yaml';
|
|
14
15
|
import 'tinyglobby';
|
|
16
|
+
import 'yaml';
|
|
15
17
|
import 'c12';
|
|
16
18
|
import 'escalade/sync';
|
|
17
19
|
|
|
@@ -22,7 +24,7 @@ var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
|
22
24
|
return ExitCode2;
|
|
23
25
|
})(ExitCode || {});
|
|
24
26
|
|
|
25
|
-
const version = "10.0
|
|
27
|
+
const version = "10.1.0";
|
|
26
28
|
|
|
27
29
|
async function parseArgs() {
|
|
28
30
|
try {
|
|
@@ -78,8 +80,8 @@ function loadCliArgs(argv = process.argv) {
|
|
|
78
80
|
return {
|
|
79
81
|
args: {
|
|
80
82
|
...rest,
|
|
81
|
-
commit: hasCommitFlag ? commit :
|
|
82
|
-
tag: hasTagFlag ? tag :
|
|
83
|
+
commit: hasCommitFlag ? commit : void 0,
|
|
84
|
+
tag: hasTagFlag ? tag : void 0
|
|
83
85
|
},
|
|
84
86
|
resultArgs: result.args
|
|
85
87
|
};
|
|
@@ -139,8 +141,14 @@ function progress({ event, script, updatedFiles, skippedFiles, newVersion }) {
|
|
|
139
141
|
}
|
|
140
142
|
function errorHandler(error) {
|
|
141
143
|
let message = error.message || String(error);
|
|
144
|
+
if (error instanceof NonZeroExitError)
|
|
145
|
+
message += `
|
|
146
|
+
|
|
147
|
+
${error.output?.stderr || ""}`;
|
|
142
148
|
if (process.env.DEBUG || process.env.NODE_ENV === "development")
|
|
143
|
-
message
|
|
149
|
+
message += `
|
|
150
|
+
|
|
151
|
+
${error.stack || ""}`;
|
|
144
152
|
console.error(message);
|
|
145
153
|
process.exit(ExitCode.FatalError);
|
|
146
154
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { v as versionBump } from './shared/bumpp.
|
|
2
|
-
export { N as NpmScript, P as ProgressEvent, b as bumpConfigDefaults, d as defineConfig, l as loadBumpConfig, a as versionBumpInfo } from './shared/bumpp.
|
|
1
|
+
import { v as versionBump } from './shared/bumpp.BYfOJvKL.mjs';
|
|
2
|
+
export { N as NpmScript, P as ProgressEvent, b as bumpConfigDefaults, d as defineConfig, l as loadBumpConfig, a as versionBumpInfo } from './shared/bumpp.BYfOJvKL.mjs';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'args-tokenizer';
|
|
5
|
-
import '
|
|
5
|
+
import 'ansis';
|
|
6
|
+
import 'readline';
|
|
7
|
+
import 'events';
|
|
6
8
|
import 'node:child_process';
|
|
7
9
|
import 'tinyexec';
|
|
8
10
|
import 'semver';
|
|
@@ -10,8 +12,8 @@ import 'node:fs';
|
|
|
10
12
|
import 'node:path';
|
|
11
13
|
import 'jsonc-parser';
|
|
12
14
|
import 'node:fs/promises';
|
|
13
|
-
import 'js-yaml';
|
|
14
15
|
import 'tinyglobby';
|
|
16
|
+
import 'yaml';
|
|
15
17
|
import 'c12';
|
|
16
18
|
import 'escalade/sync';
|
|
17
19
|
|