bumpp 10.0.0 → 10.0.1
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,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
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
|
|
3
|
+
import { l as loadBumpConfig, i as isReleaseType, c, b as bumpConfigDefaults, v as versionBump, P as ProgressEvent, s as symbols } from './shared/bumpp.BiZDmkNc.mjs';
|
|
4
4
|
import cac from 'cac';
|
|
5
5
|
import { valid } from 'semver';
|
|
6
6
|
import 'prompts';
|
|
@@ -21,7 +21,7 @@ var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
|
21
21
|
return ExitCode2;
|
|
22
22
|
})(ExitCode || {});
|
|
23
23
|
|
|
24
|
-
const version = "10.0.
|
|
24
|
+
const version = "10.0.1";
|
|
25
25
|
|
|
26
26
|
async function parseArgs() {
|
|
27
27
|
try {
|
|
@@ -117,22 +117,22 @@ ${stdout}`);
|
|
|
117
117
|
function progress({ event, script, updatedFiles, skippedFiles, newVersion }) {
|
|
118
118
|
switch (event) {
|
|
119
119
|
case ProgressEvent.FileUpdated:
|
|
120
|
-
console.log(success, `Updated ${updatedFiles.pop()} to ${newVersion}`);
|
|
120
|
+
console.log(symbols.success, `Updated ${updatedFiles.pop()} to ${newVersion}`);
|
|
121
121
|
break;
|
|
122
122
|
case ProgressEvent.FileSkipped:
|
|
123
|
-
console.log(info, `${skippedFiles.pop()} did not need to be updated`);
|
|
123
|
+
console.log(symbols.info, `${skippedFiles.pop()} did not need to be updated`);
|
|
124
124
|
break;
|
|
125
125
|
case ProgressEvent.GitCommit:
|
|
126
|
-
console.log(success, "Git commit");
|
|
126
|
+
console.log(symbols.success, "Git commit");
|
|
127
127
|
break;
|
|
128
128
|
case ProgressEvent.GitTag:
|
|
129
|
-
console.log(success, "Git tag");
|
|
129
|
+
console.log(symbols.success, "Git tag");
|
|
130
130
|
break;
|
|
131
131
|
case ProgressEvent.GitPush:
|
|
132
|
-
console.log(success, "Git push");
|
|
132
|
+
console.log(symbols.success, "Git push");
|
|
133
133
|
break;
|
|
134
134
|
case ProgressEvent.NpmScript:
|
|
135
|
-
console.log(success, `Npm run ${script}`);
|
|
135
|
+
console.log(symbols.success, `Npm run ${script}`);
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
138
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.BiZDmkNc.mjs';
|
|
2
|
+
export { N as NpmScript, P as ProgressEvent, b as bumpConfigDefaults, d as defineConfig, l as loadBumpConfig, a as versionBumpInfo } from './shared/bumpp.BiZDmkNc.mjs';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'prompts';
|
|
5
5
|
import 'node:child_process';
|
|
@@ -61,9 +61,6 @@ var tokenizeArgs = (argsString, options) => {
|
|
|
61
61
|
return tokens;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
const info = 'ℹ️';
|
|
65
|
-
const success = '✅';
|
|
66
|
-
|
|
67
64
|
function getDefaultExportFromCjs (x) {
|
|
68
65
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
69
66
|
}
|
|
@@ -239,6 +236,11 @@ function getRecentCommits(from, to) {
|
|
|
239
236
|
return getCommits(from, to);
|
|
240
237
|
}
|
|
241
238
|
|
|
239
|
+
const symbols = {
|
|
240
|
+
success: c.green("\u2714"),
|
|
241
|
+
info: c.blue("\u2139")
|
|
242
|
+
};
|
|
243
|
+
|
|
242
244
|
async function readJsoncFile(name, cwd) {
|
|
243
245
|
const file = await readTextFile(name, cwd);
|
|
244
246
|
const data = jsonc.parse(file.data);
|
|
@@ -866,7 +868,7 @@ async function versionBump(arg = {}) {
|
|
|
866
868
|
if (!command) {
|
|
867
869
|
throw new Error("Could not find install command for package manager");
|
|
868
870
|
}
|
|
869
|
-
console.log(info, "Installing dependencies with", `${command.command} ${command.args.join(" ")}`);
|
|
871
|
+
console.log(symbols.info, "Installing dependencies with", `${command.command} ${command.args.join(" ")}`);
|
|
870
872
|
await x(command.command, command.args, {
|
|
871
873
|
throwOnError: true,
|
|
872
874
|
nodeOptions: {
|
|
@@ -874,14 +876,14 @@ async function versionBump(arg = {}) {
|
|
|
874
876
|
cwd: operation.options.cwd
|
|
875
877
|
}
|
|
876
878
|
});
|
|
877
|
-
console.log(success, "Dependencies installed");
|
|
879
|
+
console.log(symbols.success, "Dependencies installed");
|
|
878
880
|
}
|
|
879
881
|
if (operation.options.execute) {
|
|
880
882
|
if (typeof operation.options.execute === "function") {
|
|
881
883
|
await operation.options.execute(operation);
|
|
882
884
|
} else {
|
|
883
885
|
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
884
|
-
console.log(info, "Executing script", command, ...args);
|
|
886
|
+
console.log(symbols.info, "Executing script", command, ...args);
|
|
885
887
|
await x(command, args, {
|
|
886
888
|
throwOnError: true,
|
|
887
889
|
nodeOptions: {
|
|
@@ -889,7 +891,7 @@ async function versionBump(arg = {}) {
|
|
|
889
891
|
cwd: operation.options.cwd
|
|
890
892
|
}
|
|
891
893
|
});
|
|
892
|
-
console.log(success, "Script finished");
|
|
894
|
+
console.log(symbols.success, "Script finished");
|
|
893
895
|
}
|
|
894
896
|
}
|
|
895
897
|
await runNpmScript(NpmScript.Version, operation);
|
|
@@ -983,4 +985,4 @@ function defineConfig(config) {
|
|
|
983
985
|
return config;
|
|
984
986
|
}
|
|
985
987
|
|
|
986
|
-
export { NpmScript as N, ProgressEvent as P, versionBumpInfo as a, bumpConfigDefaults as b, c, defineConfig as d,
|
|
988
|
+
export { NpmScript as N, ProgressEvent as P, versionBumpInfo as a, bumpConfigDefaults as b, c, defineConfig as d, isReleaseType as i, loadBumpConfig as l, symbols as s, versionBump as v };
|
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.1",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"args-tokenizer": "^0.3.0",
|
|
72
72
|
"eslint": "^9.19.0",
|
|
73
73
|
"esno": "^4.8.0",
|
|
74
|
-
"log-symbols": "^7.0.0",
|
|
75
74
|
"picocolors": "^1.1.1",
|
|
76
75
|
"rimraf": "^6.0.1",
|
|
77
76
|
"tiny-conventional-commits-parser": "^0.0.1",
|