bumpp 9.10.2 → 9.11.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/bin/bumpp.js +2 -3
- package/dist/{chunk-W5LZZJWM.mjs → chunk-K27IS2ON.js} +257 -332
- package/dist/{cli/index.js → cli.cjs} +204 -273
- package/dist/{cli/index.mjs → cli.js} +8 -11
- package/dist/index.cjs +1070 -0
- package/dist/{index.d.mts → index.d.cts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -1130
- package/package.json +11 -9
- package/dist/index.mjs +0 -23
- /package/dist/{cli/index.d.mts → cli.d.cts} +0 -0
- /package/dist/{cli/index.d.ts → cli.d.ts} +0 -0
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
__objRest,
|
|
4
|
-
__spreadProps,
|
|
5
|
-
__spreadValues,
|
|
6
3
|
__toESM,
|
|
7
4
|
bumpConfigDefaults,
|
|
8
5
|
isReleaseType,
|
|
@@ -10,24 +7,23 @@ import {
|
|
|
10
7
|
require_picocolors,
|
|
11
8
|
symbols_exports,
|
|
12
9
|
versionBump
|
|
13
|
-
} from "
|
|
10
|
+
} from "./chunk-K27IS2ON.js";
|
|
14
11
|
|
|
15
12
|
// src/cli/index.ts
|
|
16
13
|
import process2 from "node:process";
|
|
17
14
|
import { x } from "tinyexec";
|
|
18
15
|
|
|
19
16
|
// src/cli/parse-args.ts
|
|
20
|
-
var import_picocolors = __toESM(require_picocolors());
|
|
17
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
21
18
|
import process from "node:process";
|
|
22
19
|
import cac from "cac";
|
|
23
20
|
import { valid as isValidVersion } from "semver";
|
|
24
21
|
|
|
25
22
|
// package.json
|
|
26
|
-
var version = "9.
|
|
23
|
+
var version = "9.11.1";
|
|
27
24
|
|
|
28
25
|
// src/cli/parse-args.ts
|
|
29
26
|
async function parseArgs() {
|
|
30
|
-
var _a;
|
|
31
27
|
try {
|
|
32
28
|
const { args, resultArgs } = loadCliArgs();
|
|
33
29
|
const parsedArgs = {
|
|
@@ -60,7 +56,7 @@ async function parseArgs() {
|
|
|
60
56
|
parsedArgs.options.files.shift();
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
|
-
if (parsedArgs.options.recursive &&
|
|
59
|
+
if (parsedArgs.options.recursive && parsedArgs.options.files?.length)
|
|
64
60
|
console.log(import_picocolors.default.yellow("The --recursive option is ignored when files are specified"));
|
|
65
61
|
return parsedArgs;
|
|
66
62
|
} catch (error) {
|
|
@@ -77,12 +73,13 @@ function loadCliArgs(argv = process.argv) {
|
|
|
77
73
|
const TAG_REG = /(?:-t|--tag|--no-tag)(?:=.*|$)/;
|
|
78
74
|
const hasCommitFlag = rawArgs.some((arg) => COMMIT_REG.test(arg));
|
|
79
75
|
const hasTagFlag = rawArgs.some((arg) => TAG_REG.test(arg));
|
|
80
|
-
const
|
|
76
|
+
const { tag, commit, ...rest } = args;
|
|
81
77
|
return {
|
|
82
|
-
args:
|
|
78
|
+
args: {
|
|
79
|
+
...rest,
|
|
83
80
|
commit: hasCommitFlag ? commit : void 0,
|
|
84
81
|
tag: hasTagFlag ? tag : void 0
|
|
85
|
-
}
|
|
82
|
+
},
|
|
86
83
|
resultArgs: result.args
|
|
87
84
|
};
|
|
88
85
|
}
|