@storm-software/git-tools 2.115.16 → 2.116.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-XH6F7XTV.cjs → chunk-LD4V463J.cjs} +17 -0
  3. package/bin/{chunk-7TA5K5AW.js → chunk-VATYGW5F.js} +12 -0
  4. package/bin/git.cjs +402 -264
  5. package/bin/git.js +354 -217
  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-A4HFPO7F.js → chunk-5XXXTVPU.js} +87 -17
  23. package/dist/chunk-C4NLID2V.js +19 -0
  24. package/dist/chunk-KD6Y4AJS.cjs +19 -0
  25. package/dist/{chunk-R3RXM6UC.js → chunk-LSRFGWF5.js} +3 -3
  26. package/dist/{chunk-PGN2XOUF.cjs → chunk-NWZD3QTO.cjs} +3 -3
  27. package/dist/{chunk-MDOOV3KF.cjs → chunk-ZE542BCU.cjs} +84 -14
  28. package/dist/commit/minimal.cjs +18 -0
  29. package/dist/commit/minimal.d.cts +8 -0
  30. package/dist/commit/minimal.d.ts +8 -0
  31. package/dist/commit/minimal.js +18 -0
  32. package/dist/commit/monorepo.cjs +7 -0
  33. package/dist/commit/monorepo.d.cts +8 -0
  34. package/dist/commit/monorepo.d.ts +8 -0
  35. package/dist/commit/monorepo.js +7 -0
  36. package/dist/commitlint/minimal.cjs +22 -0
  37. package/dist/commitlint/{config.d.ts → minimal.d.cts} +6 -6
  38. package/dist/commitlint/{config.d.cts → minimal.d.ts} +6 -6
  39. package/dist/commitlint/minimal.js +22 -0
  40. package/dist/commitlint/monorepo.cjs +22 -0
  41. package/dist/commitlint/monorepo.d.cts +21 -0
  42. package/dist/commitlint/monorepo.d.ts +21 -0
  43. package/dist/commitlint/monorepo.js +22 -0
  44. package/dist/index.cjs +11 -4
  45. package/dist/index.d.cts +2 -2
  46. package/dist/index.d.ts +2 -2
  47. package/dist/index.js +19 -12
  48. package/dist/release/config.cjs +3 -3
  49. package/dist/release/config.d.cts +3 -2
  50. package/dist/release/config.d.ts +3 -2
  51. package/dist/release/config.js +2 -2
  52. package/dist/types.cjs +12 -2
  53. package/dist/types.d.cts +153 -16
  54. package/dist/types.d.ts +153 -16
  55. package/dist/types.js +17 -7
  56. package/package.json +4 -46
  57. package/dist/chunk-OZ5QCRGG.js +0 -18
  58. package/dist/chunk-SXO5R5AG.cjs +0 -18
  59. package/dist/commit/config.cjs +0 -7
  60. package/dist/commit/config.d.cts +0 -7
  61. package/dist/commit/config.d.ts +0 -7
  62. package/dist/commit/config.js +0 -7
  63. package/dist/commitlint/config.cjs +0 -46
  64. package/dist/commitlint/config.js +0 -46
package/dist/types.d.cts CHANGED
@@ -1,9 +1,15 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
+ import { Variant } from '@storm-software/config/types';
2
3
  import { NxReleaseVersionConfiguration, NxReleaseChangelogConfiguration, NxReleaseGitConfiguration, NxReleaseConventionalCommitsConfiguration } from 'nx/src/config/nx-json';
3
4
 
4
5
  type DeepPartial<T> = T extends object ? {
5
6
  [P in keyof T]?: DeepPartial<T[P]>;
6
7
  } : T;
8
+ interface CommitLintCLIOptions {
9
+ config?: string;
10
+ message?: string;
11
+ file?: string;
12
+ }
7
13
  type CommitEnumItemProps = {
8
14
  description: string;
9
15
  title?: string;
@@ -159,7 +165,59 @@ type CommitQuestionProps = {
159
165
  minLength?: number;
160
166
  when?: (answers: Record<string, string>) => boolean;
161
167
  };
162
- declare const DEFAULT_COMMIT_QUESTIONS: {
168
+ declare const DEFAULT_MINIMAL_COMMIT_QUESTIONS: {
169
+ readonly type: {
170
+ readonly type: "select";
171
+ readonly title: "Commit Type";
172
+ readonly description: "Select the commit type that best describes your changes";
173
+ readonly enum: CommitTypesEnum<"chore" | "fix" | "feat" | "ci" | "refactor" | "style" | "perf" | "docs" | "test" | "deps" | "build" | "release">;
174
+ readonly defaultValue: "chore";
175
+ readonly maxLength: 20;
176
+ readonly minLength: 3;
177
+ };
178
+ readonly subject: {
179
+ readonly type: "input";
180
+ readonly title: "Commit Subject";
181
+ readonly description: "Write a short, imperative tense description of the change";
182
+ readonly maxLength: 150;
183
+ readonly minLength: 3;
184
+ };
185
+ readonly body: {
186
+ readonly type: "input";
187
+ readonly title: "Commit Body";
188
+ readonly description: "Provide a longer description of the change";
189
+ readonly maxLength: 600;
190
+ };
191
+ readonly isBreaking: {
192
+ readonly type: "confirm";
193
+ readonly title: "Breaking Changes";
194
+ readonly description: "Are there any breaking changes as a result of this commit?";
195
+ readonly defaultValue: false;
196
+ };
197
+ readonly breakingBody: {
198
+ readonly type: "input";
199
+ readonly title: "Breaking Changes (Details)";
200
+ readonly description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself";
201
+ readonly when: (answers: Record<string, any>) => boolean;
202
+ readonly maxLength: 600;
203
+ readonly minLength: 3;
204
+ };
205
+ readonly isIssueAffected: {
206
+ readonly type: "confirm";
207
+ readonly title: "Open Issue Affected";
208
+ readonly description: "Does this change impact any open issues?";
209
+ readonly defaultValue: false;
210
+ };
211
+ readonly issuesBody: {
212
+ readonly type: "input";
213
+ readonly title: "Open Issue Affected (Details)";
214
+ readonly description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself";
215
+ readonly when: (answers: Record<string, any>) => boolean;
216
+ readonly maxLength: 600;
217
+ readonly minLength: 3;
218
+ };
219
+ };
220
+ declare const DEFAULT_MONOREPO_COMMIT_QUESTIONS: {
163
221
  readonly type: {
164
222
  readonly type: "select";
165
223
  readonly title: "Commit Type";
@@ -172,7 +230,7 @@ declare const DEFAULT_COMMIT_QUESTIONS: {
172
230
  readonly scope: {
173
231
  readonly type: "select";
174
232
  readonly title: "Commit Scope";
175
- readonly description: "Select the monorepo project that is primarily impacted by this change";
233
+ readonly description: "Select the project that's the most impacted by this change";
176
234
  readonly enum: CommitScopesEnum;
177
235
  readonly defaultValue: "monorepo";
178
236
  readonly maxLength: 50;
@@ -220,8 +278,10 @@ declare const DEFAULT_COMMIT_QUESTIONS: {
220
278
  readonly minLength: 3;
221
279
  };
222
280
  };
223
- type DefaultCommitQuestionKeys = keyof typeof DEFAULT_COMMIT_QUESTIONS;
224
- type CommitQuestionEnum<TCommitQuestionKeys extends DefaultCommitQuestionKeys = DefaultCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_COMMIT_QUESTIONS;
281
+ type DefaultMinimalCommitQuestionKeys = keyof typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
282
+ type MinimalCommitQuestionEnum<TCommitQuestionKeys extends DefaultMinimalCommitQuestionKeys = DefaultMinimalCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
283
+ type DefaultMonorepoCommitQuestionKeys = keyof typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
284
+ type MonorepoCommitQuestionEnum<TCommitQuestionKeys extends DefaultMonorepoCommitQuestionKeys = DefaultMonorepoCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
225
285
  declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
226
286
  readonly skip: "press enter to skip";
227
287
  readonly max: "must be %d chars at most";
@@ -233,8 +293,16 @@ declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
233
293
  };
234
294
  type DefaultCommitPromptMessagesKeys = keyof typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
235
295
  type CommitPromptMessagesEnum<TCommitPromptMessagesKeys extends DefaultCommitPromptMessagesKeys = DefaultCommitPromptMessagesKeys> = Record<TCommitPromptMessagesKeys, string> & typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
236
- declare const DEFAULT_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
237
- declare const DEFAULT_COMMIT_SETTINGS: {
296
+ declare const DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = "{type}: {emoji}{subject}";
297
+ declare const DEFAULT_MINIMAL_COMMIT_SETTINGS: {
298
+ enableMultipleScopes: boolean;
299
+ disableEmoji: boolean;
300
+ breakingChangePrefix: string;
301
+ closedIssuePrefix: string;
302
+ format: string;
303
+ };
304
+ declare const DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
305
+ declare const DEFAULT_MONOREPO_COMMIT_SETTINGS: {
238
306
  enableMultipleScopes: boolean;
239
307
  disableEmoji: boolean;
240
308
  breakingChangePrefix: string;
@@ -249,6 +317,12 @@ type CommitSettingsEnum = Record<string, any> & {
249
317
  closedIssuePrefix?: string;
250
318
  format: string;
251
319
  };
320
+ type CommitState<TCommitAnswers extends Record<string, string | boolean> = Record<string, string | boolean>, TCommitConfig extends Record<string, any> = Record<string, any>> = {
321
+ variant: Variant;
322
+ answers: TCommitAnswers;
323
+ config: TCommitConfig;
324
+ root: string;
325
+ };
252
326
  type RuleConfigCondition = "always" | "never";
253
327
  declare enum RuleConfigSeverity {
254
328
  Disabled = 0,
@@ -271,22 +345,87 @@ type DefaultCommitRulesEnum = {
271
345
  "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
272
346
  "type-empty": [RuleConfigSeverity, RuleConfigCondition];
273
347
  "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
274
- "scope-empty": [RuleConfigSeverity, RuleConfigCondition];
348
+ "scope-empty": [RuleConfigSeverity, RuleConfigCondition] | RuleConfigSeverity.Disabled;
349
+ "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
350
+ "scope-enum": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
351
+ "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
352
+ "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
353
+ } & CommitRulesEnum;
354
+ type DefaultMinimalCommitRulesEnum = {
355
+ "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
356
+ "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
357
+ "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
358
+ "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
359
+ "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
360
+ "header-trim": [RuleConfigSeverity, RuleConfigCondition];
361
+ "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
362
+ "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
363
+ "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
364
+ "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
365
+ "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
366
+ "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
367
+ "type-empty": [RuleConfigSeverity, RuleConfigCondition];
368
+ "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
369
+ "scope-empty": RuleConfigSeverity.Disabled;
370
+ "scope-case": RuleConfigSeverity.Disabled;
275
371
  "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
276
372
  "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
373
+ } & CommitRulesEnum;
374
+ declare const DEFAULT_MINIMAL_COMMIT_RULES: DefaultMinimalCommitRulesEnum;
375
+ type MinimalCommitConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
376
+ extends?: string[];
377
+ messages: TCommitPromptMessagesEnum;
378
+ settings: TCommitSettingsEnum;
379
+ types: TCommitTypesEnum;
380
+ questions: TCommitQuestionEnum;
381
+ };
382
+ type DefaultMinimalResolvedCommitRulesEnum = DefaultMinimalCommitRulesEnum & {
383
+ "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
384
+ };
385
+ type MinimalCommitResolvedConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps> = MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
386
+ parserPreset: string;
387
+ prompt: {
388
+ settings: TCommitSettingsEnum;
389
+ messages: TCommitPromptMessagesEnum;
390
+ questions: TCommitQuestionEnum;
391
+ };
392
+ };
393
+ type MinimalCommitQuestionAnswers<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
394
+ type MinimalCommitState<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MinimalCommitQuestionAnswers<TCommitQuestionEnum>, MinimalCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
395
+ variant: "minimal";
396
+ };
397
+ type DefaultMonorepoCommitRulesEnum = {
398
+ "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
399
+ "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
400
+ "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
401
+ "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
402
+ "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
403
+ "header-trim": [RuleConfigSeverity, RuleConfigCondition];
404
+ "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
405
+ "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
406
+ "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
407
+ "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
408
+ "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
409
+ "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
410
+ "type-empty": [RuleConfigSeverity, RuleConfigCondition];
411
+ "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
412
+ "scope-empty": [RuleConfigSeverity, RuleConfigCondition];
277
413
  "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
414
+ "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
415
+ "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
278
416
  } & CommitRulesEnum;
279
- type CommitConfig<TCommitQuestionEnum extends CommitQuestionEnum = CommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
417
+ declare const DEFAULT_MONOREPO_COMMIT_RULES: DefaultMonorepoCommitRulesEnum;
418
+ type MonorepoCommitConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
280
419
  extends?: string[];
281
420
  messages: TCommitPromptMessagesEnum;
282
421
  settings: TCommitSettingsEnum;
283
422
  types: TCommitTypesEnum;
284
423
  questions: TCommitQuestionEnum;
285
424
  };
286
- type DefaultResolvedCommitRulesEnum = DefaultCommitRulesEnum & {
425
+ type DefaultMonorepoResolvedCommitRulesEnum = DefaultMonorepoCommitRulesEnum & {
287
426
  "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
288
427
  };
289
- type CommitResolvedConfig<TCommitQuestionEnum extends CommitQuestionEnum<DefaultCommitQuestionKeys, CommitQuestionProps> = CommitQuestionEnum<DefaultCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
428
+ type MonorepoCommitResolvedConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps> = MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
290
429
  utils: Record<string, any>;
291
430
  parserPreset: string;
292
431
  prompt: {
@@ -295,11 +434,9 @@ type CommitResolvedConfig<TCommitQuestionEnum extends CommitQuestionEnum<Default
295
434
  questions: TCommitQuestionEnum;
296
435
  };
297
436
  };
298
- type CommitQuestionAnswers<TCommitQuestionEnum extends CommitQuestionEnum = CommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
299
- type CommitState<TCommitQuestionEnum extends CommitQuestionEnum = CommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
300
- answers: CommitQuestionAnswers<TCommitQuestionEnum>;
301
- config: CommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>;
302
- root: string;
437
+ type MonorepoCommitQuestionAnswers<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
438
+ type MonorepoCommitState<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MonorepoCommitQuestionAnswers<TCommitQuestionEnum>, MonorepoCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
439
+ variant: "monorepo";
303
440
  };
304
441
  interface CommitLintRuleOutcome {
305
442
  /** If the commit is considered valid for the rule */
@@ -488,4 +625,4 @@ type NxReleaseRequiredGitConfig = Required<{
488
625
  tagArgs?: string | undefined;
489
626
  }>;
490
627
 
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 };
628
+ export { COMMIT_TYPES, type CommitEnumItemProps, type CommitLintCLIOptions, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionProps, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, type CommitTypeProps, type CommitTypesEnum, 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 DefaultCommitTypeKeys, 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 };
package/dist/types.d.ts CHANGED
@@ -1,9 +1,15 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
+ import { Variant } from '@storm-software/config/types';
2
3
  import { NxReleaseVersionConfiguration, NxReleaseChangelogConfiguration, NxReleaseGitConfiguration, NxReleaseConventionalCommitsConfiguration } from 'nx/src/config/nx-json';
3
4
 
4
5
  type DeepPartial<T> = T extends object ? {
5
6
  [P in keyof T]?: DeepPartial<T[P]>;
6
7
  } : T;
8
+ interface CommitLintCLIOptions {
9
+ config?: string;
10
+ message?: string;
11
+ file?: string;
12
+ }
7
13
  type CommitEnumItemProps = {
8
14
  description: string;
9
15
  title?: string;
@@ -159,7 +165,59 @@ type CommitQuestionProps = {
159
165
  minLength?: number;
160
166
  when?: (answers: Record<string, string>) => boolean;
161
167
  };
162
- declare const DEFAULT_COMMIT_QUESTIONS: {
168
+ declare const DEFAULT_MINIMAL_COMMIT_QUESTIONS: {
169
+ readonly type: {
170
+ readonly type: "select";
171
+ readonly title: "Commit Type";
172
+ readonly description: "Select the commit type that best describes your changes";
173
+ readonly enum: CommitTypesEnum<"chore" | "fix" | "feat" | "ci" | "refactor" | "style" | "perf" | "docs" | "test" | "deps" | "build" | "release">;
174
+ readonly defaultValue: "chore";
175
+ readonly maxLength: 20;
176
+ readonly minLength: 3;
177
+ };
178
+ readonly subject: {
179
+ readonly type: "input";
180
+ readonly title: "Commit Subject";
181
+ readonly description: "Write a short, imperative tense description of the change";
182
+ readonly maxLength: 150;
183
+ readonly minLength: 3;
184
+ };
185
+ readonly body: {
186
+ readonly type: "input";
187
+ readonly title: "Commit Body";
188
+ readonly description: "Provide a longer description of the change";
189
+ readonly maxLength: 600;
190
+ };
191
+ readonly isBreaking: {
192
+ readonly type: "confirm";
193
+ readonly title: "Breaking Changes";
194
+ readonly description: "Are there any breaking changes as a result of this commit?";
195
+ readonly defaultValue: false;
196
+ };
197
+ readonly breakingBody: {
198
+ readonly type: "input";
199
+ readonly title: "Breaking Changes (Details)";
200
+ readonly description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself";
201
+ readonly when: (answers: Record<string, any>) => boolean;
202
+ readonly maxLength: 600;
203
+ readonly minLength: 3;
204
+ };
205
+ readonly isIssueAffected: {
206
+ readonly type: "confirm";
207
+ readonly title: "Open Issue Affected";
208
+ readonly description: "Does this change impact any open issues?";
209
+ readonly defaultValue: false;
210
+ };
211
+ readonly issuesBody: {
212
+ readonly type: "input";
213
+ readonly title: "Open Issue Affected (Details)";
214
+ readonly description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself";
215
+ readonly when: (answers: Record<string, any>) => boolean;
216
+ readonly maxLength: 600;
217
+ readonly minLength: 3;
218
+ };
219
+ };
220
+ declare const DEFAULT_MONOREPO_COMMIT_QUESTIONS: {
163
221
  readonly type: {
164
222
  readonly type: "select";
165
223
  readonly title: "Commit Type";
@@ -172,7 +230,7 @@ declare const DEFAULT_COMMIT_QUESTIONS: {
172
230
  readonly scope: {
173
231
  readonly type: "select";
174
232
  readonly title: "Commit Scope";
175
- readonly description: "Select the monorepo project that is primarily impacted by this change";
233
+ readonly description: "Select the project that's the most impacted by this change";
176
234
  readonly enum: CommitScopesEnum;
177
235
  readonly defaultValue: "monorepo";
178
236
  readonly maxLength: 50;
@@ -220,8 +278,10 @@ declare const DEFAULT_COMMIT_QUESTIONS: {
220
278
  readonly minLength: 3;
221
279
  };
222
280
  };
223
- type DefaultCommitQuestionKeys = keyof typeof DEFAULT_COMMIT_QUESTIONS;
224
- type CommitQuestionEnum<TCommitQuestionKeys extends DefaultCommitQuestionKeys = DefaultCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_COMMIT_QUESTIONS;
281
+ type DefaultMinimalCommitQuestionKeys = keyof typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
282
+ type MinimalCommitQuestionEnum<TCommitQuestionKeys extends DefaultMinimalCommitQuestionKeys = DefaultMinimalCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MINIMAL_COMMIT_QUESTIONS;
283
+ type DefaultMonorepoCommitQuestionKeys = keyof typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
284
+ type MonorepoCommitQuestionEnum<TCommitQuestionKeys extends DefaultMonorepoCommitQuestionKeys = DefaultMonorepoCommitQuestionKeys, TCommitQuestionProps extends CommitQuestionProps = CommitQuestionProps> = Record<TCommitQuestionKeys, TCommitQuestionProps> & typeof DEFAULT_MONOREPO_COMMIT_QUESTIONS;
225
285
  declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
226
286
  readonly skip: "press enter to skip";
227
287
  readonly max: "must be %d chars at most";
@@ -233,8 +293,16 @@ declare const DEFAULT_COMMIT_PROMPT_MESSAGES: {
233
293
  };
234
294
  type DefaultCommitPromptMessagesKeys = keyof typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
235
295
  type CommitPromptMessagesEnum<TCommitPromptMessagesKeys extends DefaultCommitPromptMessagesKeys = DefaultCommitPromptMessagesKeys> = Record<TCommitPromptMessagesKeys, string> & typeof DEFAULT_COMMIT_PROMPT_MESSAGES;
236
- declare const DEFAULT_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
237
- declare const DEFAULT_COMMIT_SETTINGS: {
296
+ declare const DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = "{type}: {emoji}{subject}";
297
+ declare const DEFAULT_MINIMAL_COMMIT_SETTINGS: {
298
+ enableMultipleScopes: boolean;
299
+ disableEmoji: boolean;
300
+ breakingChangePrefix: string;
301
+ closedIssuePrefix: string;
302
+ format: string;
303
+ };
304
+ declare const DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
305
+ declare const DEFAULT_MONOREPO_COMMIT_SETTINGS: {
238
306
  enableMultipleScopes: boolean;
239
307
  disableEmoji: boolean;
240
308
  breakingChangePrefix: string;
@@ -249,6 +317,12 @@ type CommitSettingsEnum = Record<string, any> & {
249
317
  closedIssuePrefix?: string;
250
318
  format: string;
251
319
  };
320
+ type CommitState<TCommitAnswers extends Record<string, string | boolean> = Record<string, string | boolean>, TCommitConfig extends Record<string, any> = Record<string, any>> = {
321
+ variant: Variant;
322
+ answers: TCommitAnswers;
323
+ config: TCommitConfig;
324
+ root: string;
325
+ };
252
326
  type RuleConfigCondition = "always" | "never";
253
327
  declare enum RuleConfigSeverity {
254
328
  Disabled = 0,
@@ -271,22 +345,87 @@ type DefaultCommitRulesEnum = {
271
345
  "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
272
346
  "type-empty": [RuleConfigSeverity, RuleConfigCondition];
273
347
  "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
274
- "scope-empty": [RuleConfigSeverity, RuleConfigCondition];
348
+ "scope-empty": [RuleConfigSeverity, RuleConfigCondition] | RuleConfigSeverity.Disabled;
349
+ "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
350
+ "scope-enum": [RuleConfigSeverity, RuleConfigCondition, string[]] | RuleConfigSeverity.Disabled;
351
+ "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
352
+ "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
353
+ } & CommitRulesEnum;
354
+ type DefaultMinimalCommitRulesEnum = {
355
+ "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
356
+ "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
357
+ "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
358
+ "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
359
+ "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
360
+ "header-trim": [RuleConfigSeverity, RuleConfigCondition];
361
+ "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
362
+ "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
363
+ "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
364
+ "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
365
+ "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
366
+ "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
367
+ "type-empty": [RuleConfigSeverity, RuleConfigCondition];
368
+ "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
369
+ "scope-empty": RuleConfigSeverity.Disabled;
370
+ "scope-case": RuleConfigSeverity.Disabled;
275
371
  "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
276
372
  "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
373
+ } & CommitRulesEnum;
374
+ declare const DEFAULT_MINIMAL_COMMIT_RULES: DefaultMinimalCommitRulesEnum;
375
+ type MinimalCommitConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
376
+ extends?: string[];
377
+ messages: TCommitPromptMessagesEnum;
378
+ settings: TCommitSettingsEnum;
379
+ types: TCommitTypesEnum;
380
+ questions: TCommitQuestionEnum;
381
+ };
382
+ type DefaultMinimalResolvedCommitRulesEnum = DefaultMinimalCommitRulesEnum & {
383
+ "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
384
+ };
385
+ type MinimalCommitResolvedConfig<TCommitQuestionEnum extends MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps> = MinimalCommitQuestionEnum<DefaultMinimalCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
386
+ parserPreset: string;
387
+ prompt: {
388
+ settings: TCommitSettingsEnum;
389
+ messages: TCommitPromptMessagesEnum;
390
+ questions: TCommitQuestionEnum;
391
+ };
392
+ };
393
+ type MinimalCommitQuestionAnswers<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
394
+ type MinimalCommitState<TCommitQuestionEnum extends MinimalCommitQuestionEnum = MinimalCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MinimalCommitQuestionAnswers<TCommitQuestionEnum>, MinimalCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
395
+ variant: "minimal";
396
+ };
397
+ type DefaultMonorepoCommitRulesEnum = {
398
+ "body-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
399
+ "body-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
400
+ "footer-leading-blank": [RuleConfigSeverity, RuleConfigCondition];
401
+ "footer-max-line-length": [RuleConfigSeverity, RuleConfigCondition, number];
402
+ "header-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
403
+ "header-trim": [RuleConfigSeverity, RuleConfigCondition];
404
+ "subject-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
405
+ "subject-empty": [RuleConfigSeverity, RuleConfigCondition];
406
+ "subject-full-stop": [RuleConfigSeverity, RuleConfigCondition, string];
407
+ "subject-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
408
+ "subject-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
409
+ "type-case": [RuleConfigSeverity, RuleConfigCondition, string];
410
+ "type-empty": [RuleConfigSeverity, RuleConfigCondition];
411
+ "type-enum": [RuleConfigSeverity, RuleConfigCondition, string[]];
412
+ "scope-empty": [RuleConfigSeverity, RuleConfigCondition];
277
413
  "scope-case": [RuleConfigSeverity, RuleConfigCondition, string[]];
414
+ "type-max-length": [RuleConfigSeverity, RuleConfigCondition, number];
415
+ "type-min-length": [RuleConfigSeverity, RuleConfigCondition, number];
278
416
  } & CommitRulesEnum;
279
- type CommitConfig<TCommitQuestionEnum extends CommitQuestionEnum = CommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
417
+ declare const DEFAULT_MONOREPO_COMMIT_RULES: DefaultMonorepoCommitRulesEnum;
418
+ type MonorepoCommitConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitTypesEnum extends CommitTypesEnum = CommitTypesEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
280
419
  extends?: string[];
281
420
  messages: TCommitPromptMessagesEnum;
282
421
  settings: TCommitSettingsEnum;
283
422
  types: TCommitTypesEnum;
284
423
  questions: TCommitQuestionEnum;
285
424
  };
286
- type DefaultResolvedCommitRulesEnum = DefaultCommitRulesEnum & {
425
+ type DefaultMonorepoResolvedCommitRulesEnum = DefaultMonorepoCommitRulesEnum & {
287
426
  "scope-enum": (ctx: any) => Promise<[RuleConfigSeverity, RuleConfigCondition, string[]]>;
288
427
  };
289
- type CommitResolvedConfig<TCommitQuestionEnum extends CommitQuestionEnum<DefaultCommitQuestionKeys, CommitQuestionProps> = CommitQuestionEnum<DefaultCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
428
+ type MonorepoCommitResolvedConfig<TCommitQuestionEnum extends MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps> = MonorepoCommitQuestionEnum<DefaultMonorepoCommitQuestionKeys, CommitQuestionProps>, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
290
429
  utils: Record<string, any>;
291
430
  parserPreset: string;
292
431
  prompt: {
@@ -295,11 +434,9 @@ type CommitResolvedConfig<TCommitQuestionEnum extends CommitQuestionEnum<Default
295
434
  questions: TCommitQuestionEnum;
296
435
  };
297
436
  };
298
- type CommitQuestionAnswers<TCommitQuestionEnum extends CommitQuestionEnum = CommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
299
- type CommitState<TCommitQuestionEnum extends CommitQuestionEnum = CommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = {
300
- answers: CommitQuestionAnswers<TCommitQuestionEnum>;
301
- config: CommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>;
302
- root: string;
437
+ type MonorepoCommitQuestionAnswers<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum> = Record<keyof TCommitQuestionEnum | string, string | boolean>;
438
+ type MonorepoCommitState<TCommitQuestionEnum extends MonorepoCommitQuestionEnum = MonorepoCommitQuestionEnum, TCommitPromptMessagesEnum extends CommitPromptMessagesEnum = CommitPromptMessagesEnum, TCommitSettingsEnum extends CommitSettingsEnum = CommitSettingsEnum> = CommitState<MonorepoCommitQuestionAnswers<TCommitQuestionEnum>, MonorepoCommitResolvedConfig<TCommitQuestionEnum, TCommitPromptMessagesEnum, TCommitSettingsEnum>> & {
439
+ variant: "monorepo";
303
440
  };
304
441
  interface CommitLintRuleOutcome {
305
442
  /** If the commit is considered valid for the rule */
@@ -488,4 +625,4 @@ type NxReleaseRequiredGitConfig = Required<{
488
625
  tagArgs?: string | undefined;
489
626
  }>;
490
627
 
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 };
628
+ export { COMMIT_TYPES, type CommitEnumItemProps, type CommitLintCLIOptions, type CommitLintOutcome, type CommitLintRuleOutcome, type CommitPromptMessagesEnum, type CommitQuestionProps, type CommitRulesEnum, type CommitScopeProps, type CommitScopesEnum, type CommitSettingsEnum, type CommitState, type CommitTypeProps, type CommitTypesEnum, 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 DefaultCommitTypeKeys, 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 };
package/dist/types.js CHANGED
@@ -1,16 +1,26 @@
1
1
  import {
2
2
  COMMIT_TYPES,
3
- DEFAULT_COMMIT_MESSAGE_FORMAT,
4
3
  DEFAULT_COMMIT_PROMPT_MESSAGES,
5
- DEFAULT_COMMIT_QUESTIONS,
6
- DEFAULT_COMMIT_SETTINGS,
4
+ DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT,
5
+ DEFAULT_MINIMAL_COMMIT_QUESTIONS,
6
+ DEFAULT_MINIMAL_COMMIT_RULES,
7
+ DEFAULT_MINIMAL_COMMIT_SETTINGS,
8
+ DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT,
9
+ DEFAULT_MONOREPO_COMMIT_QUESTIONS,
10
+ DEFAULT_MONOREPO_COMMIT_RULES,
11
+ DEFAULT_MONOREPO_COMMIT_SETTINGS,
7
12
  RuleConfigSeverity
8
- } from "./chunk-A4HFPO7F.js";
13
+ } from "./chunk-5XXXTVPU.js";
9
14
  export {
10
15
  COMMIT_TYPES,
11
- DEFAULT_COMMIT_MESSAGE_FORMAT,
12
16
  DEFAULT_COMMIT_PROMPT_MESSAGES,
13
- DEFAULT_COMMIT_QUESTIONS,
14
- DEFAULT_COMMIT_SETTINGS,
17
+ DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT,
18
+ DEFAULT_MINIMAL_COMMIT_QUESTIONS,
19
+ DEFAULT_MINIMAL_COMMIT_RULES,
20
+ DEFAULT_MINIMAL_COMMIT_SETTINGS,
21
+ DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT,
22
+ DEFAULT_MONOREPO_COMMIT_QUESTIONS,
23
+ DEFAULT_MONOREPO_COMMIT_RULES,
24
+ DEFAULT_MONOREPO_COMMIT_SETTINGS,
15
25
  RuleConfigSeverity
16
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.115.16",
3
+ "version": "2.116.1",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -99,20 +99,6 @@
99
99
  },
100
100
  "default": { "types": "./dist/types.d.ts", "default": "./dist/types.js" }
101
101
  },
102
- "./commit/config": {
103
- "import": {
104
- "types": "./dist/commit/config.d.ts",
105
- "default": "./dist/commit/config.js"
106
- },
107
- "require": {
108
- "types": "./dist/commit/config.d.cts",
109
- "default": "./dist/commit/config.cjs"
110
- },
111
- "default": {
112
- "types": "./dist/commit/config.d.ts",
113
- "default": "./dist/commit/config.js"
114
- }
115
- },
116
102
  "./commit/*": {
117
103
  "import": {
118
104
  "types": "./dist/commit/*.d.ts",
@@ -127,20 +113,6 @@
127
113
  "default": "./dist/commit/*.js"
128
114
  }
129
115
  },
130
- "./commitlint/config": {
131
- "import": {
132
- "types": "./dist/commitlint/config.d.ts",
133
- "default": "./dist/commitlint/config.js"
134
- },
135
- "require": {
136
- "types": "./dist/commitlint/config.d.cts",
137
- "default": "./dist/commitlint/config.cjs"
138
- },
139
- "default": {
140
- "types": "./dist/commitlint/config.d.ts",
141
- "default": "./dist/commitlint/config.js"
142
- }
143
- },
144
116
  "./commitlint/*": {
145
117
  "import": {
146
118
  "types": "./dist/commitlint/*.d.ts",
@@ -155,20 +127,6 @@
155
127
  "default": "./dist/commitlint/*.js"
156
128
  }
157
129
  },
158
- "./release/config": {
159
- "import": {
160
- "types": "./dist/release/config.d.ts",
161
- "default": "./dist/release/config.js"
162
- },
163
- "require": {
164
- "types": "./dist/release/config.d.cts",
165
- "default": "./dist/release/config.cjs"
166
- },
167
- "default": {
168
- "types": "./dist/release/config.d.ts",
169
- "default": "./dist/release/config.js"
170
- }
171
- },
172
130
  "./release/*": {
173
131
  "import": {
174
132
  "types": "./dist/release/*.d.ts",
@@ -221,8 +179,8 @@
221
179
  "@inquirer/prompts": "7.2.1",
222
180
  "@nx/devkit": "^21.4.1",
223
181
  "@nx/js": "^21.4.1",
224
- "@storm-software/config": "^1.128.13",
225
- "@storm-software/config-tools": "^1.180.16",
182
+ "@storm-software/config": "^1.129.0",
183
+ "@storm-software/config-tools": "^1.181.1",
226
184
  "@textlint/ast-node-types": "14.4.2",
227
185
  "@textlint/markdown-to-ast": "14.4.2",
228
186
  "anchor-markdown-header": "0.7.0",
@@ -251,5 +209,5 @@
251
209
  "tsup": "8.4.0"
252
210
  },
253
211
  "publishConfig": { "access": "public" },
254
- "gitHead": "bc86c50b76af106cfe289ad6e30e48a861924328"
212
+ "gitHead": "658730b4c2e45539c2c7e8a27a7de490a0313325"
255
213
  }
@@ -1,18 +0,0 @@
1
- import {
2
- COMMIT_TYPES,
3
- DEFAULT_COMMIT_PROMPT_MESSAGES,
4
- DEFAULT_COMMIT_QUESTIONS,
5
- DEFAULT_COMMIT_SETTINGS
6
- } from "./chunk-A4HFPO7F.js";
7
-
8
- // src/commit/config.ts
9
- var DEFAULT_COMMIT_CONFIG = {
10
- settings: DEFAULT_COMMIT_SETTINGS,
11
- messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
12
- questions: DEFAULT_COMMIT_QUESTIONS,
13
- types: COMMIT_TYPES
14
- };
15
-
16
- export {
17
- DEFAULT_COMMIT_CONFIG
18
- };