@storm-software/git-tools 2.121.3 → 2.122.0

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.
Files changed (64) hide show
  1. package/README.md +2 -1
  2. package/bin/{chunk-N5U2S3QK.cjs → chunk-5SPAQH6A.cjs} +10 -15
  3. package/bin/{chunk-QBJQH2IK.js → chunk-LBURTJLB.js} +10 -10
  4. package/bin/git.cjs +405 -476
  5. package/bin/git.js +342 -413
  6. package/bin/post-checkout.cjs +9 -9
  7. package/bin/post-checkout.js +1 -1
  8. package/bin/post-commit.cjs +9 -9
  9. package/bin/post-commit.js +1 -1
  10. package/bin/post-merge.cjs +9 -9
  11. package/bin/post-merge.js +1 -1
  12. package/bin/pre-commit.cjs +9 -9
  13. package/bin/pre-commit.js +1 -1
  14. package/bin/pre-install.cjs +9 -9
  15. package/bin/pre-install.js +1 -1
  16. package/bin/pre-push.cjs +13 -13
  17. package/bin/pre-push.js +1 -1
  18. package/bin/prepare.cjs +7 -7
  19. package/bin/prepare.js +1 -1
  20. package/bin/version-warning.cjs +5 -5
  21. package/bin/version-warning.js +1 -1
  22. package/dist/chunk-3GGWHKRP.js +274 -0
  23. package/dist/chunk-4VPJA7YJ.cjs +274 -0
  24. package/dist/chunk-5XU2KBM6.js +14 -0
  25. package/dist/chunk-F7OO6L26.cjs +78 -0
  26. package/dist/{chunk-RG47FAF4.cjs → chunk-GOKUSEH3.cjs} +5 -3
  27. package/dist/chunk-JCEVFJCA.js +42 -0
  28. package/dist/chunk-KZRVQ5RZ.js +78 -0
  29. package/dist/chunk-NY53WLGC.cjs +42 -0
  30. package/dist/chunk-YBAE6I5L.cjs +14 -0
  31. package/dist/{chunk-2IQTQBAX.js → chunk-YCEUZFMU.js} +5 -3
  32. package/dist/commit/minimal.cjs +4 -12
  33. package/dist/commit/minimal.d.cts +249 -7
  34. package/dist/commit/minimal.d.ts +249 -7
  35. package/dist/commit/minimal.js +5 -13
  36. package/dist/commit/monorepo.cjs +7 -3
  37. package/dist/commit/monorepo.d.cts +269 -4
  38. package/dist/commit/monorepo.d.ts +269 -4
  39. package/dist/commit/monorepo.js +6 -2
  40. package/dist/commitlint/minimal.cjs +2 -3
  41. package/dist/commitlint/minimal.d.cts +27 -6
  42. package/dist/commitlint/minimal.d.ts +27 -6
  43. package/dist/commitlint/minimal.js +3 -4
  44. package/dist/commitlint/monorepo.cjs +2 -3
  45. package/dist/commitlint/monorepo.d.cts +28 -6
  46. package/dist/commitlint/monorepo.d.ts +28 -6
  47. package/dist/commitlint/monorepo.js +3 -4
  48. package/dist/index.cjs +6 -19
  49. package/dist/index.d.cts +4 -2
  50. package/dist/index.d.ts +4 -2
  51. package/dist/index.js +9 -22
  52. package/dist/release/config.cjs +6 -3
  53. package/dist/release/config.d.cts +2 -1
  54. package/dist/release/config.d.ts +2 -1
  55. package/dist/release/config.js +5 -2
  56. package/dist/types.cjs +2 -20
  57. package/dist/types.d.cts +3 -250
  58. package/dist/types.d.ts +3 -250
  59. package/dist/types.js +3 -21
  60. package/package.json +5 -5
  61. package/dist/chunk-25G45MG4.js +0 -19
  62. package/dist/chunk-2RKFQIWE.cjs +0 -19
  63. package/dist/chunk-2SHAD3P5.cjs +0 -301
  64. package/dist/chunk-GRCMQK4Q.js +0 -301
@@ -1,7 +1,8 @@
1
- import { CommitScopesEnum } from '../types.cjs';
2
1
  import * as conventional_changelog_storm_software_types_commit_types from 'conventional-changelog-storm-software/types/commit-types';
2
+ import { CommitScopesEnum } from '../types.cjs';
3
3
  import '@nx/devkit';
4
4
  import '@storm-software/config/types';
5
+ import 'conventional-changelog-storm-software/types/commitlint';
5
6
  import 'nx/src/config/nx-json';
6
7
 
7
8
  declare const DEFAULT_CONVENTIONAL_COMMITS_CONFIG: {
@@ -1,7 +1,8 @@
1
- import { CommitScopesEnum } from '../types.js';
2
1
  import * as conventional_changelog_storm_software_types_commit_types from 'conventional-changelog-storm-software/types/commit-types';
2
+ import { CommitScopesEnum } from '../types.js';
3
3
  import '@nx/devkit';
4
4
  import '@storm-software/config/types';
5
+ import 'conventional-changelog-storm-software/types/commitlint';
5
6
  import 'nx/src/config/nx-json';
6
7
 
7
8
  declare const DEFAULT_CONVENTIONAL_COMMITS_CONFIG: {
@@ -2,8 +2,11 @@ import {
2
2
  DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
3
3
  DEFAULT_RELEASE_CONFIG,
4
4
  DEFAULT_RELEASE_GROUP_CONFIG
5
- } from "../chunk-2IQTQBAX.js";
6
- import "../chunk-GRCMQK4Q.js";
5
+ } from "../chunk-YCEUZFMU.js";
6
+ import "../chunk-JCEVFJCA.js";
7
+ import "../chunk-KZRVQ5RZ.js";
8
+ import "../chunk-5XU2KBM6.js";
9
+ import "../chunk-3GGWHKRP.js";
7
10
  export {
8
11
  DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
9
12
  DEFAULT_RELEASE_CONFIG,
package/dist/types.cjs CHANGED
@@ -1,24 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkYBAE6I5Lcjs = require('./chunk-YBAE6I5L.cjs');
3
4
 
4
5
 
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunk2SHAD3P5cjs = require('./chunk-2SHAD3P5.cjs');
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
- exports.DEFAULT_COMMIT_PROMPT_MESSAGES = _chunk2SHAD3P5cjs.DEFAULT_COMMIT_PROMPT_MESSAGES; exports.DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = _chunk2SHAD3P5cjs.DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_MINIMAL_COMMIT_QUESTIONS = _chunk2SHAD3P5cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS; exports.DEFAULT_MINIMAL_COMMIT_RULES = _chunk2SHAD3P5cjs.DEFAULT_MINIMAL_COMMIT_RULES; exports.DEFAULT_MINIMAL_COMMIT_SETTINGS = _chunk2SHAD3P5cjs.DEFAULT_MINIMAL_COMMIT_SETTINGS; exports.DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_MONOREPO_COMMIT_QUESTIONS = _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS; exports.DEFAULT_MONOREPO_COMMIT_RULES = _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_RULES; exports.DEFAULT_MONOREPO_COMMIT_SETTINGS = _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_SETTINGS; exports.RuleConfigSeverity = _chunk2SHAD3P5cjs.RuleConfigSeverity;
6
+ exports.DEFAULT_COMMIT_PROMPT_MESSAGES = _chunkYBAE6I5Lcjs.DEFAULT_COMMIT_PROMPT_MESSAGES;
package/dist/types.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
2
  import { Variant } from '@storm-software/config/types';
3
- import { CommitEnumItemProps, CommitTypesEnum } from 'conventional-changelog-storm-software/types/commit-types';
3
+ import { CommitEnumItemProps } from 'conventional-changelog-storm-software/types/commit-types';
4
+ import { RuleConfigSeverity } from 'conventional-changelog-storm-software/types/commitlint';
4
5
  import { NxReleaseVersionConfiguration, NxReleaseChangelogConfiguration, NxReleaseGitConfiguration, NxReleaseConventionalCommitsConfiguration } from 'nx/src/config/nx-json';
5
6
 
6
7
  type DeepPartial<T> = T extends object ? {
@@ -26,123 +27,6 @@ type CommitQuestionProps = {
26
27
  minLength?: number;
27
28
  when?: (answers: Record<string, string>) => boolean;
28
29
  };
29
- declare const DEFAULT_MINIMAL_COMMIT_QUESTIONS: {
30
- readonly type: {
31
- readonly type: "select";
32
- readonly title: "Commit Type";
33
- readonly description: "Select the commit type that best describes your changes";
34
- readonly enum: CommitTypesEnum;
35
- readonly defaultValue: "chore";
36
- readonly maxLength: 20;
37
- readonly minLength: 3;
38
- };
39
- readonly subject: {
40
- readonly type: "input";
41
- readonly title: "Commit Subject";
42
- readonly description: "Write a short, imperative tense description of the change";
43
- readonly maxLength: 150;
44
- readonly minLength: 3;
45
- };
46
- readonly body: {
47
- readonly type: "input";
48
- readonly title: "Commit Body";
49
- readonly description: "Provide a longer description of the change";
50
- readonly maxLength: 600;
51
- };
52
- readonly isBreaking: {
53
- readonly type: "confirm";
54
- readonly title: "Breaking Changes";
55
- readonly description: "Are there any breaking changes as a result of this commit?";
56
- readonly defaultValue: false;
57
- };
58
- readonly breakingBody: {
59
- readonly type: "input";
60
- readonly title: "Breaking Changes (Details)";
61
- readonly description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself";
62
- readonly when: (answers: Record<string, any>) => boolean;
63
- readonly maxLength: 600;
64
- readonly minLength: 3;
65
- };
66
- readonly isIssueAffected: {
67
- readonly type: "confirm";
68
- readonly title: "Open Issue Affected";
69
- readonly description: "Does this change impact any open issues?";
70
- readonly defaultValue: false;
71
- };
72
- readonly issuesBody: {
73
- readonly type: "input";
74
- readonly title: "Open Issue Affected (Details)";
75
- readonly description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself";
76
- readonly when: (answers: Record<string, any>) => boolean;
77
- readonly maxLength: 600;
78
- readonly minLength: 3;
79
- };
80
- };
81
- declare const DEFAULT_MONOREPO_COMMIT_QUESTIONS: {
82
- readonly type: {
83
- readonly type: "select";
84
- readonly title: "Commit Type";
85
- readonly description: "Select the commit type that best describes your changes";
86
- readonly enum: CommitTypesEnum;
87
- readonly defaultValue: "chore";
88
- readonly maxLength: 20;
89
- readonly minLength: 3;
90
- };
91
- readonly scope: {
92
- readonly type: "select";
93
- readonly title: "Commit Scope";
94
- readonly description: "Select the project that's the most impacted by this change";
95
- readonly enum: CommitScopesEnum;
96
- readonly defaultValue: "monorepo";
97
- readonly maxLength: 50;
98
- readonly minLength: 1;
99
- };
100
- readonly subject: {
101
- readonly type: "input";
102
- readonly title: "Commit Subject";
103
- readonly description: "Write a short, imperative tense description of the change";
104
- readonly maxLength: 150;
105
- readonly minLength: 3;
106
- };
107
- readonly body: {
108
- readonly type: "input";
109
- readonly title: "Commit Body";
110
- readonly description: "Provide a longer description of the change";
111
- readonly maxLength: 600;
112
- };
113
- readonly isBreaking: {
114
- readonly type: "confirm";
115
- readonly title: "Breaking Changes";
116
- readonly description: "Are there any breaking changes as a result of this commit?";
117
- readonly defaultValue: false;
118
- };
119
- readonly breakingBody: {
120
- readonly type: "input";
121
- readonly title: "Breaking Changes (Details)";
122
- readonly description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself";
123
- readonly when: (answers: Record<string, any>) => boolean;
124
- readonly maxLength: 600;
125
- readonly minLength: 3;
126
- };
127
- readonly isIssueAffected: {
128
- readonly type: "confirm";
129
- readonly title: "Open Issue Affected";
130
- readonly description: "Does this change impact any open issues?";
131
- readonly defaultValue: false;
132
- };
133
- readonly issuesBody: {
134
- readonly type: "input";
135
- readonly title: "Open Issue Affected (Details)";
136
- readonly description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself";
137
- readonly when: (answers: Record<string, any>) => boolean;
138
- readonly maxLength: 600;
139
- readonly minLength: 3;
140
- };
141
- };
142
- type DefaultMinimalCommitQuestionKeys = keyof typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
143
- type MinimalCommitQuestionEnum<TCommitQuestionKeys extends DefaultMinimalCommitQuestionKeys = DefaultMinimalCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
144
- type DefaultMonorepoCommitQuestionKeys = keyof typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
145
- type MonorepoCommitQuestionEnum<TCommitQuestionKeys extends DefaultMonorepoCommitQuestionKeys = DefaultMonorepoCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
146
30
  declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
147
31
  readonly skip: "press enter to skip";
148
32
  readonly max: "must be %d chars at most";
@@ -154,22 +38,6 @@ declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
154
38
  };
155
39
  type DefaultCommitPromptMessagesKeys = keyof typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
156
40
  type CommitPromptMessagesEnum<TCommitPromptMessagesKeys extends DefaultCommitPromptMessagesKeys = DefaultCommitPromptMessagesKeys> = Record<TCommitPromptMessagesKeys, string> & typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
157
- declare const DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = "{type}: {emoji}{subject}";
158
- declare const DEFAULT_MINIMAL_COMMIT_SETTINGS: {
159
- enableMultipleScopes: boolean;
160
- disableEmoji: boolean;
161
- breakingChangePrefix: string;
162
- closedIssuePrefix: string;
163
- format: string;
164
- };
165
- declare const DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
166
- declare const DEFAULT_MONOREPO_COMMIT_SETTINGS: {
167
- enableMultipleScopes: boolean;
168
- disableEmoji: boolean;
169
- breakingChangePrefix: string;
170
- closedIssuePrefix: string;
171
- format: string;
172
- };
173
41
  type CommitSettingsEnum = Record<string, any> & {
174
42
  scopeEnumSeparator?: string;
175
43
  enableMultipleScopes: boolean;
@@ -184,121 +52,6 @@ type CommitState<TCommitAnswers extends Record<string, string | boolean> = Recor
184
52
  config: TCommitConfig;
185
53
  root: string;
186
54
  };
187
- type RuleConfigCondition = "always" | "never";
188
- declare enum RuleConfigSeverity {
189
- Disabled = 0,
190
- Warning = 1,
191
- Error = 2
192
- }
193
- type CommitRulesEnum = Record<string, [RuleConfigSeverity, RuleConfigCondition] | [RuleConfigSeverity, RuleConfigCondition, number] | [RuleConfigSeverity, RuleConfigCondition, string] | [RuleConfigSeverity, RuleConfigCondition, string[]] | [RuleConfigSeverity, RuleConfigCondition, any] | any>;
194
- type DefaultCommitRulesEnum = {
195
- "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
196
- "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
197
- "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
198
- "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
199
- "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
200
- "header-trim": [RuleConfigSeverity, RuleConfigCondition];
201
- "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
202
- "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
203
- "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
204
- "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
205
- "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
206
- "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
207
- "type-empty": [RuleConfigSeverity, RuleConfigCondition];
208
- "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
209
- "scope-empty": [RuleConfigSeverity, RuleConfigCondition] | RuleConfigSeverity.Disabled;
210
- "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
211
- "scope-enum": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
212
- "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
213
- "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
214
- } & CommitRulesEnum;
215
- type DefaultMinimalCommitRulesEnum = {
216
- "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
217
- "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
218
- "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
219
- "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
220
- "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
221
- "header-trim": [RuleConfigSeverity, RuleConfigCondition];
222
- "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
223
- "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
224
- "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
225
- "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
226
- "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
227
- "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
228
- "type-empty": [RuleConfigSeverity, RuleConfigCondition];
229
- "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
230
- "scope-empty": RuleConfigSeverity.Disabled;
231
- "scope-case": RuleConfigSeverity.Disabled;
232
- "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
233
- "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
234
- } & CommitRulesEnum;
235
- declare const DEFAULT_MINIMAL_COMMIT_RULES: DefaultMinimalCommitRulesEnum;
236
- type MinimalCommitConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
237
- extends?: string[];
238
- messages: TCommitPromptMessagesEnum;
239
- settings: TCommitSettingsEnum;
240
- types: TCommitTypesEnum;
241
- questions: TCommitQuestionEnum;
242
- };
243
- type DefaultMinimalResolvedCommitRulesEnum = DefaultMinimalCommitRulesEnum & {
244
- "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
245
- };
246
- type MinimalCommitResolvedConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps> = MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
247
- parserPreset: string;
248
- prompt: {
249
- settings: TCommitSettingsEnum;
250
- messages: TCommitPromptMessagesEnum;
251
- questions: TCommitQuestionEnum;
252
- };
253
- };
254
- type MinimalCommitQuestionAnswers<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
255
- type MinimalCommitState<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MinimalCommitQuestionAnswers<TCommitQuestionEnum>, MinimalCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
256
- variant: "minimal";
257
- };
258
- type DefaultMonorepoCommitRulesEnum = {
259
- "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
260
- "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
261
- "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
262
- "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
263
- "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
264
- "header-trim": [RuleConfigSeverity, RuleConfigCondition];
265
- "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
266
- "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
267
- "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
268
- "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
269
- "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
270
- "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
271
- "type-empty": [RuleConfigSeverity, RuleConfigCondition];
272
- "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
273
- "scope-empty": [RuleConfigSeverity, RuleConfigCondition];
274
- "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
275
- "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
276
- "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
277
- } & CommitRulesEnum;
278
- declare const DEFAULT_MONOREPO_COMMIT_RULES: DefaultMonorepoCommitRulesEnum;
279
- type MonorepoCommitConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
280
- extends?: string[];
281
- messages: TCommitPromptMessagesEnum;
282
- settings: TCommitSettingsEnum;
283
- types: TCommitTypesEnum;
284
- questions: TCommitQuestionEnum;
285
- };
286
- type DefaultMonorepoResolvedCommitRulesEnum = DefaultMonorepoCommitRulesEnum & {
287
- "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
288
- };
289
- type MonorepoCommitResolvedConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps> = MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
290
- utils: Record<string, any>;
291
- parserPreset: string;
292
- prompt: {
293
- settings: TCommitSettingsEnum;
294
- messages: TCommitPromptMessagesEnum;
295
- questions: TCommitQuestionEnum;
296
- };
297
- };
298
- type MonorepoCommitQuestionAnswers<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
299
- type MonorepoCommitState<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MonorepoCommitQuestionAnswers<TCommitQuestionEnum>, MonorepoCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
300
- variant: "monorepo";
301
- };
302
55
  interface CommitLintRuleOutcome {
303
56
  /** If the commit is considered valid for the rule */
304
57
  valid: boolean;
@@ -486,4 +239,4 @@ type NxReleaseRequiredGitConfig = Required<{
486
239
  tagArgs?: string | undefined;
487
240
  }>;
488
241
 
489
- export { type CommitLintCLIOptions, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionProps, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, DEFAULT_COMMIT_PROMPT_MESSAGES, DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT, DEFAULT_MINIMAL_COMMIT_QUESTIONS, DEFAULT_MINIMAL_COMMIT_RULES, DEFAULT_MINIMAL_COMMIT_SETTINGS, DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT, DEFAULT_MONOREPO_COMMIT_QUESTIONS, DEFAULT_MONOREPO_COMMIT_RULES, DEFAULT_MONOREPO_COMMIT_SETTINGS, type DeepPartial, type DefaultCommitPromptMessagesKeys, type DefaultCommitRulesEnum, type DefaultMinimalCommitQuestionKeys, type DefaultMinimalCommitRulesEnum, type DefaultMinimalResolvedCommitRulesEnum, type DefaultMonorepoCommitQuestionKeys, type DefaultMonorepoCommitRulesEnum, type DefaultMonorepoResolvedCommitRulesEnum, type MinimalCommitConfig, type MinimalCommitQuestionAnswers, type MinimalCommitQuestionEnum, type MinimalCommitResolvedConfig, type MinimalCommitState, type MonorepoCommitConfig, type MonorepoCommitQuestionAnswers, type MonorepoCommitQuestionEnum, type MonorepoCommitResolvedConfig, type MonorepoCommitState, 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 };
242
+ export { type CommitLintCLIOptions, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionProps, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, DEFAULT_COMMIT_PROMPT_MESSAGES, type DeepPartial, type DefaultCommitPromptMessagesKeys, type NxReleaseChangelogConfig, type NxReleaseConfig, type NxReleaseConventionalCommitsConfig, type NxReleaseGitConfig, type NxReleaseGroupConfig, type NxReleaseGroupsConfig, type NxReleaseProjectsConfig, type NxReleaseRequiredGitConfig, type NxReleaseVersionConfig, type ReadMeOptions, type ReleaseConfig, type ReleaseContext };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
2
  import { Variant } from '@storm-software/config/types';
3
- import { CommitEnumItemProps, CommitTypesEnum } from 'conventional-changelog-storm-software/types/commit-types';
3
+ import { CommitEnumItemProps } from 'conventional-changelog-storm-software/types/commit-types';
4
+ import { RuleConfigSeverity } from 'conventional-changelog-storm-software/types/commitlint';
4
5
  import { NxReleaseVersionConfiguration, NxReleaseChangelogConfiguration, NxReleaseGitConfiguration, NxReleaseConventionalCommitsConfiguration } from 'nx/src/config/nx-json';
5
6
 
6
7
  type DeepPartial<T> = T extends object ? {
@@ -26,123 +27,6 @@ type CommitQuestionProps = {
26
27
  minLength?: number;
27
28
  when?: (answers: Record<string, string>) => boolean;
28
29
  };
29
- declare const DEFAULT_MINIMAL_COMMIT_QUESTIONS: {
30
- readonly type: {
31
- readonly type: "select";
32
- readonly title: "Commit Type";
33
- readonly description: "Select the commit type that best describes your changes";
34
- readonly enum: CommitTypesEnum;
35
- readonly defaultValue: "chore";
36
- readonly maxLength: 20;
37
- readonly minLength: 3;
38
- };
39
- readonly subject: {
40
- readonly type: "input";
41
- readonly title: "Commit Subject";
42
- readonly description: "Write a short, imperative tense description of the change";
43
- readonly maxLength: 150;
44
- readonly minLength: 3;
45
- };
46
- readonly body: {
47
- readonly type: "input";
48
- readonly title: "Commit Body";
49
- readonly description: "Provide a longer description of the change";
50
- readonly maxLength: 600;
51
- };
52
- readonly isBreaking: {
53
- readonly type: "confirm";
54
- readonly title: "Breaking Changes";
55
- readonly description: "Are there any breaking changes as a result of this commit?";
56
- readonly defaultValue: false;
57
- };
58
- readonly breakingBody: {
59
- readonly type: "input";
60
- readonly title: "Breaking Changes (Details)";
61
- readonly description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself";
62
- readonly when: (answers: Record<string, any>) => boolean;
63
- readonly maxLength: 600;
64
- readonly minLength: 3;
65
- };
66
- readonly isIssueAffected: {
67
- readonly type: "confirm";
68
- readonly title: "Open Issue Affected";
69
- readonly description: "Does this change impact any open issues?";
70
- readonly defaultValue: false;
71
- };
72
- readonly issuesBody: {
73
- readonly type: "input";
74
- readonly title: "Open Issue Affected (Details)";
75
- readonly description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself";
76
- readonly when: (answers: Record<string, any>) => boolean;
77
- readonly maxLength: 600;
78
- readonly minLength: 3;
79
- };
80
- };
81
- declare const DEFAULT_MONOREPO_COMMIT_QUESTIONS: {
82
- readonly type: {
83
- readonly type: "select";
84
- readonly title: "Commit Type";
85
- readonly description: "Select the commit type that best describes your changes";
86
- readonly enum: CommitTypesEnum;
87
- readonly defaultValue: "chore";
88
- readonly maxLength: 20;
89
- readonly minLength: 3;
90
- };
91
- readonly scope: {
92
- readonly type: "select";
93
- readonly title: "Commit Scope";
94
- readonly description: "Select the project that's the most impacted by this change";
95
- readonly enum: CommitScopesEnum;
96
- readonly defaultValue: "monorepo";
97
- readonly maxLength: 50;
98
- readonly minLength: 1;
99
- };
100
- readonly subject: {
101
- readonly type: "input";
102
- readonly title: "Commit Subject";
103
- readonly description: "Write a short, imperative tense description of the change";
104
- readonly maxLength: 150;
105
- readonly minLength: 3;
106
- };
107
- readonly body: {
108
- readonly type: "input";
109
- readonly title: "Commit Body";
110
- readonly description: "Provide a longer description of the change";
111
- readonly maxLength: 600;
112
- };
113
- readonly isBreaking: {
114
- readonly type: "confirm";
115
- readonly title: "Breaking Changes";
116
- readonly description: "Are there any breaking changes as a result of this commit?";
117
- readonly defaultValue: false;
118
- };
119
- readonly breakingBody: {
120
- readonly type: "input";
121
- readonly title: "Breaking Changes (Details)";
122
- readonly description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself";
123
- readonly when: (answers: Record<string, any>) => boolean;
124
- readonly maxLength: 600;
125
- readonly minLength: 3;
126
- };
127
- readonly isIssueAffected: {
128
- readonly type: "confirm";
129
- readonly title: "Open Issue Affected";
130
- readonly description: "Does this change impact any open issues?";
131
- readonly defaultValue: false;
132
- };
133
- readonly issuesBody: {
134
- readonly type: "input";
135
- readonly title: "Open Issue Affected (Details)";
136
- readonly description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself";
137
- readonly when: (answers: Record<string, any>) => boolean;
138
- readonly maxLength: 600;
139
- readonly minLength: 3;
140
- };
141
- };
142
- type DefaultMinimalCommitQuestionKeys = keyof typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
143
- type MinimalCommitQuestionEnum<TCommitQuestionKeys extends DefaultMinimalCommitQuestionKeys = DefaultMinimalCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
144
- type DefaultMonorepoCommitQuestionKeys = keyof typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
145
- type MonorepoCommitQuestionEnum<TCommitQuestionKeys extends DefaultMonorepoCommitQuestionKeys = DefaultMonorepoCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
146
30
  declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
147
31
  readonly skip: "press enter to skip";
148
32
  readonly max: "must be %d chars at most";
@@ -154,22 +38,6 @@ declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
154
38
  };
155
39
  type DefaultCommitPromptMessagesKeys = keyof typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
156
40
  type CommitPromptMessagesEnum<TCommitPromptMessagesKeys extends DefaultCommitPromptMessagesKeys = DefaultCommitPromptMessagesKeys> = Record<TCommitPromptMessagesKeys, string> & typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
157
- declare const DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = "{type}: {emoji}{subject}";
158
- declare const DEFAULT_MINIMAL_COMMIT_SETTINGS: {
159
- enableMultipleScopes: boolean;
160
- disableEmoji: boolean;
161
- breakingChangePrefix: string;
162
- closedIssuePrefix: string;
163
- format: string;
164
- };
165
- declare const DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
166
- declare const DEFAULT_MONOREPO_COMMIT_SETTINGS: {
167
- enableMultipleScopes: boolean;
168
- disableEmoji: boolean;
169
- breakingChangePrefix: string;
170
- closedIssuePrefix: string;
171
- format: string;
172
- };
173
41
  type CommitSettingsEnum = Record<string, any> & {
174
42
  scopeEnumSeparator?: string;
175
43
  enableMultipleScopes: boolean;
@@ -184,121 +52,6 @@ type CommitState<TCommitAnswers extends Record<string, string | boolean> = Recor
184
52
  config: TCommitConfig;
185
53
  root: string;
186
54
  };
187
- type RuleConfigCondition = "always" | "never";
188
- declare enum RuleConfigSeverity {
189
- Disabled = 0,
190
- Warning = 1,
191
- Error = 2
192
- }
193
- type CommitRulesEnum = Record<string, [RuleConfigSeverity, RuleConfigCondition] | [RuleConfigSeverity, RuleConfigCondition, number] | [RuleConfigSeverity, RuleConfigCondition, string] | [RuleConfigSeverity, RuleConfigCondition, string[]] | [RuleConfigSeverity, RuleConfigCondition, any] | any>;
194
- type DefaultCommitRulesEnum = {
195
- "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
196
- "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
197
- "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
198
- "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
199
- "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
200
- "header-trim": [RuleConfigSeverity, RuleConfigCondition];
201
- "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
202
- "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
203
- "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
204
- "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
205
- "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
206
- "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
207
- "type-empty": [RuleConfigSeverity, RuleConfigCondition];
208
- "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
209
- "scope-empty": [RuleConfigSeverity, RuleConfigCondition] | RuleConfigSeverity.Disabled;
210
- "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
211
- "scope-enum": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
212
- "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
213
- "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
214
- } & CommitRulesEnum;
215
- type DefaultMinimalCommitRulesEnum = {
216
- "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
217
- "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
218
- "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
219
- "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
220
- "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
221
- "header-trim": [RuleConfigSeverity, RuleConfigCondition];
222
- "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
223
- "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
224
- "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
225
- "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
226
- "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
227
- "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
228
- "type-empty": [RuleConfigSeverity, RuleConfigCondition];
229
- "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
230
- "scope-empty": RuleConfigSeverity.Disabled;
231
- "scope-case": RuleConfigSeverity.Disabled;
232
- "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
233
- "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
234
- } & CommitRulesEnum;
235
- declare const DEFAULT_MINIMAL_COMMIT_RULES: DefaultMinimalCommitRulesEnum;
236
- type MinimalCommitConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
237
- extends?: string[];
238
- messages: TCommitPromptMessagesEnum;
239
- settings: TCommitSettingsEnum;
240
- types: TCommitTypesEnum;
241
- questions: TCommitQuestionEnum;
242
- };
243
- type DefaultMinimalResolvedCommitRulesEnum = DefaultMinimalCommitRulesEnum & {
244
- "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
245
- };
246
- type MinimalCommitResolvedConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps> = MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
247
- parserPreset: string;
248
- prompt: {
249
- settings: TCommitSettingsEnum;
250
- messages: TCommitPromptMessagesEnum;
251
- questions: TCommitQuestionEnum;
252
- };
253
- };
254
- type MinimalCommitQuestionAnswers<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
255
- type MinimalCommitState<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MinimalCommitQuestionAnswers<TCommitQuestionEnum>, MinimalCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
256
- variant: "minimal";
257
- };
258
- type DefaultMonorepoCommitRulesEnum = {
259
- "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
260
- "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
261
- "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
262
- "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
263
- "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
264
- "header-trim": [RuleConfigSeverity, RuleConfigCondition];
265
- "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
266
- "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
267
- "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
268
- "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
269
- "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
270
- "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
271
- "type-empty": [RuleConfigSeverity, RuleConfigCondition];
272
- "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
273
- "scope-empty": [RuleConfigSeverity, RuleConfigCondition];
274
- "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
275
- "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
276
- "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
277
- } & CommitRulesEnum;
278
- declare const DEFAULT_MONOREPO_COMMIT_RULES: DefaultMonorepoCommitRulesEnum;
279
- type MonorepoCommitConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
280
- extends?: string[];
281
- messages: TCommitPromptMessagesEnum;
282
- settings: TCommitSettingsEnum;
283
- types: TCommitTypesEnum;
284
- questions: TCommitQuestionEnum;
285
- };
286
- type DefaultMonorepoResolvedCommitRulesEnum = DefaultMonorepoCommitRulesEnum & {
287
- "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
288
- };
289
- type MonorepoCommitResolvedConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps> = MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
290
- utils: Record<string, any>;
291
- parserPreset: string;
292
- prompt: {
293
- settings: TCommitSettingsEnum;
294
- messages: TCommitPromptMessagesEnum;
295
- questions: TCommitQuestionEnum;
296
- };
297
- };
298
- type MonorepoCommitQuestionAnswers<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
299
- type MonorepoCommitState<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MonorepoCommitQuestionAnswers<TCommitQuestionEnum>, MonorepoCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
300
- variant: "monorepo";
301
- };
302
55
  interface CommitLintRuleOutcome {
303
56
  /** If the commit is considered valid for the rule */
304
57
  valid: boolean;
@@ -486,4 +239,4 @@ type NxReleaseRequiredGitConfig = Required<{
486
239
  tagArgs?: string | undefined;
487
240
  }>;
488
241
 
489
- export { type CommitLintCLIOptions, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionProps, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, DEFAULT_COMMIT_PROMPT_MESSAGES, DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT, DEFAULT_MINIMAL_COMMIT_QUESTIONS, DEFAULT_MINIMAL_COMMIT_RULES, DEFAULT_MINIMAL_COMMIT_SETTINGS, DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT, DEFAULT_MONOREPO_COMMIT_QUESTIONS, DEFAULT_MONOREPO_COMMIT_RULES, DEFAULT_MONOREPO_COMMIT_SETTINGS, type DeepPartial, type DefaultCommitPromptMessagesKeys, type DefaultCommitRulesEnum, type DefaultMinimalCommitQuestionKeys, type DefaultMinimalCommitRulesEnum, type DefaultMinimalResolvedCommitRulesEnum, type DefaultMonorepoCommitQuestionKeys, type DefaultMonorepoCommitRulesEnum, type DefaultMonorepoResolvedCommitRulesEnum, type MinimalCommitConfig, type MinimalCommitQuestionAnswers, type MinimalCommitQuestionEnum, type MinimalCommitResolvedConfig, type MinimalCommitState, type MonorepoCommitConfig, type MonorepoCommitQuestionAnswers, type MonorepoCommitQuestionEnum, type MonorepoCommitResolvedConfig, type MonorepoCommitState, 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 };
242
+ export { type CommitLintCLIOptions, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionProps, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, DEFAULT_COMMIT_PROMPT_MESSAGES, type DeepPartial, type DefaultCommitPromptMessagesKeys, type NxReleaseChangelogConfig, type NxReleaseConfig, type NxReleaseConventionalCommitsConfig, type NxReleaseGitConfig, type NxReleaseGroupConfig, type NxReleaseGroupsConfig, type NxReleaseProjectsConfig, type NxReleaseRequiredGitConfig, type NxReleaseVersionConfig, type ReadMeOptions, type ReleaseConfig, type ReleaseContext };