bumpp 10.0.1 → 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
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
-
import { x } from 'tinyexec';
|
|
3
|
-
import { l as loadBumpConfig, i as isReleaseType, c, b as bumpConfigDefaults, v as versionBump, P as ProgressEvent, s as symbols } from './shared/bumpp.
|
|
2
|
+
import { x, NonZeroExitError } from 'tinyexec';
|
|
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';
|
|
6
|
+
import 'args-tokenizer';
|
|
6
7
|
import 'prompts';
|
|
7
8
|
import 'node:child_process';
|
|
8
9
|
import 'node:fs';
|
|
@@ -21,7 +22,7 @@ var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
|
21
22
|
return ExitCode2;
|
|
22
23
|
})(ExitCode || {});
|
|
23
24
|
|
|
24
|
-
const version = "10.0.
|
|
25
|
+
const version = "10.0.3";
|
|
25
26
|
|
|
26
27
|
async function parseArgs() {
|
|
27
28
|
try {
|
|
@@ -138,8 +139,14 @@ function progress({ event, script, updatedFiles, skippedFiles, newVersion }) {
|
|
|
138
139
|
}
|
|
139
140
|
function errorHandler(error) {
|
|
140
141
|
let message = error.message || String(error);
|
|
142
|
+
if (error instanceof NonZeroExitError)
|
|
143
|
+
message += `
|
|
144
|
+
|
|
145
|
+
${error.output?.stderr || ""}`;
|
|
141
146
|
if (process.env.DEBUG || process.env.NODE_ENV === "development")
|
|
142
|
-
message
|
|
147
|
+
message += `
|
|
148
|
+
|
|
149
|
+
${error.stack || ""}`;
|
|
143
150
|
console.error(message);
|
|
144
151
|
process.exit(ExitCode.FatalError);
|
|
145
152
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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.B_9jg8A3.mjs';
|
|
2
|
+
export { N as NpmScript, P as ProgressEvent, b as bumpConfigDefaults, d as defineConfig, l as loadBumpConfig, a as versionBumpInfo } from './shared/bumpp.B_9jg8A3.mjs';
|
|
3
3
|
import 'node:process';
|
|
4
|
+
import 'args-tokenizer';
|
|
4
5
|
import 'prompts';
|
|
5
6
|
import 'node:child_process';
|
|
6
7
|
import 'tinyexec';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import process$1 from 'node:process';
|
|
2
|
+
import { tokenizeArgs } from 'args-tokenizer';
|
|
2
3
|
import prompts from 'prompts';
|
|
3
4
|
import { execSync } from 'node:child_process';
|
|
4
5
|
import { x } from 'tinyexec';
|
|
@@ -13,54 +14,6 @@ import { glob } from 'tinyglobby';
|
|
|
13
14
|
import { loadConfig } from 'c12';
|
|
14
15
|
import escalade from 'escalade/sync';
|
|
15
16
|
|
|
16
|
-
// src/args-tokenizer.ts
|
|
17
|
-
var spaceRegex = /\s/;
|
|
18
|
-
var tokenizeArgs = (argsString, options) => {
|
|
19
|
-
const tokens = [];
|
|
20
|
-
let currentToken = "";
|
|
21
|
-
let openningQuote;
|
|
22
|
-
let escaped = false;
|
|
23
|
-
for (let index = 0; index < argsString.length; index += 1) {
|
|
24
|
-
const char = argsString[index];
|
|
25
|
-
if (escaped) {
|
|
26
|
-
escaped = false;
|
|
27
|
-
if (openningQuote || char !== "\n") {
|
|
28
|
-
currentToken += char;
|
|
29
|
-
}
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
if (char === "\\") {
|
|
33
|
-
escaped = true;
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
if (openningQuote === undefined && spaceRegex.test(char)) {
|
|
37
|
-
if (currentToken.length > 0) {
|
|
38
|
-
tokens.push(currentToken);
|
|
39
|
-
currentToken = "";
|
|
40
|
-
}
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
if (char === "'" || char === '"') {
|
|
44
|
-
if (openningQuote === undefined) {
|
|
45
|
-
openningQuote = char;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
if (openningQuote === char) {
|
|
49
|
-
openningQuote = undefined;
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
currentToken += char;
|
|
54
|
-
}
|
|
55
|
-
if (currentToken.length > 0) {
|
|
56
|
-
tokens.push(currentToken);
|
|
57
|
-
}
|
|
58
|
-
if (openningQuote) {
|
|
59
|
-
throw Error("Unexpected end of string. Closing quote is missing.");
|
|
60
|
-
}
|
|
61
|
-
return tokens;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
17
|
function getDefaultExportFromCjs (x) {
|
|
65
18
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
66
19
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bumpp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "10.0.
|
|
4
|
+
"version": "10.0.3",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -51,24 +51,24 @@
|
|
|
51
51
|
"node": ">=18"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
+
"args-tokenizer": "^0.3.0",
|
|
54
55
|
"c12": "^2.0.1",
|
|
55
56
|
"cac": "^6.7.14",
|
|
56
57
|
"escalade": "^3.2.0",
|
|
57
58
|
"js-yaml": "^4.1.0",
|
|
58
59
|
"jsonc-parser": "^3.3.1",
|
|
59
|
-
"package-manager-detector": "^0.2.
|
|
60
|
+
"package-manager-detector": "^0.2.9",
|
|
60
61
|
"prompts": "^2.4.2",
|
|
61
|
-
"semver": "^7.
|
|
62
|
+
"semver": "^7.7.1",
|
|
62
63
|
"tinyexec": "^0.3.2",
|
|
63
64
|
"tinyglobby": "^0.2.10"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
|
-
"@antfu/eslint-config": "^4.
|
|
67
|
+
"@antfu/eslint-config": "^4.1.1",
|
|
67
68
|
"@types/js-yaml": "^4.0.9",
|
|
68
|
-
"@types/node": "^22.
|
|
69
|
+
"@types/node": "^22.13.1",
|
|
69
70
|
"@types/prompts": "^2.4.9",
|
|
70
71
|
"@types/semver": "^7.5.8",
|
|
71
|
-
"args-tokenizer": "^0.3.0",
|
|
72
72
|
"eslint": "^9.19.0",
|
|
73
73
|
"esno": "^4.8.0",
|
|
74
74
|
"picocolors": "^1.1.1",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"tiny-conventional-commits-parser": "^0.0.1",
|
|
77
77
|
"typescript": "^5.7.3",
|
|
78
78
|
"unbuild": "^3.3.1",
|
|
79
|
-
"vitest": "^3.0.
|
|
79
|
+
"vitest": "^3.0.5"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"lint": "eslint .",
|