@storm-software/git-tools 2.104.47 → 2.104.49
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/README.md +1 -2
- package/bin/{chunk-MM5AJ3HN.js → chunk-23TCSI67.js} +26 -143
- package/bin/{chunk-LHINQG4H.cjs → chunk-34R4PCUS.cjs} +9 -35
- package/bin/chunk-3XEEEMLV.js +25 -0
- package/bin/{chunk-FDIL5LQQ.cjs → chunk-3YZZSIRA.cjs} +2 -8
- package/bin/{chunk-QVRLY7GO.js → chunk-5DZECCFZ.js} +1831 -3498
- package/bin/{chunk-C56ONEWE.cjs → chunk-A3QVIDKR.cjs} +2063 -4146
- package/bin/{chunk-RWG7K3L2.cjs → chunk-ANR3M366.cjs} +14 -46
- package/bin/{chunk-YCGKNXJZ.cjs → chunk-AQDYBQBF.cjs} +2 -12
- package/bin/{chunk-DNTOHRW4.js → chunk-BJYW7ISD.js} +78 -182
- package/bin/{chunk-YKGA2MVU.cjs → chunk-FY5QB5MQ.cjs} +13 -47
- package/bin/{chunk-DBXOSHV7.js → chunk-GIYWTOX5.js} +10 -44
- package/bin/{chunk-YS7O5BRI.cjs → chunk-H6RJC2EU.cjs} +29 -146
- package/bin/{chunk-IFBRUMYX.js → chunk-KTLBDGE7.js} +1 -11
- package/bin/{chunk-RJTSICHA.js → chunk-M3SPNRDT.js} +6 -32
- package/bin/{chunk-PW5R2BRU.cjs → chunk-MRCW7ZWW.cjs} +4 -5
- package/bin/{chunk-KD5ZCYX3.cjs → chunk-OQNZFKFJ.cjs} +22 -445
- package/bin/{chunk-OBE5IRH4.js → chunk-PAW5GJNL.js} +3 -4
- package/bin/{chunk-377YOE7Z.js → chunk-QROY5223.js} +4 -426
- package/bin/{chunk-QYSGMK4D.js → chunk-REUY4MDC.js} +10 -42
- package/bin/{chunk-JUU5ILZB.cjs → chunk-RHY34RLE.cjs} +4 -6
- package/bin/{chunk-PRG2N75Y.js → chunk-V3UDZCED.js} +1 -7
- package/bin/chunk-VNWRUK6N.cjs +25 -0
- package/bin/{chunk-EJRTGQIY.js → chunk-W2TU25OT.js} +2 -4
- package/bin/{chunk-V2L6QG6X.cjs → chunk-Z3K5JTIC.cjs} +88 -192
- package/bin/{dist-YVMKTFW6.cjs → dist-3B7RDNKI.cjs} +1097 -2113
- package/bin/{dist-AXJG5W3U.js → dist-BGCQPBHL.js} +2 -5
- package/bin/{dist-5TR4KAWC.cjs → dist-WGGNNSDG.cjs} +6 -9
- package/bin/{dist-KY7IAJSV.js → dist-YM6D424K.js} +417 -1489
- package/bin/{esm-MGSMO3WY.cjs → esm-6GE5MI4G.cjs} +249 -254
- package/bin/{esm-IZHFRARS.js → esm-WLHP7RVO.js} +246 -251
- package/bin/git.cjs +9757 -20881
- package/bin/git.js +4720 -13387
- package/bin/json5-ELADGSSP.js +10 -0
- package/bin/json5-FQPHMSAC.cjs +10 -0
- package/bin/jsonc-CTYQYPBR.cjs +15 -0
- package/bin/{jsonc-6643P3LC.js → jsonc-RUGZP2X2.js} +3 -3
- package/bin/{multipart-parser-Z3URKOGZ.cjs → multipart-parser-I4Y55UNL.cjs} +8 -14
- package/bin/{multipart-parser-HAF2WA3O.js → multipart-parser-MFV7BRF2.js} +3 -9
- package/bin/post-checkout.cjs +29 -23
- package/bin/post-checkout.js +19 -13
- package/bin/post-commit.cjs +29 -23
- package/bin/post-commit.js +19 -13
- package/bin/post-merge.cjs +29 -23
- package/bin/post-merge.js +19 -13
- package/bin/pre-commit.cjs +26 -20
- package/bin/pre-commit.js +17 -11
- package/bin/pre-install.cjs +22 -19
- package/bin/pre-install.js +13 -10
- package/bin/pre-push.cjs +55 -36
- package/bin/pre-push.js +40 -21
- package/bin/prepare.cjs +20 -17
- package/bin/prepare.js +13 -10
- package/bin/toml-IRXKI45Y.cjs +10 -0
- package/bin/toml-U3J6BEAR.js +10 -0
- package/bin/{utils-WL6G35GX.js → utils-6O4EJJM3.js} +2 -12
- package/bin/{utils-PZ3SHU7I.cjs → utils-GJRPR6GZ.cjs} +5 -15
- package/bin/version-warning.cjs +18 -15
- package/bin/version-warning.js +13 -10
- package/bin/yaml-CPOMXZOK.js +10 -0
- package/bin/yaml-WGJNEJ7V.cjs +10 -0
- package/dist/{chunk-232JIEVA.js → chunk-3MA2SHAT.js} +1 -1
- package/dist/chunk-3V3F7TB7.cjs +18 -0
- package/dist/{chunk-TFEV2FZY.js → chunk-D7HN6Y5M.js} +8 -9
- package/dist/{chunk-L2C6A3XV.cjs → chunk-EQZ3BKYL.cjs} +9 -10
- package/dist/{chunk-WTMYHIID.cjs → chunk-FX5G24P6.cjs} +3 -3
- package/dist/{chunk-W7SYRJE7.js → chunk-JVIJRTGD.js} +1 -1
- package/dist/commit/config.cjs +3 -3
- package/dist/commit/config.js +2 -2
- package/dist/commitlint/config.cjs +24 -103
- package/dist/commitlint/config.js +24 -103
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/bin/chunk-5DWG2HXA.js +0 -22
- package/bin/chunk-7B6YVRI6.cjs +0 -22
- package/bin/json5-DQ2B7V4X.js +0 -10
- package/bin/json5-OV4LY5NN.cjs +0 -10
- package/bin/jsonc-SKJF3GPV.cjs +0 -15
- package/bin/toml-IP5GTCQW.cjs +0 -10
- package/bin/toml-KSQJ7SIB.js +0 -10
- package/bin/yaml-3NH46CEJ.cjs +0 -10
- package/bin/yaml-F3NXDIX4.js +0 -10
- package/dist/chunk-Y7XG7IJ6.cjs +0 -18
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3YZZSIRAcjs = require('./chunk-3YZZSIRA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
var _chunkJUU5ILZBcjs = require('./chunk-JUU5ILZB.cjs');
|
|
7
|
+
var _chunkRHY34RLEcjs = require('./chunk-RHY34RLE.cjs');
|
|
9
8
|
|
|
10
9
|
// ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/utils/index.mjs
|
|
11
|
-
|
|
10
|
+
_chunkRHY34RLEcjs.init_cjs_shims.call(void 0, );
|
|
12
11
|
function diff(obj1, obj2) {
|
|
13
12
|
const h1 = _toHashedObject(obj1);
|
|
14
13
|
const h2 = _toHashedObject(obj2);
|
|
15
14
|
return _diff(h1, h2);
|
|
16
15
|
}
|
|
17
|
-
_chunkJUU5ILZBcjs.__name.call(void 0, diff, "diff");
|
|
18
16
|
function _diff(h1, h2) {
|
|
19
17
|
const diffs = [];
|
|
20
18
|
const allProps = /* @__PURE__ */ new Set([
|
|
@@ -39,10 +37,9 @@ function _diff(h1, h2) {
|
|
|
39
37
|
}
|
|
40
38
|
return diffs;
|
|
41
39
|
}
|
|
42
|
-
_chunkJUU5ILZBcjs.__name.call(void 0, _diff, "_diff");
|
|
43
40
|
function _toHashedObject(obj, key = "") {
|
|
44
41
|
if (obj && typeof obj !== "object") {
|
|
45
|
-
return new DiffHashedObject(key, obj,
|
|
42
|
+
return new DiffHashedObject(key, obj, _chunk3YZZSIRAcjs.serialize.call(void 0, obj));
|
|
46
43
|
}
|
|
47
44
|
const props = {};
|
|
48
45
|
const hashes = [];
|
|
@@ -52,11 +49,7 @@ function _toHashedObject(obj, key = "") {
|
|
|
52
49
|
}
|
|
53
50
|
return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
|
|
54
51
|
}
|
|
55
|
-
_chunkJUU5ILZBcjs.__name.call(void 0, _toHashedObject, "_toHashedObject");
|
|
56
52
|
var DiffEntry = class {
|
|
57
|
-
static {
|
|
58
|
-
_chunkJUU5ILZBcjs.__name.call(void 0, this, "DiffEntry");
|
|
59
|
-
}
|
|
60
53
|
constructor(key, type, newValue, oldValue) {
|
|
61
54
|
this.key = key;
|
|
62
55
|
this.type = type;
|
|
@@ -81,9 +74,6 @@ var DiffEntry = class {
|
|
|
81
74
|
}
|
|
82
75
|
};
|
|
83
76
|
var DiffHashedObject = class {
|
|
84
|
-
static {
|
|
85
|
-
_chunkJUU5ILZBcjs.__name.call(void 0, this, "DiffHashedObject");
|
|
86
|
-
}
|
|
87
77
|
constructor(key, value, hash, props) {
|
|
88
78
|
this.key = key;
|
|
89
79
|
this.value = value;
|
|
@@ -108,4 +98,4 @@ var DiffHashedObject = class {
|
|
|
108
98
|
|
|
109
99
|
|
|
110
100
|
|
|
111
|
-
exports.diff = diff; exports.isEqual =
|
|
101
|
+
exports.diff = diff; exports.isEqual = _chunk3YZZSIRAcjs.isEqual;
|
package/bin/version-warning.cjs
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVNWRUK6Ncjs = require('./chunk-VNWRUK6N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
10
|
+
var _chunkA3QVIDKRcjs = require('./chunk-A3QVIDKR.cjs');
|
|
11
|
+
require('./chunk-Z3K5JTIC.cjs');
|
|
12
|
+
require('./chunk-34R4PCUS.cjs');
|
|
13
|
+
require('./chunk-H6RJC2EU.cjs');
|
|
14
|
+
require('./chunk-FY5QB5MQ.cjs');
|
|
15
|
+
require('./chunk-ANR3M366.cjs');
|
|
16
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkRHY34RLEcjs = require('./chunk-RHY34RLE.cjs');
|
|
20
20
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
|
-
|
|
22
|
+
_chunkRHY34RLEcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkA3QVIDKRcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
_chunkA3QVIDKRcjs.handleProcess.call(void 0, config);
|
|
27
|
+
_chunkVNWRUK6Ncjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkA3QVIDKRcjs.writeFatal.call(void 0,
|
|
30
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
31
|
+
config
|
|
32
|
+
);
|
|
33
|
+
_chunkA3QVIDKRcjs.exitWithError.call(void 0, config);
|
|
31
34
|
process.exit(1);
|
|
32
35
|
}
|
|
33
36
|
})();
|
package/bin/version-warning.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
checkPackageVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3XEEEMLV.js";
|
|
5
5
|
import {
|
|
6
6
|
exitWithError,
|
|
7
7
|
getConfig,
|
|
8
8
|
handleProcess,
|
|
9
9
|
writeFatal
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-5DZECCFZ.js";
|
|
11
|
+
import "./chunk-BJYW7ISD.js";
|
|
12
|
+
import "./chunk-M3SPNRDT.js";
|
|
13
|
+
import "./chunk-23TCSI67.js";
|
|
14
|
+
import "./chunk-GIYWTOX5.js";
|
|
15
|
+
import "./chunk-REUY4MDC.js";
|
|
16
|
+
import "./chunk-KTLBDGE7.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esm_shims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W2TU25OT.js";
|
|
20
20
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
init_esm_shims();
|
|
@@ -26,7 +26,10 @@ void (async () => {
|
|
|
26
26
|
handleProcess(config);
|
|
27
27
|
checkPackageVersion(process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
writeFatal(
|
|
29
|
+
writeFatal(
|
|
30
|
+
`A fatal error occurred while running the program: ${error.message}`,
|
|
31
|
+
config
|
|
32
|
+
);
|
|
30
33
|
exitWithError(config);
|
|
31
34
|
process.exit(1);
|
|
32
35
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkH6RJC2EUcjs = require('./chunk-H6RJC2EU.cjs');
|
|
5
|
+
require('./chunk-AQDYBQBF.cjs');
|
|
6
|
+
require('./chunk-RHY34RLE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.parseYAML = _chunkH6RJC2EUcjs.Ar; exports.stringifyYAML = _chunkH6RJC2EUcjs.vr;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkEQZ3BKYLcjs = require('./chunk-EQZ3BKYL.cjs');
|
|
7
|
+
|
|
8
|
+
// src/commit/config.ts
|
|
9
|
+
var DEFAULT_COMMIT_CONFIG = {
|
|
10
|
+
settings: _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_SETTINGS,
|
|
11
|
+
messages: _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
12
|
+
questions: _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_QUESTIONS,
|
|
13
|
+
types: _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_TYPES
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.DEFAULT_COMMIT_CONFIG = DEFAULT_COMMIT_CONFIG;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/types.ts
|
|
5
2
|
var DEFAULT_COMMIT_TYPES = {
|
|
6
3
|
/* --- Bumps version when selected --- */
|
|
@@ -136,7 +133,9 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
136
133
|
type: "select",
|
|
137
134
|
title: "Commit Type",
|
|
138
135
|
description: "Select the commit type that best describes your changes",
|
|
139
|
-
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
136
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
137
|
+
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
138
|
+
).reduce((ret, type) => {
|
|
140
139
|
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
141
140
|
return ret;
|
|
142
141
|
}, {}),
|
|
@@ -176,7 +175,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
176
175
|
type: "input",
|
|
177
176
|
title: "Breaking Changes (Details)",
|
|
178
177
|
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
179
|
-
when:
|
|
178
|
+
when: (answers) => answers.isBreaking === true,
|
|
180
179
|
maxLength: 600,
|
|
181
180
|
minLength: 3
|
|
182
181
|
},
|
|
@@ -190,7 +189,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
190
189
|
type: "input",
|
|
191
190
|
title: "Open Issue Affected (Details)",
|
|
192
191
|
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
193
|
-
when:
|
|
192
|
+
when: (answers) => answers.isIssueAffected === true,
|
|
194
193
|
maxLength: 600,
|
|
195
194
|
minLength: 3
|
|
196
195
|
}
|
|
@@ -212,12 +211,12 @@ var DEFAULT_COMMIT_SETTINGS = {
|
|
|
212
211
|
closedIssuePrefix: "\u2705 ",
|
|
213
212
|
format: DEFAULT_COMMIT_MESSAGE_FORMAT
|
|
214
213
|
};
|
|
215
|
-
var RuleConfigSeverity
|
|
216
|
-
(function(RuleConfigSeverity2) {
|
|
214
|
+
var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
|
|
217
215
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
218
216
|
RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
|
|
219
217
|
RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
|
|
220
|
-
|
|
218
|
+
return RuleConfigSeverity2;
|
|
219
|
+
})(RuleConfigSeverity || {});
|
|
221
220
|
|
|
222
221
|
export {
|
|
223
222
|
DEFAULT_COMMIT_TYPES,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
|
-
// src/types.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/types.ts
|
|
5
2
|
var DEFAULT_COMMIT_TYPES = {
|
|
6
3
|
/* --- Bumps version when selected --- */
|
|
7
4
|
chore: {
|
|
@@ -136,7 +133,9 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
136
133
|
type: "select",
|
|
137
134
|
title: "Commit Type",
|
|
138
135
|
description: "Select the commit type that best describes your changes",
|
|
139
|
-
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
136
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
137
|
+
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
138
|
+
).reduce((ret, type) => {
|
|
140
139
|
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
141
140
|
return ret;
|
|
142
141
|
}, {}),
|
|
@@ -176,7 +175,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
176
175
|
type: "input",
|
|
177
176
|
title: "Breaking Changes (Details)",
|
|
178
177
|
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
179
|
-
when:
|
|
178
|
+
when: (answers) => answers.isBreaking === true,
|
|
180
179
|
maxLength: 600,
|
|
181
180
|
minLength: 3
|
|
182
181
|
},
|
|
@@ -190,7 +189,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
190
189
|
type: "input",
|
|
191
190
|
title: "Open Issue Affected (Details)",
|
|
192
191
|
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
193
|
-
when:
|
|
192
|
+
when: (answers) => answers.isIssueAffected === true,
|
|
194
193
|
maxLength: 600,
|
|
195
194
|
minLength: 3
|
|
196
195
|
}
|
|
@@ -212,12 +211,12 @@ var DEFAULT_COMMIT_SETTINGS = {
|
|
|
212
211
|
closedIssuePrefix: "\u2705 ",
|
|
213
212
|
format: DEFAULT_COMMIT_MESSAGE_FORMAT
|
|
214
213
|
};
|
|
215
|
-
var RuleConfigSeverity
|
|
216
|
-
(function(RuleConfigSeverity2) {
|
|
214
|
+
var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
|
|
217
215
|
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
218
216
|
RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
|
|
219
217
|
RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
|
|
220
|
-
|
|
218
|
+
return RuleConfigSeverity2;
|
|
219
|
+
})(RuleConfigSeverity || {});
|
|
221
220
|
|
|
222
221
|
|
|
223
222
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEQZ3BKYLcjs = require('./chunk-EQZ3BKYL.cjs');
|
|
5
5
|
|
|
6
6
|
// src/release/config.ts
|
|
7
7
|
var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
|
|
8
|
-
questions:
|
|
9
|
-
types:
|
|
8
|
+
questions: _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_QUESTIONS,
|
|
9
|
+
types: _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_TYPES
|
|
10
10
|
};
|
|
11
11
|
var DEFAULT_RELEASE_GROUP_CONFIG = {
|
|
12
12
|
projectsRelationship: "independent",
|
package/dist/commit/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk3V3F7TB7cjs = require('../chunk-3V3F7TB7.cjs');
|
|
4
|
+
require('../chunk-EQZ3BKYL.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.DEFAULT_COMMIT_CONFIG =
|
|
7
|
+
exports.DEFAULT_COMMIT_CONFIG = _chunk3V3F7TB7cjs.DEFAULT_COMMIT_CONFIG;
|
package/dist/commit/config.js
CHANGED
|
@@ -1,98 +1,31 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var _chunkL2C6A3XVcjs = require('../chunk-L2C6A3XV.cjs');
|
|
3
|
+
var _chunkEQZ3BKYLcjs = require('../chunk-EQZ3BKYL.cjs');
|
|
5
4
|
|
|
6
5
|
// src/commitlint/config.ts
|
|
7
6
|
var DEFAULT_COMMIT_RULES = {
|
|
8
|
-
"body-leading-blank": [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
],
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
],
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
"footer-max-line-length": [
|
|
22
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
23
|
-
"always",
|
|
24
|
-
150
|
|
25
|
-
],
|
|
26
|
-
"header-max-length": [
|
|
27
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
28
|
-
"always",
|
|
29
|
-
150
|
|
30
|
-
],
|
|
31
|
-
"header-trim": [
|
|
32
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
33
|
-
"always"
|
|
34
|
-
],
|
|
35
|
-
"subject-case": [
|
|
36
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
37
|
-
"always",
|
|
38
|
-
[
|
|
39
|
-
"sentence-case"
|
|
40
|
-
]
|
|
41
|
-
],
|
|
42
|
-
"subject-empty": [
|
|
43
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
44
|
-
"never"
|
|
45
|
-
],
|
|
46
|
-
"subject-full-stop": [
|
|
47
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
48
|
-
"never",
|
|
49
|
-
"."
|
|
50
|
-
],
|
|
51
|
-
"subject-max-length": [
|
|
52
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
53
|
-
"always",
|
|
54
|
-
150
|
|
55
|
-
],
|
|
56
|
-
"subject-min-length": [
|
|
57
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
58
|
-
"always",
|
|
59
|
-
3
|
|
60
|
-
],
|
|
61
|
-
"type-case": [
|
|
62
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
63
|
-
"always",
|
|
64
|
-
"kebab-case"
|
|
65
|
-
],
|
|
66
|
-
"type-empty": [
|
|
67
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
68
|
-
"never"
|
|
69
|
-
],
|
|
7
|
+
"body-leading-blank": [1 /* Warning */, "always"],
|
|
8
|
+
"body-max-length": [2 /* Error */, "always", 600],
|
|
9
|
+
"footer-leading-blank": [1 /* Warning */, "always"],
|
|
10
|
+
"footer-max-line-length": [2 /* Error */, "always", 150],
|
|
11
|
+
"header-max-length": [2 /* Error */, "always", 150],
|
|
12
|
+
"header-trim": [2 /* Error */, "always"],
|
|
13
|
+
"subject-case": [2 /* Error */, "always", ["sentence-case"]],
|
|
14
|
+
"subject-empty": [2 /* Error */, "never"],
|
|
15
|
+
"subject-full-stop": [2 /* Error */, "never", "."],
|
|
16
|
+
"subject-max-length": [2 /* Error */, "always", 150],
|
|
17
|
+
"subject-min-length": [2 /* Error */, "always", 3],
|
|
18
|
+
"type-case": [2 /* Error */, "always", "kebab-case"],
|
|
19
|
+
"type-empty": [2 /* Error */, "never"],
|
|
70
20
|
"type-enum": [
|
|
71
|
-
|
|
72
|
-
"always",
|
|
73
|
-
Object.keys(_chunkL2C6A3XVcjs.DEFAULT_COMMIT_TYPES)
|
|
74
|
-
],
|
|
75
|
-
"type-max-length": [
|
|
76
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
77
|
-
"always",
|
|
78
|
-
20
|
|
79
|
-
],
|
|
80
|
-
"type-min-length": [
|
|
81
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
82
|
-
"always",
|
|
83
|
-
3
|
|
84
|
-
],
|
|
85
|
-
"scope-case": [
|
|
86
|
-
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
|
|
21
|
+
2 /* Error */,
|
|
87
22
|
"always",
|
|
88
|
-
|
|
89
|
-
"kebab-case"
|
|
90
|
-
]
|
|
23
|
+
Object.keys(_chunkEQZ3BKYLcjs.DEFAULT_COMMIT_TYPES)
|
|
91
24
|
],
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
]
|
|
25
|
+
"type-max-length": [2 /* Error */, "always", 20],
|
|
26
|
+
"type-min-length": [2 /* Error */, "always", 3],
|
|
27
|
+
"scope-case": [2 /* Error */, "always", ["kebab-case"]],
|
|
28
|
+
"scope-empty": [2 /* Error */, "never"]
|
|
96
29
|
};
|
|
97
30
|
var DEFAULT_COMMITLINT_CONFIG = {
|
|
98
31
|
rules: DEFAULT_COMMIT_RULES,
|
|
@@ -100,23 +33,11 @@ var DEFAULT_COMMITLINT_CONFIG = {
|
|
|
100
33
|
parserOpts: {
|
|
101
34
|
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
|
|
102
35
|
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
|
|
103
|
-
headerCorrespondence: [
|
|
104
|
-
|
|
105
|
-
"scope",
|
|
106
|
-
"subject"
|
|
107
|
-
],
|
|
108
|
-
noteKeywords: [
|
|
109
|
-
"BREAKING CHANGE",
|
|
110
|
-
"BREAKING-CHANGE"
|
|
111
|
-
],
|
|
36
|
+
headerCorrespondence: ["type", "scope", "subject"],
|
|
37
|
+
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
112
38
|
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
113
|
-
revertCorrespondence: [
|
|
114
|
-
|
|
115
|
-
"hash"
|
|
116
|
-
],
|
|
117
|
-
issuePrefixes: [
|
|
118
|
-
"#"
|
|
119
|
-
]
|
|
39
|
+
revertCorrespondence: ["header", "hash"],
|
|
40
|
+
issuePrefixes: ["#"]
|
|
120
41
|
}
|
|
121
42
|
};
|
|
122
43
|
|
|
@@ -1,98 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
DEFAULT_COMMIT_TYPES
|
|
3
|
-
|
|
4
|
-
} from "../chunk-TFEV2FZY.js";
|
|
2
|
+
DEFAULT_COMMIT_TYPES
|
|
3
|
+
} from "../chunk-D7HN6Y5M.js";
|
|
5
4
|
|
|
6
5
|
// src/commitlint/config.ts
|
|
7
6
|
var DEFAULT_COMMIT_RULES = {
|
|
8
|
-
"body-leading-blank": [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
],
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
],
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
"footer-max-line-length": [
|
|
22
|
-
RuleConfigSeverity.Error,
|
|
23
|
-
"always",
|
|
24
|
-
150
|
|
25
|
-
],
|
|
26
|
-
"header-max-length": [
|
|
27
|
-
RuleConfigSeverity.Error,
|
|
28
|
-
"always",
|
|
29
|
-
150
|
|
30
|
-
],
|
|
31
|
-
"header-trim": [
|
|
32
|
-
RuleConfigSeverity.Error,
|
|
33
|
-
"always"
|
|
34
|
-
],
|
|
35
|
-
"subject-case": [
|
|
36
|
-
RuleConfigSeverity.Error,
|
|
37
|
-
"always",
|
|
38
|
-
[
|
|
39
|
-
"sentence-case"
|
|
40
|
-
]
|
|
41
|
-
],
|
|
42
|
-
"subject-empty": [
|
|
43
|
-
RuleConfigSeverity.Error,
|
|
44
|
-
"never"
|
|
45
|
-
],
|
|
46
|
-
"subject-full-stop": [
|
|
47
|
-
RuleConfigSeverity.Error,
|
|
48
|
-
"never",
|
|
49
|
-
"."
|
|
50
|
-
],
|
|
51
|
-
"subject-max-length": [
|
|
52
|
-
RuleConfigSeverity.Error,
|
|
53
|
-
"always",
|
|
54
|
-
150
|
|
55
|
-
],
|
|
56
|
-
"subject-min-length": [
|
|
57
|
-
RuleConfigSeverity.Error,
|
|
58
|
-
"always",
|
|
59
|
-
3
|
|
60
|
-
],
|
|
61
|
-
"type-case": [
|
|
62
|
-
RuleConfigSeverity.Error,
|
|
63
|
-
"always",
|
|
64
|
-
"kebab-case"
|
|
65
|
-
],
|
|
66
|
-
"type-empty": [
|
|
67
|
-
RuleConfigSeverity.Error,
|
|
68
|
-
"never"
|
|
69
|
-
],
|
|
7
|
+
"body-leading-blank": [1 /* Warning */, "always"],
|
|
8
|
+
"body-max-length": [2 /* Error */, "always", 600],
|
|
9
|
+
"footer-leading-blank": [1 /* Warning */, "always"],
|
|
10
|
+
"footer-max-line-length": [2 /* Error */, "always", 150],
|
|
11
|
+
"header-max-length": [2 /* Error */, "always", 150],
|
|
12
|
+
"header-trim": [2 /* Error */, "always"],
|
|
13
|
+
"subject-case": [2 /* Error */, "always", ["sentence-case"]],
|
|
14
|
+
"subject-empty": [2 /* Error */, "never"],
|
|
15
|
+
"subject-full-stop": [2 /* Error */, "never", "."],
|
|
16
|
+
"subject-max-length": [2 /* Error */, "always", 150],
|
|
17
|
+
"subject-min-length": [2 /* Error */, "always", 3],
|
|
18
|
+
"type-case": [2 /* Error */, "always", "kebab-case"],
|
|
19
|
+
"type-empty": [2 /* Error */, "never"],
|
|
70
20
|
"type-enum": [
|
|
71
|
-
|
|
21
|
+
2 /* Error */,
|
|
72
22
|
"always",
|
|
73
23
|
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
74
24
|
],
|
|
75
|
-
"type-max-length": [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
],
|
|
80
|
-
"type-min-length": [
|
|
81
|
-
RuleConfigSeverity.Error,
|
|
82
|
-
"always",
|
|
83
|
-
3
|
|
84
|
-
],
|
|
85
|
-
"scope-case": [
|
|
86
|
-
RuleConfigSeverity.Error,
|
|
87
|
-
"always",
|
|
88
|
-
[
|
|
89
|
-
"kebab-case"
|
|
90
|
-
]
|
|
91
|
-
],
|
|
92
|
-
"scope-empty": [
|
|
93
|
-
RuleConfigSeverity.Error,
|
|
94
|
-
"never"
|
|
95
|
-
]
|
|
25
|
+
"type-max-length": [2 /* Error */, "always", 20],
|
|
26
|
+
"type-min-length": [2 /* Error */, "always", 3],
|
|
27
|
+
"scope-case": [2 /* Error */, "always", ["kebab-case"]],
|
|
28
|
+
"scope-empty": [2 /* Error */, "never"]
|
|
96
29
|
};
|
|
97
30
|
var DEFAULT_COMMITLINT_CONFIG = {
|
|
98
31
|
rules: DEFAULT_COMMIT_RULES,
|
|
@@ -100,23 +33,11 @@ var DEFAULT_COMMITLINT_CONFIG = {
|
|
|
100
33
|
parserOpts: {
|
|
101
34
|
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
|
|
102
35
|
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
|
|
103
|
-
headerCorrespondence: [
|
|
104
|
-
|
|
105
|
-
"scope",
|
|
106
|
-
"subject"
|
|
107
|
-
],
|
|
108
|
-
noteKeywords: [
|
|
109
|
-
"BREAKING CHANGE",
|
|
110
|
-
"BREAKING-CHANGE"
|
|
111
|
-
],
|
|
36
|
+
headerCorrespondence: ["type", "scope", "subject"],
|
|
37
|
+
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
112
38
|
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
113
|
-
revertCorrespondence: [
|
|
114
|
-
|
|
115
|
-
"hash"
|
|
116
|
-
],
|
|
117
|
-
issuePrefixes: [
|
|
118
|
-
"#"
|
|
119
|
-
]
|
|
39
|
+
revertCorrespondence: ["header", "hash"],
|
|
40
|
+
issuePrefixes: ["#"]
|
|
120
41
|
}
|
|
121
42
|
};
|
|
122
43
|
export {
|