bumpp 9.4.1 → 9.4.2
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/{chunk-ZH3O6GQ3.mjs → chunk-WWXZEF5W.mjs} +53 -42
- package/dist/cli/index.js +55 -43
- package/dist/cli/index.mjs +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +52 -40
- package/dist/index.mjs +1 -1
- package/package.json +12 -12
|
@@ -25,8 +25,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25
25
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
26
26
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
27
27
|
}) : x)(function(x) {
|
|
28
|
-
if (typeof require !== "undefined")
|
|
29
|
-
return require.apply(this, arguments);
|
|
28
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
30
29
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
31
30
|
});
|
|
32
31
|
var __objRest = (source, exclude) => {
|
|
@@ -61,50 +60,58 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
61
60
|
mod
|
|
62
61
|
));
|
|
63
62
|
|
|
64
|
-
// node_modules/.pnpm/picocolors@1.0.
|
|
63
|
+
// node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
|
|
65
64
|
var require_picocolors = __commonJS({
|
|
66
|
-
"node_modules/.pnpm/picocolors@1.0.
|
|
67
|
-
var
|
|
68
|
-
var
|
|
65
|
+
"node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js"(exports, module) {
|
|
66
|
+
var argv = process.argv || [];
|
|
67
|
+
var env2 = process.env;
|
|
68
|
+
var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || __require != null && __require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
|
|
69
69
|
var formatter = (open, close, replace = open) => (input) => {
|
|
70
70
|
let string = "" + input;
|
|
71
71
|
let index = string.indexOf(close, open.length);
|
|
72
72
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
73
73
|
};
|
|
74
74
|
var replaceClose = (string, close, replace, index) => {
|
|
75
|
-
let
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
let result = "";
|
|
76
|
+
let cursor = 0;
|
|
77
|
+
do {
|
|
78
|
+
result += string.substring(cursor, index) + replace;
|
|
79
|
+
cursor = index + close.length;
|
|
80
|
+
index = string.indexOf(close, cursor);
|
|
81
|
+
} while (~index);
|
|
82
|
+
return result + string.substring(cursor);
|
|
83
|
+
};
|
|
84
|
+
var createColors = (enabled = isColorSupported) => {
|
|
85
|
+
let init = enabled ? formatter : () => String;
|
|
86
|
+
return {
|
|
87
|
+
isColorSupported: enabled,
|
|
88
|
+
reset: init("\x1B[0m", "\x1B[0m"),
|
|
89
|
+
bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
90
|
+
dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
91
|
+
italic: init("\x1B[3m", "\x1B[23m"),
|
|
92
|
+
underline: init("\x1B[4m", "\x1B[24m"),
|
|
93
|
+
inverse: init("\x1B[7m", "\x1B[27m"),
|
|
94
|
+
hidden: init("\x1B[8m", "\x1B[28m"),
|
|
95
|
+
strikethrough: init("\x1B[9m", "\x1B[29m"),
|
|
96
|
+
black: init("\x1B[30m", "\x1B[39m"),
|
|
97
|
+
red: init("\x1B[31m", "\x1B[39m"),
|
|
98
|
+
green: init("\x1B[32m", "\x1B[39m"),
|
|
99
|
+
yellow: init("\x1B[33m", "\x1B[39m"),
|
|
100
|
+
blue: init("\x1B[34m", "\x1B[39m"),
|
|
101
|
+
magenta: init("\x1B[35m", "\x1B[39m"),
|
|
102
|
+
cyan: init("\x1B[36m", "\x1B[39m"),
|
|
103
|
+
white: init("\x1B[37m", "\x1B[39m"),
|
|
104
|
+
gray: init("\x1B[90m", "\x1B[39m"),
|
|
105
|
+
bgBlack: init("\x1B[40m", "\x1B[49m"),
|
|
106
|
+
bgRed: init("\x1B[41m", "\x1B[49m"),
|
|
107
|
+
bgGreen: init("\x1B[42m", "\x1B[49m"),
|
|
108
|
+
bgYellow: init("\x1B[43m", "\x1B[49m"),
|
|
109
|
+
bgBlue: init("\x1B[44m", "\x1B[49m"),
|
|
110
|
+
bgMagenta: init("\x1B[45m", "\x1B[49m"),
|
|
111
|
+
bgCyan: init("\x1B[46m", "\x1B[49m"),
|
|
112
|
+
bgWhite: init("\x1B[47m", "\x1B[49m")
|
|
113
|
+
};
|
|
79
114
|
};
|
|
80
|
-
var createColors = (enabled = isColorSupported) => ({
|
|
81
|
-
isColorSupported: enabled,
|
|
82
|
-
reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
|
|
83
|
-
bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
|
|
84
|
-
dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
|
|
85
|
-
italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
|
|
86
|
-
underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
|
|
87
|
-
inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
|
|
88
|
-
hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
|
|
89
|
-
strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
|
|
90
|
-
black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
|
|
91
|
-
red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
|
|
92
|
-
green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
|
|
93
|
-
yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
|
|
94
|
-
blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
|
|
95
|
-
magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
|
|
96
|
-
cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
|
|
97
|
-
white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
|
|
98
|
-
gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
|
|
99
|
-
bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
|
|
100
|
-
bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
|
|
101
|
-
bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
|
|
102
|
-
bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
|
|
103
|
-
bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
|
|
104
|
-
bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
|
|
105
|
-
bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
|
|
106
|
-
bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
|
|
107
|
-
});
|
|
108
115
|
module.exports = createColors();
|
|
109
116
|
module.exports.createColors = createColors;
|
|
110
117
|
}
|
|
@@ -950,7 +957,7 @@ async function readVersion(file, cwd) {
|
|
|
950
957
|
if (isValidVersion2(manifest.version))
|
|
951
958
|
return manifest.version;
|
|
952
959
|
}
|
|
953
|
-
} catch (
|
|
960
|
+
} catch (e) {
|
|
954
961
|
return void 0;
|
|
955
962
|
}
|
|
956
963
|
}
|
|
@@ -1049,7 +1056,9 @@ async function normalizeOptions(raw) {
|
|
|
1049
1056
|
"package-lock.json",
|
|
1050
1057
|
"packages/**/package.json",
|
|
1051
1058
|
"jsr.json",
|
|
1052
|
-
"jsr.jsonc"
|
|
1059
|
+
"jsr.jsonc",
|
|
1060
|
+
"deno.json",
|
|
1061
|
+
"deno.jsonc"
|
|
1053
1062
|
];
|
|
1054
1063
|
if (fsSync.existsSync("pnpm-workspace.yaml")) {
|
|
1055
1064
|
const pnpmWorkspace = await fs2.readFile("pnpm-workspace.yaml", "utf8");
|
|
@@ -1062,7 +1071,7 @@ async function normalizeOptions(raw) {
|
|
|
1062
1071
|
raw.files = raw.files.concat(withoutExcludedWorkspaces);
|
|
1063
1072
|
}
|
|
1064
1073
|
} else {
|
|
1065
|
-
raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"];
|
|
1074
|
+
raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"];
|
|
1066
1075
|
}
|
|
1067
1076
|
const files = await fg(
|
|
1068
1077
|
raw.files,
|
|
@@ -1216,6 +1225,7 @@ async function updateFile(relPath, operation) {
|
|
|
1216
1225
|
case "bower.json":
|
|
1217
1226
|
case "component.json":
|
|
1218
1227
|
case "jsr.json":
|
|
1228
|
+
case "deno.json":
|
|
1219
1229
|
return updateManifestFile(relPath, operation);
|
|
1220
1230
|
default:
|
|
1221
1231
|
return updateTextFile(relPath, operation);
|
|
@@ -1264,8 +1274,9 @@ async function versionBump(arg = {}) {
|
|
|
1264
1274
|
type: "confirm",
|
|
1265
1275
|
message: "Bump?",
|
|
1266
1276
|
initial: true
|
|
1267
|
-
}).then((r) => r.yes))
|
|
1277
|
+
}).then((r) => r.yes)) {
|
|
1268
1278
|
process6.exit(1);
|
|
1279
|
+
}
|
|
1269
1280
|
}
|
|
1270
1281
|
await runNpmScript("preversion" /* PreVersion */, operation);
|
|
1271
1282
|
await updateFiles(operation);
|
package/dist/cli/index.js
CHANGED
|
@@ -58,50 +58,58 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
58
58
|
));
|
|
59
59
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
60
60
|
|
|
61
|
-
// node_modules/.pnpm/picocolors@1.0.
|
|
61
|
+
// node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
|
|
62
62
|
var require_picocolors = __commonJS({
|
|
63
|
-
"node_modules/.pnpm/picocolors@1.0.
|
|
64
|
-
var
|
|
65
|
-
var
|
|
63
|
+
"node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
64
|
+
var argv = process.argv || [];
|
|
65
|
+
var env2 = process.env;
|
|
66
|
+
var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
|
|
66
67
|
var formatter = (open, close, replace = open) => (input) => {
|
|
67
68
|
let string = "" + input;
|
|
68
69
|
let index = string.indexOf(close, open.length);
|
|
69
70
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
70
71
|
};
|
|
71
72
|
var replaceClose = (string, close, replace, index) => {
|
|
72
|
-
let
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
let result = "";
|
|
74
|
+
let cursor = 0;
|
|
75
|
+
do {
|
|
76
|
+
result += string.substring(cursor, index) + replace;
|
|
77
|
+
cursor = index + close.length;
|
|
78
|
+
index = string.indexOf(close, cursor);
|
|
79
|
+
} while (~index);
|
|
80
|
+
return result + string.substring(cursor);
|
|
81
|
+
};
|
|
82
|
+
var createColors = (enabled = isColorSupported) => {
|
|
83
|
+
let init = enabled ? formatter : () => String;
|
|
84
|
+
return {
|
|
85
|
+
isColorSupported: enabled,
|
|
86
|
+
reset: init("\x1B[0m", "\x1B[0m"),
|
|
87
|
+
bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
88
|
+
dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
89
|
+
italic: init("\x1B[3m", "\x1B[23m"),
|
|
90
|
+
underline: init("\x1B[4m", "\x1B[24m"),
|
|
91
|
+
inverse: init("\x1B[7m", "\x1B[27m"),
|
|
92
|
+
hidden: init("\x1B[8m", "\x1B[28m"),
|
|
93
|
+
strikethrough: init("\x1B[9m", "\x1B[29m"),
|
|
94
|
+
black: init("\x1B[30m", "\x1B[39m"),
|
|
95
|
+
red: init("\x1B[31m", "\x1B[39m"),
|
|
96
|
+
green: init("\x1B[32m", "\x1B[39m"),
|
|
97
|
+
yellow: init("\x1B[33m", "\x1B[39m"),
|
|
98
|
+
blue: init("\x1B[34m", "\x1B[39m"),
|
|
99
|
+
magenta: init("\x1B[35m", "\x1B[39m"),
|
|
100
|
+
cyan: init("\x1B[36m", "\x1B[39m"),
|
|
101
|
+
white: init("\x1B[37m", "\x1B[39m"),
|
|
102
|
+
gray: init("\x1B[90m", "\x1B[39m"),
|
|
103
|
+
bgBlack: init("\x1B[40m", "\x1B[49m"),
|
|
104
|
+
bgRed: init("\x1B[41m", "\x1B[49m"),
|
|
105
|
+
bgGreen: init("\x1B[42m", "\x1B[49m"),
|
|
106
|
+
bgYellow: init("\x1B[43m", "\x1B[49m"),
|
|
107
|
+
bgBlue: init("\x1B[44m", "\x1B[49m"),
|
|
108
|
+
bgMagenta: init("\x1B[45m", "\x1B[49m"),
|
|
109
|
+
bgCyan: init("\x1B[46m", "\x1B[49m"),
|
|
110
|
+
bgWhite: init("\x1B[47m", "\x1B[49m")
|
|
111
|
+
};
|
|
76
112
|
};
|
|
77
|
-
var createColors = (enabled = isColorSupported) => ({
|
|
78
|
-
isColorSupported: enabled,
|
|
79
|
-
reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
|
|
80
|
-
bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
|
|
81
|
-
dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
|
|
82
|
-
italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
|
|
83
|
-
underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
|
|
84
|
-
inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
|
|
85
|
-
hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
|
|
86
|
-
strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
|
|
87
|
-
black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
|
|
88
|
-
red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
|
|
89
|
-
green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
|
|
90
|
-
yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
|
|
91
|
-
blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
|
|
92
|
-
magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
|
|
93
|
-
cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
|
|
94
|
-
white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
|
|
95
|
-
gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
|
|
96
|
-
bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
|
|
97
|
-
bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
|
|
98
|
-
bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
|
|
99
|
-
bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
|
|
100
|
-
bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
|
|
101
|
-
bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
|
|
102
|
-
bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
|
|
103
|
-
bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
|
|
104
|
-
});
|
|
105
113
|
module2.exports = createColors();
|
|
106
114
|
module2.exports.createColors = createColors;
|
|
107
115
|
}
|
|
@@ -628,7 +636,7 @@ var logSymbols = isUnicodeSupported() ? main : fallback;
|
|
|
628
636
|
var log_symbols_default = logSymbols;
|
|
629
637
|
|
|
630
638
|
// package.json
|
|
631
|
-
var version = "9.4.
|
|
639
|
+
var version = "9.4.2";
|
|
632
640
|
|
|
633
641
|
// src/version-bump.ts
|
|
634
642
|
var import_node_process5 = __toESM(require("process"));
|
|
@@ -943,7 +951,7 @@ async function readVersion(file, cwd) {
|
|
|
943
951
|
if ((0, import_semver2.valid)(manifest.version))
|
|
944
952
|
return manifest.version;
|
|
945
953
|
}
|
|
946
|
-
} catch (
|
|
954
|
+
} catch (e) {
|
|
947
955
|
return void 0;
|
|
948
956
|
}
|
|
949
957
|
}
|
|
@@ -1042,7 +1050,9 @@ async function normalizeOptions(raw) {
|
|
|
1042
1050
|
"package-lock.json",
|
|
1043
1051
|
"packages/**/package.json",
|
|
1044
1052
|
"jsr.json",
|
|
1045
|
-
"jsr.jsonc"
|
|
1053
|
+
"jsr.jsonc",
|
|
1054
|
+
"deno.json",
|
|
1055
|
+
"deno.jsonc"
|
|
1046
1056
|
];
|
|
1047
1057
|
if (import_node_fs2.default.existsSync("pnpm-workspace.yaml")) {
|
|
1048
1058
|
const pnpmWorkspace = await import_promises.default.readFile("pnpm-workspace.yaml", "utf8");
|
|
@@ -1055,7 +1065,7 @@ async function normalizeOptions(raw) {
|
|
|
1055
1065
|
raw.files = raw.files.concat(withoutExcludedWorkspaces);
|
|
1056
1066
|
}
|
|
1057
1067
|
} else {
|
|
1058
|
-
raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"];
|
|
1068
|
+
raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"];
|
|
1059
1069
|
}
|
|
1060
1070
|
const files = await (0, import_fast_glob.default)(
|
|
1061
1071
|
raw.files,
|
|
@@ -1209,6 +1219,7 @@ async function updateFile(relPath, operation) {
|
|
|
1209
1219
|
case "bower.json":
|
|
1210
1220
|
case "component.json":
|
|
1211
1221
|
case "jsr.json":
|
|
1222
|
+
case "deno.json":
|
|
1212
1223
|
return updateManifestFile(relPath, operation);
|
|
1213
1224
|
default:
|
|
1214
1225
|
return updateTextFile(relPath, operation);
|
|
@@ -1257,8 +1268,9 @@ async function versionBump(arg = {}) {
|
|
|
1257
1268
|
type: "confirm",
|
|
1258
1269
|
message: "Bump?",
|
|
1259
1270
|
initial: true
|
|
1260
|
-
}).then((r) => r.yes))
|
|
1271
|
+
}).then((r) => r.yes)) {
|
|
1261
1272
|
import_node_process5.default.exit(1);
|
|
1273
|
+
}
|
|
1262
1274
|
}
|
|
1263
1275
|
await runNpmScript("preversion" /* PreVersion */, operation);
|
|
1264
1276
|
await updateFiles(operation);
|
|
@@ -1394,8 +1406,8 @@ function loadCliArgs(argv = import_node_process7.default.argv) {
|
|
|
1394
1406
|
const result = cli.parse(argv);
|
|
1395
1407
|
const rawArgs = cli.rawArgs;
|
|
1396
1408
|
const args = result.options;
|
|
1397
|
-
const COMMIT_REG = /(
|
|
1398
|
-
const TAG_REG = /(
|
|
1409
|
+
const COMMIT_REG = /(?:-c|--commit|--no-commit)(?:=.*|$)/;
|
|
1410
|
+
const TAG_REG = /(?:-t|--tag|--no-tag)(?:=.*|$)/;
|
|
1399
1411
|
const hasCommitFlag = rawArgs.some((arg) => COMMIT_REG.test(arg));
|
|
1400
1412
|
const hasTagFlag = rawArgs.some((arg) => TAG_REG.test(arg));
|
|
1401
1413
|
const _a = args, { tag, commit } = _a, rest = __objRest(_a, ["tag", "commit"]);
|
package/dist/cli/index.mjs
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
log_symbols_default,
|
|
11
11
|
require_picocolors,
|
|
12
12
|
versionBump
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-WWXZEF5W.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/index.ts
|
|
16
16
|
import process2 from "process";
|
|
17
17
|
|
|
18
18
|
// package.json
|
|
19
|
-
var version = "9.4.
|
|
19
|
+
var version = "9.4.2";
|
|
20
20
|
|
|
21
21
|
// src/cli/parse-args.ts
|
|
22
22
|
var import_picocolors = __toESM(require_picocolors());
|
|
@@ -66,8 +66,8 @@ function loadCliArgs(argv = process.argv) {
|
|
|
66
66
|
const result = cli.parse(argv);
|
|
67
67
|
const rawArgs = cli.rawArgs;
|
|
68
68
|
const args = result.options;
|
|
69
|
-
const COMMIT_REG = /(
|
|
70
|
-
const TAG_REG = /(
|
|
69
|
+
const COMMIT_REG = /(?:-c|--commit|--no-commit)(?:=.*|$)/;
|
|
70
|
+
const TAG_REG = /(?:-t|--tag|--no-tag)(?:=.*|$)/;
|
|
71
71
|
const hasCommitFlag = rawArgs.some((arg) => COMMIT_REG.test(arg));
|
|
72
72
|
const hasTagFlag = rawArgs.some((arg) => TAG_REG.test(arg));
|
|
73
73
|
const _a = args, { tag, commit } = _a, rest = __objRest(_a, ["tag", "commit"]);
|
package/dist/index.d.mts
CHANGED
|
@@ -143,7 +143,7 @@ interface VersionBumpOptions {
|
|
|
143
143
|
* (ReadMe files, config files, source code, etc.) it will simply do a global replacement
|
|
144
144
|
* of the old version number with the new version number.
|
|
145
145
|
*
|
|
146
|
-
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"]
|
|
146
|
+
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"].
|
|
147
147
|
*/
|
|
148
148
|
files?: string[];
|
|
149
149
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ interface VersionBumpOptions {
|
|
|
143
143
|
* (ReadMe files, config files, source code, etc.) it will simply do a global replacement
|
|
144
144
|
* of the old version number with the new version number.
|
|
145
145
|
*
|
|
146
|
-
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"]
|
|
146
|
+
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"].
|
|
147
147
|
*/
|
|
148
148
|
files?: string[];
|
|
149
149
|
/**
|
package/dist/index.js
CHANGED
|
@@ -58,50 +58,58 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
58
58
|
));
|
|
59
59
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
60
60
|
|
|
61
|
-
// node_modules/.pnpm/picocolors@1.0.
|
|
61
|
+
// node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
|
|
62
62
|
var require_picocolors = __commonJS({
|
|
63
|
-
"node_modules/.pnpm/picocolors@1.0.
|
|
64
|
-
var
|
|
65
|
-
var
|
|
63
|
+
"node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
64
|
+
var argv = process.argv || [];
|
|
65
|
+
var env2 = process.env;
|
|
66
|
+
var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
|
|
66
67
|
var formatter = (open, close, replace = open) => (input) => {
|
|
67
68
|
let string = "" + input;
|
|
68
69
|
let index = string.indexOf(close, open.length);
|
|
69
70
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
70
71
|
};
|
|
71
72
|
var replaceClose = (string, close, replace, index) => {
|
|
72
|
-
let
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
let result = "";
|
|
74
|
+
let cursor = 0;
|
|
75
|
+
do {
|
|
76
|
+
result += string.substring(cursor, index) + replace;
|
|
77
|
+
cursor = index + close.length;
|
|
78
|
+
index = string.indexOf(close, cursor);
|
|
79
|
+
} while (~index);
|
|
80
|
+
return result + string.substring(cursor);
|
|
81
|
+
};
|
|
82
|
+
var createColors = (enabled = isColorSupported) => {
|
|
83
|
+
let init = enabled ? formatter : () => String;
|
|
84
|
+
return {
|
|
85
|
+
isColorSupported: enabled,
|
|
86
|
+
reset: init("\x1B[0m", "\x1B[0m"),
|
|
87
|
+
bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
88
|
+
dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
89
|
+
italic: init("\x1B[3m", "\x1B[23m"),
|
|
90
|
+
underline: init("\x1B[4m", "\x1B[24m"),
|
|
91
|
+
inverse: init("\x1B[7m", "\x1B[27m"),
|
|
92
|
+
hidden: init("\x1B[8m", "\x1B[28m"),
|
|
93
|
+
strikethrough: init("\x1B[9m", "\x1B[29m"),
|
|
94
|
+
black: init("\x1B[30m", "\x1B[39m"),
|
|
95
|
+
red: init("\x1B[31m", "\x1B[39m"),
|
|
96
|
+
green: init("\x1B[32m", "\x1B[39m"),
|
|
97
|
+
yellow: init("\x1B[33m", "\x1B[39m"),
|
|
98
|
+
blue: init("\x1B[34m", "\x1B[39m"),
|
|
99
|
+
magenta: init("\x1B[35m", "\x1B[39m"),
|
|
100
|
+
cyan: init("\x1B[36m", "\x1B[39m"),
|
|
101
|
+
white: init("\x1B[37m", "\x1B[39m"),
|
|
102
|
+
gray: init("\x1B[90m", "\x1B[39m"),
|
|
103
|
+
bgBlack: init("\x1B[40m", "\x1B[49m"),
|
|
104
|
+
bgRed: init("\x1B[41m", "\x1B[49m"),
|
|
105
|
+
bgGreen: init("\x1B[42m", "\x1B[49m"),
|
|
106
|
+
bgYellow: init("\x1B[43m", "\x1B[49m"),
|
|
107
|
+
bgBlue: init("\x1B[44m", "\x1B[49m"),
|
|
108
|
+
bgMagenta: init("\x1B[45m", "\x1B[49m"),
|
|
109
|
+
bgCyan: init("\x1B[46m", "\x1B[49m"),
|
|
110
|
+
bgWhite: init("\x1B[47m", "\x1B[49m")
|
|
111
|
+
};
|
|
76
112
|
};
|
|
77
|
-
var createColors = (enabled = isColorSupported) => ({
|
|
78
|
-
isColorSupported: enabled,
|
|
79
|
-
reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
|
|
80
|
-
bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
|
|
81
|
-
dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
|
|
82
|
-
italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
|
|
83
|
-
underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
|
|
84
|
-
inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
|
|
85
|
-
hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
|
|
86
|
-
strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
|
|
87
|
-
black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
|
|
88
|
-
red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
|
|
89
|
-
green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
|
|
90
|
-
yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
|
|
91
|
-
blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
|
|
92
|
-
magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
|
|
93
|
-
cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
|
|
94
|
-
white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
|
|
95
|
-
gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
|
|
96
|
-
bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
|
|
97
|
-
bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
|
|
98
|
-
bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
|
|
99
|
-
bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
|
|
100
|
-
bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
|
|
101
|
-
bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
|
|
102
|
-
bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
|
|
103
|
-
bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
|
|
104
|
-
});
|
|
105
113
|
module2.exports = createColors();
|
|
106
114
|
module2.exports.createColors = createColors;
|
|
107
115
|
}
|
|
@@ -948,7 +956,7 @@ async function readVersion(file, cwd) {
|
|
|
948
956
|
if ((0, import_semver2.valid)(manifest.version))
|
|
949
957
|
return manifest.version;
|
|
950
958
|
}
|
|
951
|
-
} catch (
|
|
959
|
+
} catch (e) {
|
|
952
960
|
return void 0;
|
|
953
961
|
}
|
|
954
962
|
}
|
|
@@ -1066,7 +1074,9 @@ async function normalizeOptions(raw) {
|
|
|
1066
1074
|
"package-lock.json",
|
|
1067
1075
|
"packages/**/package.json",
|
|
1068
1076
|
"jsr.json",
|
|
1069
|
-
"jsr.jsonc"
|
|
1077
|
+
"jsr.jsonc",
|
|
1078
|
+
"deno.json",
|
|
1079
|
+
"deno.jsonc"
|
|
1070
1080
|
];
|
|
1071
1081
|
if (import_node_fs2.default.existsSync("pnpm-workspace.yaml")) {
|
|
1072
1082
|
const pnpmWorkspace = await import_promises.default.readFile("pnpm-workspace.yaml", "utf8");
|
|
@@ -1079,7 +1089,7 @@ async function normalizeOptions(raw) {
|
|
|
1079
1089
|
raw.files = raw.files.concat(withoutExcludedWorkspaces);
|
|
1080
1090
|
}
|
|
1081
1091
|
} else {
|
|
1082
|
-
raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"];
|
|
1092
|
+
raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"];
|
|
1083
1093
|
}
|
|
1084
1094
|
const files = await (0, import_fast_glob.default)(
|
|
1085
1095
|
raw.files,
|
|
@@ -1233,6 +1243,7 @@ async function updateFile(relPath, operation) {
|
|
|
1233
1243
|
case "bower.json":
|
|
1234
1244
|
case "component.json":
|
|
1235
1245
|
case "jsr.json":
|
|
1246
|
+
case "deno.json":
|
|
1236
1247
|
return updateManifestFile(relPath, operation);
|
|
1237
1248
|
default:
|
|
1238
1249
|
return updateTextFile(relPath, operation);
|
|
@@ -1281,8 +1292,9 @@ async function versionBump(arg = {}) {
|
|
|
1281
1292
|
type: "confirm",
|
|
1282
1293
|
message: "Bump?",
|
|
1283
1294
|
initial: true
|
|
1284
|
-
}).then((r) => r.yes))
|
|
1295
|
+
}).then((r) => r.yes)) {
|
|
1285
1296
|
import_node_process5.default.exit(1);
|
|
1297
|
+
}
|
|
1286
1298
|
}
|
|
1287
1299
|
await runNpmScript("preversion" /* PreVersion */, operation);
|
|
1288
1300
|
await updateFiles(operation);
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bumpp",
|
|
3
|
-
"version": "9.4.
|
|
4
|
-
"packageManager": "pnpm@9.0
|
|
3
|
+
"version": "9.4.2",
|
|
4
|
+
"packageManager": "pnpm@9.6.0",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "James Messinger",
|
|
@@ -60,30 +60,30 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@jsdevtools/ez-spawn": "^3.0.4",
|
|
63
|
-
"c12": "^1.
|
|
63
|
+
"c12": "^1.11.1",
|
|
64
64
|
"cac": "^6.7.14",
|
|
65
65
|
"escalade": "^3.1.2",
|
|
66
66
|
"fast-glob": "^3.3.2",
|
|
67
67
|
"js-yaml": "^4.1.0",
|
|
68
68
|
"prompts": "^2.4.2",
|
|
69
|
-
"semver": "^7.6.
|
|
69
|
+
"semver": "^7.6.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@antfu/eslint-config": "^2.
|
|
72
|
+
"@antfu/eslint-config": "^2.24.1",
|
|
73
73
|
"@types/js-yaml": "^4.0.9",
|
|
74
|
-
"@types/node": "^
|
|
74
|
+
"@types/node": "^22.0.2",
|
|
75
75
|
"@types/prompts": "^2.4.9",
|
|
76
76
|
"@types/semver": "^7.5.8",
|
|
77
77
|
"detect-indent": "^7.0.1",
|
|
78
78
|
"detect-newline": "^4.0.1",
|
|
79
|
-
"eslint": "^9.
|
|
79
|
+
"eslint": "^9.8.0",
|
|
80
80
|
"esno": "^4.7.0",
|
|
81
81
|
"log-symbols": "^6.0.0",
|
|
82
82
|
"npm-check": "^6.0.1",
|
|
83
|
-
"picocolors": "^1.0.
|
|
84
|
-
"rimraf": "^
|
|
85
|
-
"tsup": "^8.
|
|
86
|
-
"typescript": "^5.4
|
|
87
|
-
"vitest": "^
|
|
83
|
+
"picocolors": "^1.0.1",
|
|
84
|
+
"rimraf": "^6.0.1",
|
|
85
|
+
"tsup": "^8.2.3",
|
|
86
|
+
"typescript": "^5.5.4",
|
|
87
|
+
"vitest": "^2.0.5"
|
|
88
88
|
}
|
|
89
89
|
}
|