@storm-software/git-tools 2.132.4 → 2.132.7

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.
@@ -1,5 +1,5 @@
1
- import { DEFAULT_MONOREPO_COMMIT_QUESTIONS } from './chunk-OMWWQPRY.js';
2
- import { DEFAULT_COMMIT_TYPES } from './chunk-4T5NCWMG.js';
1
+ import { DEFAULT_MONOREPO_COMMIT_QUESTIONS } from './chunk-SXXS7K65.js';
2
+ import { DEFAULT_COMMIT_TYPES } from './chunk-XENWDHMR.js';
3
3
  import { writeWarning, formatLogMessage, writeTrace, getLogLevel, LogLevel, getLogLevelLabel } from './chunk-PPBPJTXT.js';
4
4
  import defu3 from 'defu';
5
5
  import { existsSync } from 'fs';
@@ -20,6 +20,7 @@ import 'nx/src/command-line/release/utils/print-changes';
20
20
  import 'nx/src/command-line/release/utils/shared';
21
21
  import 'nx/src/tasks-runner/utils';
22
22
  import 'prettier';
23
+ import { z as z$1 } from 'zod';
23
24
  import 'node:child_process';
24
25
  import 'node:os';
25
26
  import 'nx/src/command-line/release/utils/remote-release-clients/github';
@@ -1918,6 +1919,51 @@ ACRONYMS.reduce(
1918
1919
  );
1919
1920
 
1920
1921
  // src/utilities/changelog-utils.ts
1922
+ var ChangelogItemType = z$1.enum([
1923
+ "chore",
1924
+ "fix",
1925
+ "feat",
1926
+ "refactor",
1927
+ "style",
1928
+ "perf",
1929
+ "deps"
1930
+ ]);
1931
+ var ChangelogBaseItemSchema = z$1.object({
1932
+ type: ChangelogItemType,
1933
+ scope: z$1.string(),
1934
+ description: z$1.string()
1935
+ });
1936
+ var ChangelogMinimalItemSchema = ChangelogBaseItemSchema.extend({
1937
+ type: z$1.enum(["chore", "refactor", "style", "perf"])
1938
+ });
1939
+ var ChangelogFixItemSchema = ChangelogBaseItemSchema.extend({
1940
+ type: z$1.enum(["fix"]),
1941
+ issue: z$1.string()
1942
+ });
1943
+ var ChangelogDepsUpdateItemSchema = ChangelogBaseItemSchema.extend({
1944
+ package: z$1.string(),
1945
+ version: z$1.string()
1946
+ });
1947
+ var ChangelogDepsItemSchema = ChangelogBaseItemSchema.extend({
1948
+ type: z$1.enum(["deps"]),
1949
+ updates: z$1.array(ChangelogDepsUpdateItemSchema)
1950
+ });
1951
+ var ChangelogFeatItemSchema = ChangelogBaseItemSchema.extend({
1952
+ type: z$1.enum(["feat"]),
1953
+ feature: z$1.string()
1954
+ });
1955
+ var ChangelogItemSchema = z$1.union([
1956
+ ChangelogMinimalItemSchema,
1957
+ ChangelogFixItemSchema,
1958
+ ChangelogDepsItemSchema,
1959
+ ChangelogFeatItemSchema
1960
+ ]);
1961
+ z$1.object({
1962
+ version: z$1.string(),
1963
+ project: z$1.string(),
1964
+ date: z$1.date(),
1965
+ changes: z$1.array(ChangelogItemSchema).default([])
1966
+ });
1921
1967
  function generateChangelogTitle(version, project, workspaceConfig) {
1922
1968
  if (!workspaceConfig?.name || !project) {
1923
1969
  return version;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5TXHP6RI_cjs = require('./chunk-5TXHP6RI.cjs');
3
+ var chunkPRUAX34Y_cjs = require('./chunk-PRUAX34Y.cjs');
4
4
  var chunkYBAE6I5L_cjs = require('./chunk-YBAE6I5L.cjs');
5
5
 
6
6
  // src/commit/config/minimal.ts
@@ -9,10 +9,10 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
9
9
  type: "select",
10
10
  title: "Commit Type",
11
11
  description: "Select the commit type that best describes your changes",
12
- enum: Object.keys(chunk5TXHP6RI_cjs.DEFAULT_COMMIT_TYPES).filter(
13
- (type) => chunk5TXHP6RI_cjs.DEFAULT_COMMIT_TYPES[type].hidden !== true
12
+ enum: Object.keys(chunkPRUAX34Y_cjs.DEFAULT_COMMIT_TYPES).filter(
13
+ (type) => chunkPRUAX34Y_cjs.DEFAULT_COMMIT_TYPES[type].hidden !== true
14
14
  ).reduce((ret, type) => {
15
- ret[type] = chunk5TXHP6RI_cjs.DEFAULT_COMMIT_TYPES[type];
15
+ ret[type] = chunkPRUAX34Y_cjs.DEFAULT_COMMIT_TYPES[type];
16
16
  return ret;
17
17
  }, {}),
18
18
  defaultValue: "chore",
@@ -62,10 +62,10 @@ var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
62
62
  }
63
63
  };
64
64
  var config = {
65
- settings: chunk5TXHP6RI_cjs.COMMIT_CONFIGS.minimal.commitlint.settings,
65
+ settings: chunkPRUAX34Y_cjs.COMMIT_CONFIGS.minimal.commitlint.settings,
66
66
  messages: chunkYBAE6I5L_cjs.DEFAULT_COMMIT_PROMPT_MESSAGES,
67
67
  questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS,
68
- types: chunk5TXHP6RI_cjs.DEFAULT_COMMIT_TYPES
68
+ types: chunkPRUAX34Y_cjs.DEFAULT_COMMIT_TYPES
69
69
  };
70
70
  var minimal_default = config;
71
71
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkRIPABM45_cjs = require('./chunk-RIPABM45.cjs');
4
- var chunk5TXHP6RI_cjs = require('./chunk-5TXHP6RI.cjs');
3
+ var chunkQZHJ2A5V_cjs = require('./chunk-QZHJ2A5V.cjs');
4
+ var chunkPRUAX34Y_cjs = require('./chunk-PRUAX34Y.cjs');
5
5
  var chunk7LF2JPA5_cjs = require('./chunk-7LF2JPA5.cjs');
6
6
  var defu3 = require('defu');
7
7
  var fs = require('fs');
@@ -21,6 +21,7 @@ require('nx/src/command-line/release/utils/print-changes');
21
21
  require('nx/src/command-line/release/utils/shared');
22
22
  require('nx/src/tasks-runner/utils');
23
23
  require('prettier');
24
+ var zod = require('zod');
24
25
  require('child_process');
25
26
  require('os');
26
27
  require('nx/src/command-line/release/utils/remote-release-clients/github');
@@ -1944,6 +1945,51 @@ ACRONYMS.reduce(
1944
1945
  );
1945
1946
 
1946
1947
  // src/utilities/changelog-utils.ts
1948
+ var ChangelogItemType = zod.z.enum([
1949
+ "chore",
1950
+ "fix",
1951
+ "feat",
1952
+ "refactor",
1953
+ "style",
1954
+ "perf",
1955
+ "deps"
1956
+ ]);
1957
+ var ChangelogBaseItemSchema = zod.z.object({
1958
+ type: ChangelogItemType,
1959
+ scope: zod.z.string(),
1960
+ description: zod.z.string()
1961
+ });
1962
+ var ChangelogMinimalItemSchema = ChangelogBaseItemSchema.extend({
1963
+ type: zod.z.enum(["chore", "refactor", "style", "perf"])
1964
+ });
1965
+ var ChangelogFixItemSchema = ChangelogBaseItemSchema.extend({
1966
+ type: zod.z.enum(["fix"]),
1967
+ issue: zod.z.string()
1968
+ });
1969
+ var ChangelogDepsUpdateItemSchema = ChangelogBaseItemSchema.extend({
1970
+ package: zod.z.string(),
1971
+ version: zod.z.string()
1972
+ });
1973
+ var ChangelogDepsItemSchema = ChangelogBaseItemSchema.extend({
1974
+ type: zod.z.enum(["deps"]),
1975
+ updates: zod.z.array(ChangelogDepsUpdateItemSchema)
1976
+ });
1977
+ var ChangelogFeatItemSchema = ChangelogBaseItemSchema.extend({
1978
+ type: zod.z.enum(["feat"]),
1979
+ feature: zod.z.string()
1980
+ });
1981
+ var ChangelogItemSchema = zod.z.union([
1982
+ ChangelogMinimalItemSchema,
1983
+ ChangelogFixItemSchema,
1984
+ ChangelogDepsItemSchema,
1985
+ ChangelogFeatItemSchema
1986
+ ]);
1987
+ zod.z.object({
1988
+ version: zod.z.string(),
1989
+ project: zod.z.string(),
1990
+ date: zod.z.date(),
1991
+ changes: zod.z.array(ChangelogItemSchema).default([])
1992
+ });
1947
1993
  function generateChangelogTitle(version, project, workspaceConfig) {
1948
1994
  if (!workspaceConfig?.name || !project) {
1949
1995
  return version;
@@ -2158,8 +2204,8 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
2158
2204
  // src/release/config.ts
2159
2205
  var DEFAULT_CONVENTIONAL_COMMITS_CONFIG2 = {
2160
2206
  useCommitScope: true,
2161
- questions: chunkRIPABM45_cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
2162
- types: chunk5TXHP6RI_cjs.DEFAULT_COMMIT_TYPES
2207
+ questions: chunkQZHJ2A5V_cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
2208
+ types: chunkPRUAX34Y_cjs.DEFAULT_COMMIT_TYPES
2163
2209
  };
2164
2210
  var DEFAULT_INDEPENDENT_RELEASE_TAG_PATTERN = "{projectName}@{version}";
2165
2211
  var DEFAULT_FIXED_RELEASE_TAG_PATTERN = "{releaseGroupName}@{version}";
@@ -3,130 +3,130 @@
3
3
  // ../conventional-changelog/src/commit-types.ts
4
4
  var DEFAULT_COMMIT_TYPES = {
5
5
  /* --- Bumps version when selected --- */
6
- "chore": {
7
- "description": "Other changes that don't modify src or test files",
8
- "title": "Chore",
9
- "emoji": "\u2699\uFE0F ",
10
- "semverBump": "patch",
11
- "changelog": {
12
- "title": "Miscellaneous",
13
- "hidden": false
6
+ chore: {
7
+ description: "Other changes that don't modify src or test files",
8
+ title: "Chore",
9
+ emoji: "\u2699\uFE0F ",
10
+ semverBump: "patch",
11
+ changelog: {
12
+ title: "Miscellaneous",
13
+ hidden: false
14
14
  }
15
15
  },
16
- "fix": {
17
- "description": "A change that resolves an issue previously identified with the package",
18
- "title": "Bug Fix",
19
- "emoji": "\u{1FAB2} ",
20
- "semverBump": "patch",
21
- "changelog": {
22
- "title": "Bug Fixes",
23
- "hidden": false
16
+ fix: {
17
+ description: "A change that resolves an issue previously identified with the package",
18
+ title: "Bug Fix",
19
+ emoji: "\u{1FAB2} ",
20
+ semverBump: "patch",
21
+ changelog: {
22
+ title: "Bug Fixes",
23
+ hidden: false
24
24
  }
25
25
  },
26
- "feat": {
27
- "description": "A change that adds a new feature to the package",
28
- "title": "Feature",
29
- "emoji": "\u{1F511} ",
30
- "semverBump": "minor",
31
- "changelog": {
32
- "title": "Features",
33
- "hidden": false
26
+ feat: {
27
+ description: "A change that adds a new feature to the package",
28
+ title: "Feature",
29
+ emoji: "\u{1F511} ",
30
+ semverBump: "minor",
31
+ changelog: {
32
+ title: "Features",
33
+ hidden: false
34
34
  }
35
35
  },
36
- "ci": {
37
- "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
38
- "title": "Continuous Integration",
39
- "emoji": "\u{1F9F0} ",
40
- "semverBump": "patch",
41
- "changelog": {
42
- "title": "Continuous Integration",
43
- "hidden": false
36
+ ci: {
37
+ description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
38
+ title: "Continuous Integration",
39
+ emoji: "\u{1F9F0} ",
40
+ semverBump: "patch",
41
+ changelog: {
42
+ title: "Continuous Integration",
43
+ hidden: false
44
44
  }
45
45
  },
46
- "refactor": {
47
- "description": "A code change that neither fixes a bug nor adds a feature",
48
- "title": "Code Refactoring",
49
- "emoji": "\u{1F9EA} ",
50
- "semverBump": "patch",
51
- "changelog": {
52
- "title": "Source Code Improvements",
53
- "hidden": false
46
+ refactor: {
47
+ description: "A code change that neither fixes a bug nor adds a feature",
48
+ title: "Code Refactoring",
49
+ emoji: "\u{1F9EA} ",
50
+ semverBump: "patch",
51
+ changelog: {
52
+ title: "Source Code Improvements",
53
+ hidden: false
54
54
  }
55
55
  },
56
- "style": {
57
- "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
58
- "title": "Style Improvements",
59
- "emoji": "\u{1F48E} ",
60
- "semverBump": "patch",
61
- "changelog": {
62
- "title": "Style Improvements",
63
- "hidden": false
56
+ style: {
57
+ description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
58
+ title: "Style Improvements",
59
+ emoji: "\u{1F48E} ",
60
+ semverBump: "patch",
61
+ changelog: {
62
+ title: "Style Improvements",
63
+ hidden: false
64
64
  }
65
65
  },
66
- "perf": {
67
- "description": "A code change that improves performance",
68
- "title": "Performance Improvement",
69
- "emoji": "\u23F1\uFE0F ",
70
- "semverBump": "patch",
71
- "changelog": {
72
- "title": "Performance Improvements",
73
- "hidden": false
66
+ perf: {
67
+ description: "A code change that improves performance",
68
+ title: "Performance Improvement",
69
+ emoji: "\u23F1\uFE0F ",
70
+ semverBump: "patch",
71
+ changelog: {
72
+ title: "Performance Improvements",
73
+ hidden: false
74
74
  }
75
75
  },
76
76
  /* --- Does not bump version when selected --- */
77
- "docs": {
78
- "description": "A change that only includes documentation updates",
79
- "title": "Documentation",
80
- "emoji": "\u{1F4DC} ",
81
- "semverBump": "none",
82
- "changelog": {
83
- "title": "Documentation",
84
- "hidden": false
77
+ docs: {
78
+ description: "A change that only includes documentation updates",
79
+ title: "Documentation",
80
+ emoji: "\u{1F4DC} ",
81
+ semverBump: "none",
82
+ changelog: {
83
+ title: "Documentation",
84
+ hidden: false
85
85
  }
86
86
  },
87
- "test": {
88
- "description": "Adding missing tests or correcting existing tests",
89
- "title": "Testing",
90
- "emoji": "\u{1F6A8} ",
91
- "semverBump": "none",
92
- "changelog": {
93
- "title": "Testing",
94
- "hidden": true
87
+ test: {
88
+ description: "Adding missing tests or correcting existing tests",
89
+ title: "Testing",
90
+ emoji: "\u{1F6A8} ",
91
+ semverBump: "none",
92
+ changelog: {
93
+ title: "Testing",
94
+ hidden: true
95
95
  }
96
96
  },
97
97
  /* --- Not included in commitlint but included in changelog --- */
98
- "deps": {
99
- "description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
100
- "title": "Dependencies",
101
- "emoji": "\u{1F4E6} ",
102
- "hidden": true,
103
- "semverBump": "patch",
104
- "changelog": {
105
- "title": "Dependency Upgrades",
106
- "hidden": false
98
+ deps: {
99
+ description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
100
+ title: "Dependencies",
101
+ emoji: "\u{1F4E6} ",
102
+ hidden: true,
103
+ semverBump: "patch",
104
+ changelog: {
105
+ title: "Dependency Upgrades",
106
+ hidden: false
107
107
  }
108
108
  },
109
109
  /* --- Not included in commitlint or changelog --- */
110
- "build": {
111
- "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
112
- "title": "Build",
113
- "emoji": "\u{1F6E0} ",
114
- "hidden": true,
115
- "semverBump": "none",
116
- "changelog": {
117
- "title": "Build",
118
- "hidden": true
110
+ build: {
111
+ description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
112
+ title: "Build",
113
+ emoji: "\u{1F6E0} ",
114
+ hidden: true,
115
+ semverBump: "none",
116
+ changelog: {
117
+ title: "Build",
118
+ hidden: true
119
119
  }
120
120
  },
121
- "release": {
122
- "description": "Publishing a commit containing a newly released version",
123
- "title": "Publish Release",
124
- "emoji": "\u{1F680} ",
125
- "hidden": true,
126
- "semverBump": "none",
127
- "changelog": {
128
- "title": "Publish Release",
129
- "hidden": true
121
+ release: {
122
+ description: "Publishing a commit containing a newly released version",
123
+ title: "Publish Release",
124
+ emoji: "\u{1F680} ",
125
+ hidden: true,
126
+ semverBump: "none",
127
+ changelog: {
128
+ title: "Publish Release",
129
+ hidden: true
130
130
  }
131
131
  }
132
132
  };
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkWRSI3KUJ_cjs = require('./chunk-WRSI3KUJ.cjs');
4
- var chunk5TXHP6RI_cjs = require('./chunk-5TXHP6RI.cjs');
3
+ var chunkDGAH7HON_cjs = require('./chunk-DGAH7HON.cjs');
4
+ var chunkPRUAX34Y_cjs = require('./chunk-PRUAX34Y.cjs');
5
5
  var chunkYBAE6I5L_cjs = require('./chunk-YBAE6I5L.cjs');
6
6
 
7
7
  // src/commit/config/monorepo.ts
8
8
  var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
9
- type: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
9
+ type: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
10
10
  scope: {
11
11
  type: "select",
12
12
  title: "Commit Scope",
@@ -16,18 +16,18 @@ var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
16
16
  maxLength: 50,
17
17
  minLength: 1
18
18
  },
19
- subject: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
20
- body: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
21
- isBreaking: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
22
- breakingBody: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
23
- isIssueAffected: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
24
- issuesBody: chunkWRSI3KUJ_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
19
+ subject: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
20
+ body: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
21
+ isBreaking: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
22
+ breakingBody: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
23
+ isIssueAffected: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
24
+ issuesBody: chunkDGAH7HON_cjs.DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
25
25
  };
26
26
  var config = {
27
- settings: chunk5TXHP6RI_cjs.COMMIT_CONFIGS.monorepo.commitlint.settings,
27
+ settings: chunkPRUAX34Y_cjs.COMMIT_CONFIGS.monorepo.commitlint.settings,
28
28
  messages: chunkYBAE6I5L_cjs.DEFAULT_COMMIT_PROMPT_MESSAGES,
29
29
  questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
30
- types: chunk5TXHP6RI_cjs.DEFAULT_COMMIT_TYPES
30
+ types: chunkPRUAX34Y_cjs.DEFAULT_COMMIT_TYPES
31
31
  };
32
32
  var monorepo_default = config;
33
33
 
@@ -1,4 +1,4 @@
1
- import { DEFAULT_COMMIT_TYPES, COMMIT_CONFIGS } from './chunk-4T5NCWMG.js';
1
+ import { DEFAULT_COMMIT_TYPES, COMMIT_CONFIGS } from './chunk-XENWDHMR.js';
2
2
  import { DEFAULT_COMMIT_PROMPT_MESSAGES } from './chunk-5XU2KBM6.js';
3
3
 
4
4
  // src/commit/config/minimal.ts
@@ -1,5 +1,5 @@
1
- import { DEFAULT_MINIMAL_COMMIT_QUESTIONS } from './chunk-XS6PFVQQ.js';
2
- import { COMMIT_CONFIGS, DEFAULT_COMMIT_TYPES } from './chunk-4T5NCWMG.js';
1
+ import { DEFAULT_MINIMAL_COMMIT_QUESTIONS } from './chunk-R3JHNAJF.js';
2
+ import { COMMIT_CONFIGS, DEFAULT_COMMIT_TYPES } from './chunk-XENWDHMR.js';
3
3
  import { DEFAULT_COMMIT_PROMPT_MESSAGES } from './chunk-5XU2KBM6.js';
4
4
 
5
5
  // src/commit/config/monorepo.ts