@storm-software/git-tools 2.113.2 → 2.113.4
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 -1
- package/bin/git.cjs +107 -108
- package/bin/git.js +107 -108
- package/dist/chunk-A4HFPO7F.js +228 -0
- package/dist/chunk-MDOOV3KF.cjs +228 -0
- package/dist/{chunk-JVIJRTGD.js → chunk-OZ5QCRGG.js} +4 -4
- package/dist/{chunk-C6VZWVYK.cjs → chunk-PGN2XOUF.cjs} +3 -4
- package/dist/{chunk-G57AJLLK.js → chunk-R3RXM6UC.js} +4 -5
- package/dist/chunk-SXO5R5AG.cjs +18 -0
- package/dist/commit/config.cjs +3 -3
- package/dist/commit/config.js +2 -2
- package/dist/commitlint/config.cjs +2 -2
- package/dist/commitlint/config.js +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.js +3 -3
- package/package.json +3 -2
- package/dist/chunk-3V3F7TB7.cjs +0 -18
- package/dist/chunk-D7HN6Y5M.js +0 -228
- package/dist/chunk-EQZ3BKYL.cjs +0 -228
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_COMMIT_CONFIG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OZ5QCRGG.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
|
|
6
6
|
DEFAULT_RELEASE_CONFIG,
|
|
7
7
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R3RXM6UC.js";
|
|
9
9
|
import {
|
|
10
|
+
COMMIT_TYPES,
|
|
10
11
|
DEFAULT_COMMIT_MESSAGE_FORMAT,
|
|
11
12
|
DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
12
13
|
DEFAULT_COMMIT_QUESTIONS,
|
|
13
14
|
DEFAULT_COMMIT_SETTINGS,
|
|
14
|
-
DEFAULT_COMMIT_TYPES,
|
|
15
15
|
RuleConfigSeverity
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A4HFPO7F.js";
|
|
17
17
|
export {
|
|
18
|
+
COMMIT_TYPES,
|
|
18
19
|
DEFAULT_COMMIT_CONFIG,
|
|
19
20
|
DEFAULT_COMMIT_MESSAGE_FORMAT,
|
|
20
21
|
DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
21
22
|
DEFAULT_COMMIT_QUESTIONS,
|
|
22
23
|
DEFAULT_COMMIT_SETTINGS,
|
|
23
|
-
DEFAULT_COMMIT_TYPES,
|
|
24
24
|
DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
|
|
25
25
|
DEFAULT_RELEASE_CONFIG,
|
|
26
26
|
DEFAULT_RELEASE_GROUP_CONFIG,
|
package/dist/release/config.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
5
|
+
var _chunkPGN2XOUFcjs = require('../chunk-PGN2XOUF.cjs');
|
|
6
|
+
require('../chunk-MDOOV3KF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG =
|
|
11
|
+
exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG = _chunkPGN2XOUFcjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; exports.DEFAULT_RELEASE_CONFIG = _chunkPGN2XOUFcjs.DEFAULT_RELEASE_CONFIG; exports.DEFAULT_RELEASE_GROUP_CONFIG = _chunkPGN2XOUFcjs.DEFAULT_RELEASE_GROUP_CONFIG;
|
package/dist/release/config.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
|
|
3
3
|
DEFAULT_RELEASE_CONFIG,
|
|
4
4
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-R3RXM6UC.js";
|
|
6
|
+
import "../chunk-A4HFPO7F.js";
|
|
7
7
|
export {
|
|
8
8
|
DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
|
|
9
9
|
DEFAULT_RELEASE_CONFIG,
|
package/dist/types.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMDOOV3KFcjs = require('./chunk-MDOOV3KF.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ var _chunkEQZ3BKYLcjs = require('./chunk-EQZ3BKYL.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.DEFAULT_COMMIT_MESSAGE_FORMAT =
|
|
16
|
+
exports.COMMIT_TYPES = _chunkMDOOV3KFcjs.COMMIT_TYPES; exports.DEFAULT_COMMIT_MESSAGE_FORMAT = _chunkMDOOV3KFcjs.DEFAULT_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_COMMIT_PROMPT_MESSAGES = _chunkMDOOV3KFcjs.DEFAULT_COMMIT_PROMPT_MESSAGES; exports.DEFAULT_COMMIT_QUESTIONS = _chunkMDOOV3KFcjs.DEFAULT_COMMIT_QUESTIONS; exports.DEFAULT_COMMIT_SETTINGS = _chunkMDOOV3KFcjs.DEFAULT_COMMIT_SETTINGS; exports.RuleConfigSeverity = _chunkMDOOV3KFcjs.RuleConfigSeverity;
|
package/dist/types.d.cts
CHANGED
|
@@ -17,7 +17,7 @@ type CommitTypeProps = CommitEnumItemProps & {
|
|
|
17
17
|
hidden: boolean;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
declare const
|
|
20
|
+
declare const COMMIT_TYPES: {
|
|
21
21
|
readonly chore: {
|
|
22
22
|
readonly description: "Other changes that don't modify src or test files";
|
|
23
23
|
readonly title: "Chore";
|
|
@@ -142,7 +142,7 @@ declare const DEFAULT_COMMIT_TYPES: {
|
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
type DefaultCommitTypeKeys = keyof typeof
|
|
145
|
+
type DefaultCommitTypeKeys = keyof typeof COMMIT_TYPES;
|
|
146
146
|
type CommitTypesEnum<TCommitTypes extends DefaultCommitTypeKeys = DefaultCommitTypeKeys> = Record<TCommitTypes, CommitTypeProps>;
|
|
147
147
|
type CommitScopeProps = CommitEnumItemProps & {
|
|
148
148
|
projectRoot: string;
|
|
@@ -488,4 +488,4 @@ type NxReleaseRequiredGitConfig = Required<{
|
|
|
488
488
|
tagArgs?: string | undefined;
|
|
489
489
|
}>;
|
|
490
490
|
|
|
491
|
-
export { type CommitConfig, type CommitEnumItemProps, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionAnswers, type CommitQuestionEnum, type CommitQuestionProps, type CommitResolvedConfig, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, type CommitTypeProps, type CommitTypesEnum, DEFAULT_COMMIT_MESSAGE_FORMAT, DEFAULT_COMMIT_PROMPT_MESSAGES, DEFAULT_COMMIT_QUESTIONS, DEFAULT_COMMIT_SETTINGS,
|
|
491
|
+
export { COMMIT_TYPES, type CommitConfig, type CommitEnumItemProps, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionAnswers, type CommitQuestionEnum, type CommitQuestionProps, type CommitResolvedConfig, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, type CommitTypeProps, type CommitTypesEnum, DEFAULT_COMMIT_MESSAGE_FORMAT, DEFAULT_COMMIT_PROMPT_MESSAGES, DEFAULT_COMMIT_QUESTIONS, DEFAULT_COMMIT_SETTINGS, type DeepPartial, type DefaultCommitPromptMessagesKeys, type DefaultCommitQuestionKeys, type DefaultCommitRulesEnum, type DefaultCommitTypeKeys, type DefaultResolvedCommitRulesEnum, type NxReleaseChangelogConfig, type NxReleaseConfig, type NxReleaseConventionalCommitsConfig, type NxReleaseGitConfig, type NxReleaseGroupConfig, type NxReleaseGroupsConfig, type NxReleaseProjectsConfig, type NxReleaseRequiredGitConfig, type NxReleaseVersionConfig, type ReadMeOptions, type ReleaseConfig, type ReleaseContext, type RuleConfigCondition, RuleConfigSeverity };
|
package/dist/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ type CommitTypeProps = CommitEnumItemProps & {
|
|
|
17
17
|
hidden: boolean;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
declare const
|
|
20
|
+
declare const COMMIT_TYPES: {
|
|
21
21
|
readonly chore: {
|
|
22
22
|
readonly description: "Other changes that don't modify src or test files";
|
|
23
23
|
readonly title: "Chore";
|
|
@@ -142,7 +142,7 @@ declare const DEFAULT_COMMIT_TYPES: {
|
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
type DefaultCommitTypeKeys = keyof typeof
|
|
145
|
+
type DefaultCommitTypeKeys = keyof typeof COMMIT_TYPES;
|
|
146
146
|
type CommitTypesEnum<TCommitTypes extends DefaultCommitTypeKeys = DefaultCommitTypeKeys> = Record<TCommitTypes, CommitTypeProps>;
|
|
147
147
|
type CommitScopeProps = CommitEnumItemProps & {
|
|
148
148
|
projectRoot: string;
|
|
@@ -488,4 +488,4 @@ type NxReleaseRequiredGitConfig = Required<{
|
|
|
488
488
|
tagArgs?: string | undefined;
|
|
489
489
|
}>;
|
|
490
490
|
|
|
491
|
-
export { type CommitConfig, type CommitEnumItemProps, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionAnswers, type CommitQuestionEnum, type CommitQuestionProps, type CommitResolvedConfig, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, type CommitTypeProps, type CommitTypesEnum, DEFAULT_COMMIT_MESSAGE_FORMAT, DEFAULT_COMMIT_PROMPT_MESSAGES, DEFAULT_COMMIT_QUESTIONS, DEFAULT_COMMIT_SETTINGS,
|
|
491
|
+
export { COMMIT_TYPES, type CommitConfig, type CommitEnumItemProps, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionAnswers, type CommitQuestionEnum, type CommitQuestionProps, type CommitResolvedConfig, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, type CommitTypeProps, type CommitTypesEnum, DEFAULT_COMMIT_MESSAGE_FORMAT, DEFAULT_COMMIT_PROMPT_MESSAGES, DEFAULT_COMMIT_QUESTIONS, DEFAULT_COMMIT_SETTINGS, type DeepPartial, type DefaultCommitPromptMessagesKeys, type DefaultCommitQuestionKeys, type DefaultCommitRulesEnum, type DefaultCommitTypeKeys, type DefaultResolvedCommitRulesEnum, type NxReleaseChangelogConfig, type NxReleaseConfig, type NxReleaseConventionalCommitsConfig, type NxReleaseGitConfig, type NxReleaseGroupConfig, type NxReleaseGroupsConfig, type NxReleaseProjectsConfig, type NxReleaseRequiredGitConfig, type NxReleaseVersionConfig, type ReadMeOptions, type ReleaseConfig, type ReleaseContext, type RuleConfigCondition, RuleConfigSeverity };
|
package/dist/types.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
+
COMMIT_TYPES,
|
|
2
3
|
DEFAULT_COMMIT_MESSAGE_FORMAT,
|
|
3
4
|
DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
4
5
|
DEFAULT_COMMIT_QUESTIONS,
|
|
5
6
|
DEFAULT_COMMIT_SETTINGS,
|
|
6
|
-
DEFAULT_COMMIT_TYPES,
|
|
7
7
|
RuleConfigSeverity
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A4HFPO7F.js";
|
|
9
9
|
export {
|
|
10
|
+
COMMIT_TYPES,
|
|
10
11
|
DEFAULT_COMMIT_MESSAGE_FORMAT,
|
|
11
12
|
DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
12
13
|
DEFAULT_COMMIT_QUESTIONS,
|
|
13
14
|
DEFAULT_COMMIT_SETTINGS,
|
|
14
|
-
DEFAULT_COMMIT_TYPES,
|
|
15
15
|
RuleConfigSeverity
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tools for managing Git repositories within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -251,6 +251,7 @@
|
|
|
251
251
|
"commander": "^12.1.0",
|
|
252
252
|
"conventional-commits-parser": "^6.2.0",
|
|
253
253
|
"defu": "6.1.4",
|
|
254
|
+
"genaiscript": "^2.2.11",
|
|
254
255
|
"htmlparser2": "10.0.0",
|
|
255
256
|
"jsonc-parser": "3.2.1",
|
|
256
257
|
"read-yaml-file": "2.1.0",
|
|
@@ -262,5 +263,5 @@
|
|
|
262
263
|
"word-wrap": "1.2.5"
|
|
263
264
|
},
|
|
264
265
|
"publishConfig": { "access": "public" },
|
|
265
|
-
"gitHead": "
|
|
266
|
+
"gitHead": "b9e7552c043ded538659309cd6fc08c846a50faa"
|
|
266
267
|
}
|
package/dist/chunk-3V3F7TB7.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
package/dist/chunk-D7HN6Y5M.js
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
// src/types.ts
|
|
2
|
-
var DEFAULT_COMMIT_TYPES = {
|
|
3
|
-
/* --- Bumps version when selected --- */
|
|
4
|
-
chore: {
|
|
5
|
-
description: "Other changes that don't modify src or test files",
|
|
6
|
-
title: "Chore",
|
|
7
|
-
emoji: "\u2699\uFE0F ",
|
|
8
|
-
semverBump: "patch",
|
|
9
|
-
changelog: {
|
|
10
|
-
title: "Miscellaneous",
|
|
11
|
-
hidden: false
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
fix: {
|
|
15
|
-
description: "A change that resolves an issue previously identified with the package",
|
|
16
|
-
title: "Bug Fix",
|
|
17
|
-
emoji: "\u{1FAB2} ",
|
|
18
|
-
semverBump: "patch",
|
|
19
|
-
changelog: {
|
|
20
|
-
title: "Bug Fixes",
|
|
21
|
-
hidden: false
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
feat: {
|
|
25
|
-
description: "A change that adds a new feature to the package",
|
|
26
|
-
title: "Feature",
|
|
27
|
-
emoji: "\u{1F511} ",
|
|
28
|
-
semverBump: "minor",
|
|
29
|
-
changelog: {
|
|
30
|
-
title: "Features",
|
|
31
|
-
hidden: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
ci: {
|
|
35
|
-
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
36
|
-
title: "Continuous Integration",
|
|
37
|
-
emoji: "\u{1F9F0} ",
|
|
38
|
-
semverBump: "patch",
|
|
39
|
-
changelog: {
|
|
40
|
-
title: "Continuous Integration",
|
|
41
|
-
hidden: false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
refactor: {
|
|
45
|
-
description: "A code change that neither fixes a bug nor adds a feature",
|
|
46
|
-
title: "Code Refactoring",
|
|
47
|
-
emoji: "\u{1F9EA} ",
|
|
48
|
-
semverBump: "patch",
|
|
49
|
-
changelog: {
|
|
50
|
-
title: "Source Code Improvements",
|
|
51
|
-
hidden: false
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
style: {
|
|
55
|
-
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
56
|
-
title: "Style Improvements",
|
|
57
|
-
emoji: "\u{1F48E} ",
|
|
58
|
-
semverBump: "patch",
|
|
59
|
-
changelog: {
|
|
60
|
-
title: "Style Improvements",
|
|
61
|
-
hidden: false
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
perf: {
|
|
65
|
-
description: "A code change that improves performance",
|
|
66
|
-
title: "Performance Improvement",
|
|
67
|
-
emoji: "\u23F1\uFE0F ",
|
|
68
|
-
semverBump: "patch",
|
|
69
|
-
changelog: {
|
|
70
|
-
title: "Performance Improvements",
|
|
71
|
-
hidden: false
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
/* --- Does not bump version when selected --- */
|
|
75
|
-
docs: {
|
|
76
|
-
description: "A change that only includes documentation updates",
|
|
77
|
-
title: "Documentation",
|
|
78
|
-
emoji: "\u{1F4DC} ",
|
|
79
|
-
semverBump: "none",
|
|
80
|
-
changelog: {
|
|
81
|
-
title: "Documentation",
|
|
82
|
-
hidden: false
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
test: {
|
|
86
|
-
description: "Adding missing tests or correcting existing tests",
|
|
87
|
-
title: "Testing",
|
|
88
|
-
emoji: "\u{1F6A8} ",
|
|
89
|
-
semverBump: "none",
|
|
90
|
-
changelog: {
|
|
91
|
-
title: "Testing",
|
|
92
|
-
hidden: true
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
/* --- Not included in commitlint but included in changelog --- */
|
|
96
|
-
deps: {
|
|
97
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
98
|
-
title: "Dependencies",
|
|
99
|
-
emoji: "\u{1F4E6} ",
|
|
100
|
-
hidden: true,
|
|
101
|
-
semverBump: "patch",
|
|
102
|
-
changelog: {
|
|
103
|
-
title: "Dependency Upgrades",
|
|
104
|
-
hidden: false
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
/* --- Not included in commitlint or changelog --- */
|
|
108
|
-
build: {
|
|
109
|
-
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
110
|
-
title: "Build",
|
|
111
|
-
emoji: "\u{1F6E0} ",
|
|
112
|
-
hidden: true,
|
|
113
|
-
semverBump: "none",
|
|
114
|
-
changelog: {
|
|
115
|
-
title: "Build",
|
|
116
|
-
hidden: true
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
release: {
|
|
120
|
-
description: "Publishing a commit containing a newly released version",
|
|
121
|
-
title: "Publish Release",
|
|
122
|
-
emoji: "\u{1F680} ",
|
|
123
|
-
hidden: true,
|
|
124
|
-
semverBump: "none",
|
|
125
|
-
changelog: {
|
|
126
|
-
title: "Publish Release",
|
|
127
|
-
hidden: true
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
var DEFAULT_COMMIT_QUESTIONS = {
|
|
132
|
-
type: {
|
|
133
|
-
type: "select",
|
|
134
|
-
title: "Commit Type",
|
|
135
|
-
description: "Select the commit type that best describes your changes",
|
|
136
|
-
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
137
|
-
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
138
|
-
).reduce((ret, type) => {
|
|
139
|
-
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
140
|
-
return ret;
|
|
141
|
-
}, {}),
|
|
142
|
-
defaultValue: "chore",
|
|
143
|
-
maxLength: 20,
|
|
144
|
-
minLength: 3
|
|
145
|
-
},
|
|
146
|
-
scope: {
|
|
147
|
-
type: "select",
|
|
148
|
-
title: "Commit Scope",
|
|
149
|
-
description: "Select the monorepo project that is primarily impacted by this change",
|
|
150
|
-
enum: {},
|
|
151
|
-
defaultValue: "monorepo",
|
|
152
|
-
maxLength: 50,
|
|
153
|
-
minLength: 1
|
|
154
|
-
},
|
|
155
|
-
subject: {
|
|
156
|
-
type: "input",
|
|
157
|
-
title: "Commit Subject",
|
|
158
|
-
description: "Write a short, imperative tense description of the change",
|
|
159
|
-
maxLength: 150,
|
|
160
|
-
minLength: 3
|
|
161
|
-
},
|
|
162
|
-
body: {
|
|
163
|
-
type: "input",
|
|
164
|
-
title: "Commit Body",
|
|
165
|
-
description: "Provide a longer description of the change",
|
|
166
|
-
maxLength: 600
|
|
167
|
-
},
|
|
168
|
-
isBreaking: {
|
|
169
|
-
type: "confirm",
|
|
170
|
-
title: "Breaking Changes",
|
|
171
|
-
description: "Are there any breaking changes as a result of this commit?",
|
|
172
|
-
defaultValue: false
|
|
173
|
-
},
|
|
174
|
-
breakingBody: {
|
|
175
|
-
type: "input",
|
|
176
|
-
title: "Breaking Changes (Details)",
|
|
177
|
-
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
178
|
-
when: (answers) => answers.isBreaking === true,
|
|
179
|
-
maxLength: 600,
|
|
180
|
-
minLength: 3
|
|
181
|
-
},
|
|
182
|
-
isIssueAffected: {
|
|
183
|
-
type: "confirm",
|
|
184
|
-
title: "Open Issue Affected",
|
|
185
|
-
description: "Does this change impact any open issues?",
|
|
186
|
-
defaultValue: false
|
|
187
|
-
},
|
|
188
|
-
issuesBody: {
|
|
189
|
-
type: "input",
|
|
190
|
-
title: "Open Issue Affected (Details)",
|
|
191
|
-
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
192
|
-
when: (answers) => answers.isIssueAffected === true,
|
|
193
|
-
maxLength: 600,
|
|
194
|
-
minLength: 3
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
198
|
-
skip: "press enter to skip",
|
|
199
|
-
max: "must be %d chars at most",
|
|
200
|
-
min: "must be %d chars at least",
|
|
201
|
-
emptyWarning: "can not be empty",
|
|
202
|
-
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
203
|
-
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
204
|
-
closedIssueMessage: "Closes: "
|
|
205
|
-
};
|
|
206
|
-
var DEFAULT_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
|
|
207
|
-
var DEFAULT_COMMIT_SETTINGS = {
|
|
208
|
-
enableMultipleScopes: false,
|
|
209
|
-
disableEmoji: true,
|
|
210
|
-
breakingChangePrefix: "\u{1F4A3} ",
|
|
211
|
-
closedIssuePrefix: "\u2705 ",
|
|
212
|
-
format: DEFAULT_COMMIT_MESSAGE_FORMAT
|
|
213
|
-
};
|
|
214
|
-
var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
|
|
215
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
216
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
|
|
217
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
|
|
218
|
-
return RuleConfigSeverity2;
|
|
219
|
-
})(RuleConfigSeverity || {});
|
|
220
|
-
|
|
221
|
-
export {
|
|
222
|
-
DEFAULT_COMMIT_TYPES,
|
|
223
|
-
DEFAULT_COMMIT_QUESTIONS,
|
|
224
|
-
DEFAULT_COMMIT_PROMPT_MESSAGES,
|
|
225
|
-
DEFAULT_COMMIT_MESSAGE_FORMAT,
|
|
226
|
-
DEFAULT_COMMIT_SETTINGS,
|
|
227
|
-
RuleConfigSeverity
|
|
228
|
-
};
|
package/dist/chunk-EQZ3BKYL.cjs
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/types.ts
|
|
2
|
-
var DEFAULT_COMMIT_TYPES = {
|
|
3
|
-
/* --- Bumps version when selected --- */
|
|
4
|
-
chore: {
|
|
5
|
-
description: "Other changes that don't modify src or test files",
|
|
6
|
-
title: "Chore",
|
|
7
|
-
emoji: "\u2699\uFE0F ",
|
|
8
|
-
semverBump: "patch",
|
|
9
|
-
changelog: {
|
|
10
|
-
title: "Miscellaneous",
|
|
11
|
-
hidden: false
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
fix: {
|
|
15
|
-
description: "A change that resolves an issue previously identified with the package",
|
|
16
|
-
title: "Bug Fix",
|
|
17
|
-
emoji: "\u{1FAB2} ",
|
|
18
|
-
semverBump: "patch",
|
|
19
|
-
changelog: {
|
|
20
|
-
title: "Bug Fixes",
|
|
21
|
-
hidden: false
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
feat: {
|
|
25
|
-
description: "A change that adds a new feature to the package",
|
|
26
|
-
title: "Feature",
|
|
27
|
-
emoji: "\u{1F511} ",
|
|
28
|
-
semverBump: "minor",
|
|
29
|
-
changelog: {
|
|
30
|
-
title: "Features",
|
|
31
|
-
hidden: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
ci: {
|
|
35
|
-
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
36
|
-
title: "Continuous Integration",
|
|
37
|
-
emoji: "\u{1F9F0} ",
|
|
38
|
-
semverBump: "patch",
|
|
39
|
-
changelog: {
|
|
40
|
-
title: "Continuous Integration",
|
|
41
|
-
hidden: false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
refactor: {
|
|
45
|
-
description: "A code change that neither fixes a bug nor adds a feature",
|
|
46
|
-
title: "Code Refactoring",
|
|
47
|
-
emoji: "\u{1F9EA} ",
|
|
48
|
-
semverBump: "patch",
|
|
49
|
-
changelog: {
|
|
50
|
-
title: "Source Code Improvements",
|
|
51
|
-
hidden: false
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
style: {
|
|
55
|
-
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
56
|
-
title: "Style Improvements",
|
|
57
|
-
emoji: "\u{1F48E} ",
|
|
58
|
-
semverBump: "patch",
|
|
59
|
-
changelog: {
|
|
60
|
-
title: "Style Improvements",
|
|
61
|
-
hidden: false
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
perf: {
|
|
65
|
-
description: "A code change that improves performance",
|
|
66
|
-
title: "Performance Improvement",
|
|
67
|
-
emoji: "\u23F1\uFE0F ",
|
|
68
|
-
semverBump: "patch",
|
|
69
|
-
changelog: {
|
|
70
|
-
title: "Performance Improvements",
|
|
71
|
-
hidden: false
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
/* --- Does not bump version when selected --- */
|
|
75
|
-
docs: {
|
|
76
|
-
description: "A change that only includes documentation updates",
|
|
77
|
-
title: "Documentation",
|
|
78
|
-
emoji: "\u{1F4DC} ",
|
|
79
|
-
semverBump: "none",
|
|
80
|
-
changelog: {
|
|
81
|
-
title: "Documentation",
|
|
82
|
-
hidden: false
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
test: {
|
|
86
|
-
description: "Adding missing tests or correcting existing tests",
|
|
87
|
-
title: "Testing",
|
|
88
|
-
emoji: "\u{1F6A8} ",
|
|
89
|
-
semverBump: "none",
|
|
90
|
-
changelog: {
|
|
91
|
-
title: "Testing",
|
|
92
|
-
hidden: true
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
/* --- Not included in commitlint but included in changelog --- */
|
|
96
|
-
deps: {
|
|
97
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
98
|
-
title: "Dependencies",
|
|
99
|
-
emoji: "\u{1F4E6} ",
|
|
100
|
-
hidden: true,
|
|
101
|
-
semverBump: "patch",
|
|
102
|
-
changelog: {
|
|
103
|
-
title: "Dependency Upgrades",
|
|
104
|
-
hidden: false
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
/* --- Not included in commitlint or changelog --- */
|
|
108
|
-
build: {
|
|
109
|
-
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
110
|
-
title: "Build",
|
|
111
|
-
emoji: "\u{1F6E0} ",
|
|
112
|
-
hidden: true,
|
|
113
|
-
semverBump: "none",
|
|
114
|
-
changelog: {
|
|
115
|
-
title: "Build",
|
|
116
|
-
hidden: true
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
release: {
|
|
120
|
-
description: "Publishing a commit containing a newly released version",
|
|
121
|
-
title: "Publish Release",
|
|
122
|
-
emoji: "\u{1F680} ",
|
|
123
|
-
hidden: true,
|
|
124
|
-
semverBump: "none",
|
|
125
|
-
changelog: {
|
|
126
|
-
title: "Publish Release",
|
|
127
|
-
hidden: true
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
var DEFAULT_COMMIT_QUESTIONS = {
|
|
132
|
-
type: {
|
|
133
|
-
type: "select",
|
|
134
|
-
title: "Commit Type",
|
|
135
|
-
description: "Select the commit type that best describes your changes",
|
|
136
|
-
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
|
|
137
|
-
(type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
|
|
138
|
-
).reduce((ret, type) => {
|
|
139
|
-
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
140
|
-
return ret;
|
|
141
|
-
}, {}),
|
|
142
|
-
defaultValue: "chore",
|
|
143
|
-
maxLength: 20,
|
|
144
|
-
minLength: 3
|
|
145
|
-
},
|
|
146
|
-
scope: {
|
|
147
|
-
type: "select",
|
|
148
|
-
title: "Commit Scope",
|
|
149
|
-
description: "Select the monorepo project that is primarily impacted by this change",
|
|
150
|
-
enum: {},
|
|
151
|
-
defaultValue: "monorepo",
|
|
152
|
-
maxLength: 50,
|
|
153
|
-
minLength: 1
|
|
154
|
-
},
|
|
155
|
-
subject: {
|
|
156
|
-
type: "input",
|
|
157
|
-
title: "Commit Subject",
|
|
158
|
-
description: "Write a short, imperative tense description of the change",
|
|
159
|
-
maxLength: 150,
|
|
160
|
-
minLength: 3
|
|
161
|
-
},
|
|
162
|
-
body: {
|
|
163
|
-
type: "input",
|
|
164
|
-
title: "Commit Body",
|
|
165
|
-
description: "Provide a longer description of the change",
|
|
166
|
-
maxLength: 600
|
|
167
|
-
},
|
|
168
|
-
isBreaking: {
|
|
169
|
-
type: "confirm",
|
|
170
|
-
title: "Breaking Changes",
|
|
171
|
-
description: "Are there any breaking changes as a result of this commit?",
|
|
172
|
-
defaultValue: false
|
|
173
|
-
},
|
|
174
|
-
breakingBody: {
|
|
175
|
-
type: "input",
|
|
176
|
-
title: "Breaking Changes (Details)",
|
|
177
|
-
description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
|
|
178
|
-
when: (answers) => answers.isBreaking === true,
|
|
179
|
-
maxLength: 600,
|
|
180
|
-
minLength: 3
|
|
181
|
-
},
|
|
182
|
-
isIssueAffected: {
|
|
183
|
-
type: "confirm",
|
|
184
|
-
title: "Open Issue Affected",
|
|
185
|
-
description: "Does this change impact any open issues?",
|
|
186
|
-
defaultValue: false
|
|
187
|
-
},
|
|
188
|
-
issuesBody: {
|
|
189
|
-
type: "input",
|
|
190
|
-
title: "Open Issue Affected (Details)",
|
|
191
|
-
description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
|
|
192
|
-
when: (answers) => answers.isIssueAffected === true,
|
|
193
|
-
maxLength: 600,
|
|
194
|
-
minLength: 3
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
var DEFAULT_COMMIT_PROMPT_MESSAGES = {
|
|
198
|
-
skip: "press enter to skip",
|
|
199
|
-
max: "must be %d chars at most",
|
|
200
|
-
min: "must be %d chars at least",
|
|
201
|
-
emptyWarning: "can not be empty",
|
|
202
|
-
upperLimitWarning: "%s is %d characters longer than the upper limit",
|
|
203
|
-
lowerLimitWarning: "%s is %d characters less than the lower limit",
|
|
204
|
-
closedIssueMessage: "Closes: "
|
|
205
|
-
};
|
|
206
|
-
var DEFAULT_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
|
|
207
|
-
var DEFAULT_COMMIT_SETTINGS = {
|
|
208
|
-
enableMultipleScopes: false,
|
|
209
|
-
disableEmoji: true,
|
|
210
|
-
breakingChangePrefix: "\u{1F4A3} ",
|
|
211
|
-
closedIssuePrefix: "\u2705 ",
|
|
212
|
-
format: DEFAULT_COMMIT_MESSAGE_FORMAT
|
|
213
|
-
};
|
|
214
|
-
var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
|
|
215
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
216
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
|
|
217
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
|
|
218
|
-
return RuleConfigSeverity2;
|
|
219
|
-
})(RuleConfigSeverity || {});
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
exports.DEFAULT_COMMIT_TYPES = DEFAULT_COMMIT_TYPES; exports.DEFAULT_COMMIT_QUESTIONS = DEFAULT_COMMIT_QUESTIONS; exports.DEFAULT_COMMIT_PROMPT_MESSAGES = DEFAULT_COMMIT_PROMPT_MESSAGES; exports.DEFAULT_COMMIT_MESSAGE_FORMAT = DEFAULT_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_COMMIT_SETTINGS = DEFAULT_COMMIT_SETTINGS; exports.RuleConfigSeverity = RuleConfigSeverity;
|