@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
package/dist/types.js CHANGED
@@ -1,24 +1,6 @@
1
1
  import {
2
- DEFAULT_COMMIT_PROMPT_MESSAGES,
3
- DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT,
4
- DEFAULT_MINIMAL_COMMIT_QUESTIONS,
5
- DEFAULT_MINIMAL_COMMIT_RULES,
6
- DEFAULT_MINIMAL_COMMIT_SETTINGS,
7
- DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT,
8
- DEFAULT_MONOREPO_COMMIT_QUESTIONS,
9
- DEFAULT_MONOREPO_COMMIT_RULES,
10
- DEFAULT_MONOREPO_COMMIT_SETTINGS,
11
- RuleConfigSeverity
12
- } from "./chunk-GRCMQK4Q.js";
2
+ DEFAULT_COMMIT_PROMPT_MESSAGES
3
+ } from "./chunk-5XU2KBM6.js";
13
4
  export {
14
- DEFAULT_COMMIT_PROMPT_MESSAGES,
15
- DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT,
16
- DEFAULT_MINIMAL_COMMIT_QUESTIONS,
17
- DEFAULT_MINIMAL_COMMIT_RULES,
18
- DEFAULT_MINIMAL_COMMIT_SETTINGS,
19
- DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT,
20
- DEFAULT_MONOREPO_COMMIT_QUESTIONS,
21
- DEFAULT_MONOREPO_COMMIT_RULES,
22
- DEFAULT_MONOREPO_COMMIT_SETTINGS,
23
- RuleConfigSeverity
5
+ DEFAULT_COMMIT_PROMPT_MESSAGES
24
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.121.3",
3
+ "version": "2.122.0",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -185,8 +185,8 @@
185
185
  "@inquirer/prompts": "7.2.1",
186
186
  "@nx/devkit": "^21.4.1",
187
187
  "@nx/js": "^21.4.1",
188
- "@storm-software/config": "^1.131.3",
189
- "@storm-software/config-tools": "^1.185.3",
188
+ "@storm-software/config": "^1.132.0",
189
+ "@storm-software/config-tools": "^1.186.0",
190
190
  "@textlint/ast-node-types": "14.4.2",
191
191
  "@textlint/markdown-to-ast": "14.4.2",
192
192
  "anchor-markdown-header": "0.7.0",
@@ -194,7 +194,7 @@
194
194
  "axios": "1.8.2",
195
195
  "chalk": "^4.1.2",
196
196
  "chalk-template": "1.1.0",
197
- "conventional-changelog-storm-software": "^0.1.3",
197
+ "conventional-changelog-storm-software": "^0.2.0",
198
198
  "htmlparser2": "10.0.0",
199
199
  "jsonc-parser": "3.2.1",
200
200
  "nx": "^21.4.1",
@@ -216,5 +216,5 @@
216
216
  "tsup": "8.4.0"
217
217
  },
218
218
  "publishConfig": { "access": "public" },
219
- "gitHead": "1b9f901274134d51c4200e5797348cf9587203dc"
219
+ "gitHead": "58a105ac718cd01f1a5a8f6f36c8644001627597"
220
220
  }
@@ -1,19 +0,0 @@
1
- import {
2
- COMMIT_TYPES,
3
- DEFAULT_COMMIT_PROMPT_MESSAGES,
4
- DEFAULT_MONOREPO_COMMIT_QUESTIONS,
5
- DEFAULT_MONOREPO_COMMIT_SETTINGS
6
- } from "./chunk-GRCMQK4Q.js";
7
-
8
- // src/commit/config/monorepo.ts
9
- var config = {
10
- settings: DEFAULT_MONOREPO_COMMIT_SETTINGS,
11
- messages: DEFAULT_COMMIT_PROMPT_MESSAGES,
12
- questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
13
- types: COMMIT_TYPES
14
- };
15
- var monorepo_default = config;
16
-
17
- export {
18
- monorepo_default
19
- };
@@ -1,19 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunk2SHAD3P5cjs = require('./chunk-2SHAD3P5.cjs');
7
-
8
- // src/commit/config/monorepo.ts
9
- var config = {
10
- settings: _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_SETTINGS,
11
- messages: _chunk2SHAD3P5cjs.DEFAULT_COMMIT_PROMPT_MESSAGES,
12
- questions: _chunk2SHAD3P5cjs.DEFAULT_MONOREPO_COMMIT_QUESTIONS,
13
- types: _chunk2SHAD3P5cjs.COMMIT_TYPES
14
- };
15
- var monorepo_default = config;
16
-
17
-
18
-
19
- exports.monorepo_default = monorepo_default;
@@ -1,301 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../conventional-changelog/src/commit-types.ts
2
- var COMMIT_TYPES = {
3
- /* --- Bumps version when selected --- */
4
- "chore": {
5
- "description": "Other changes that don't modify src or test files",
6
- "title": "Chore",
7
- "emoji": "\u2699\uFE0F ",
8
- "semverBump": "patch",
9
- "changelog": {
10
- "title": "Miscellaneous",
11
- "hidden": false
12
- }
13
- },
14
- "fix": {
15
- "description": "A change that resolves an issue previously identified with the package",
16
- "title": "Bug Fix",
17
- "emoji": "\u{1FAB2} ",
18
- "semverBump": "patch",
19
- "changelog": {
20
- "title": "Bug Fixes",
21
- "hidden": false
22
- }
23
- },
24
- "feat": {
25
- "description": "A change that adds a new feature to the package",
26
- "title": "Feature",
27
- "emoji": "\u{1F511} ",
28
- "semverBump": "minor",
29
- "changelog": {
30
- "title": "Features",
31
- "hidden": false
32
- }
33
- },
34
- "ci": {
35
- "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
36
- "title": "Continuous Integration",
37
- "emoji": "\u{1F9F0} ",
38
- "semverBump": "patch",
39
- "changelog": {
40
- "title": "Continuous Integration",
41
- "hidden": false
42
- }
43
- },
44
- "refactor": {
45
- "description": "A code change that neither fixes a bug nor adds a feature",
46
- "title": "Code Refactoring",
47
- "emoji": "\u{1F9EA} ",
48
- "semverBump": "patch",
49
- "changelog": {
50
- "title": "Source Code Improvements",
51
- "hidden": false
52
- }
53
- },
54
- "style": {
55
- "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
56
- "title": "Style Improvements",
57
- "emoji": "\u{1F48E} ",
58
- "semverBump": "patch",
59
- "changelog": {
60
- "title": "Style Improvements",
61
- "hidden": false
62
- }
63
- },
64
- "perf": {
65
- "description": "A code change that improves performance",
66
- "title": "Performance Improvement",
67
- "emoji": "\u23F1\uFE0F ",
68
- "semverBump": "patch",
69
- "changelog": {
70
- "title": "Performance Improvements",
71
- "hidden": false
72
- }
73
- },
74
- /* --- Does not bump version when selected --- */
75
- "docs": {
76
- "description": "A change that only includes documentation updates",
77
- "title": "Documentation",
78
- "emoji": "\u{1F4DC} ",
79
- "semverBump": "none",
80
- "changelog": {
81
- "title": "Documentation",
82
- "hidden": false
83
- }
84
- },
85
- "test": {
86
- "description": "Adding missing tests or correcting existing tests",
87
- "title": "Testing",
88
- "emoji": "\u{1F6A8} ",
89
- "semverBump": "none",
90
- "changelog": {
91
- "title": "Testing",
92
- "hidden": true
93
- }
94
- },
95
- /* --- Not included in commitlint but included in changelog --- */
96
- "deps": {
97
- "description": "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
98
- "title": "Dependencies",
99
- "emoji": "\u{1F4E6} ",
100
- "hidden": true,
101
- "semverBump": "patch",
102
- "changelog": {
103
- "title": "Dependency Upgrades",
104
- "hidden": false
105
- }
106
- },
107
- /* --- Not included in commitlint or changelog --- */
108
- "build": {
109
- "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
110
- "title": "Build",
111
- "emoji": "\u{1F6E0} ",
112
- "hidden": true,
113
- "semverBump": "none",
114
- "changelog": {
115
- "title": "Build",
116
- "hidden": true
117
- }
118
- },
119
- "release": {
120
- "description": "Publishing a commit containing a newly released version",
121
- "title": "Publish Release",
122
- "emoji": "\u{1F680} ",
123
- "hidden": true,
124
- "semverBump": "none",
125
- "changelog": {
126
- "title": "Publish Release",
127
- "hidden": true
128
- }
129
- }
130
- };
131
-
132
- // src/types.ts
133
- var DEFAULT_MINIMAL_COMMIT_QUESTIONS = {
134
- type: {
135
- type: "select",
136
- title: "Commit Type",
137
- description: "Select the commit type that best describes your changes",
138
- enum: Object.keys(COMMIT_TYPES).filter(
139
- (type) => COMMIT_TYPES[type].hidden !== true
140
- ).reduce((ret, type) => {
141
- ret[type] = COMMIT_TYPES[type];
142
- return ret;
143
- }, {}),
144
- defaultValue: "chore",
145
- maxLength: 20,
146
- minLength: 3
147
- },
148
- subject: {
149
- type: "input",
150
- title: "Commit Subject",
151
- description: "Write a short, imperative tense description of the change",
152
- maxLength: 150,
153
- minLength: 3
154
- },
155
- body: {
156
- type: "input",
157
- title: "Commit Body",
158
- description: "Provide a longer description of the change",
159
- maxLength: 600
160
- },
161
- isBreaking: {
162
- type: "confirm",
163
- title: "Breaking Changes",
164
- description: "Are there any breaking changes as a result of this commit?",
165
- defaultValue: false
166
- },
167
- breakingBody: {
168
- type: "input",
169
- title: "Breaking Changes (Details)",
170
- description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
171
- when: (answers) => answers.isBreaking === true,
172
- maxLength: 600,
173
- minLength: 3
174
- },
175
- isIssueAffected: {
176
- type: "confirm",
177
- title: "Open Issue Affected",
178
- description: "Does this change impact any open issues?",
179
- defaultValue: false
180
- },
181
- issuesBody: {
182
- type: "input",
183
- title: "Open Issue Affected (Details)",
184
- description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
185
- when: (answers) => answers.isIssueAffected === true,
186
- maxLength: 600,
187
- minLength: 3
188
- }
189
- };
190
- var DEFAULT_MONOREPO_COMMIT_QUESTIONS = {
191
- type: DEFAULT_MINIMAL_COMMIT_QUESTIONS.type,
192
- scope: {
193
- type: "select",
194
- title: "Commit Scope",
195
- description: "Select the project that's the most impacted by this change",
196
- enum: {},
197
- defaultValue: "monorepo",
198
- maxLength: 50,
199
- minLength: 1
200
- },
201
- subject: DEFAULT_MINIMAL_COMMIT_QUESTIONS.subject,
202
- body: DEFAULT_MINIMAL_COMMIT_QUESTIONS.body,
203
- isBreaking: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isBreaking,
204
- breakingBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.breakingBody,
205
- isIssueAffected: DEFAULT_MINIMAL_COMMIT_QUESTIONS.isIssueAffected,
206
- issuesBody: DEFAULT_MINIMAL_COMMIT_QUESTIONS.issuesBody
207
- };
208
- var DEFAULT_COMMIT_PROMPT_MESSAGES = {
209
- skip: "press enter to skip",
210
- max: "must be %d chars at most",
211
- min: "must be %d chars at least",
212
- emptyWarning: "can not be empty",
213
- upperLimitWarning: "%s is %d characters longer than the upper limit",
214
- lowerLimitWarning: "%s is %d characters less than the lower limit",
215
- closedIssueMessage: "Closes: "
216
- };
217
- var DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = "{type}: {emoji}{subject}";
218
- var DEFAULT_MINIMAL_COMMIT_SETTINGS = {
219
- enableMultipleScopes: false,
220
- disableEmoji: true,
221
- breakingChangePrefix: "\u{1F4A3} ",
222
- closedIssuePrefix: "\u2705 ",
223
- format: DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT
224
- };
225
- var DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = "{type}({scope}): {emoji}{subject}";
226
- var DEFAULT_MONOREPO_COMMIT_SETTINGS = {
227
- enableMultipleScopes: false,
228
- disableEmoji: true,
229
- breakingChangePrefix: "\u{1F4A3} ",
230
- closedIssuePrefix: "\u2705 ",
231
- format: DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT
232
- };
233
- var RuleConfigSeverity = /* @__PURE__ */ ((RuleConfigSeverity2) => {
234
- RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
235
- RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
236
- RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
237
- return RuleConfigSeverity2;
238
- })(RuleConfigSeverity || {});
239
- var DEFAULT_MINIMAL_COMMIT_RULES = {
240
- "body-leading-blank": [1 /* Warning */, "always"],
241
- "body-max-length": [2 /* Error */, "always", 600],
242
- "footer-leading-blank": [1 /* Warning */, "always"],
243
- "footer-max-line-length": [2 /* Error */, "always", 150],
244
- "header-max-length": [2 /* Error */, "always", 150],
245
- "header-trim": [2 /* Error */, "always"],
246
- "subject-case": [2 /* Error */, "always", ["sentence-case"]],
247
- "subject-empty": [2 /* Error */, "never"],
248
- "subject-full-stop": [2 /* Error */, "never", "."],
249
- "subject-max-length": [2 /* Error */, "always", 150],
250
- "subject-min-length": [2 /* Error */, "always", 3],
251
- "type-case": [2 /* Error */, "always", "kebab-case"],
252
- "type-empty": [2 /* Error */, "never"],
253
- "type-enum": [
254
- 2 /* Error */,
255
- "always",
256
- Object.keys(COMMIT_TYPES)
257
- ],
258
- "type-max-length": [2 /* Error */, "always", 20],
259
- "type-min-length": [2 /* Error */, "always", 3],
260
- "scope-empty": 0 /* Disabled */,
261
- "scope-case": 0 /* Disabled */,
262
- "scope-enum": 0 /* Disabled */
263
- };
264
- var DEFAULT_MONOREPO_COMMIT_RULES = {
265
- "body-leading-blank": [1 /* Warning */, "always"],
266
- "body-max-length": [2 /* Error */, "always", 600],
267
- "footer-leading-blank": [1 /* Warning */, "always"],
268
- "footer-max-line-length": [2 /* Error */, "always", 150],
269
- "header-max-length": [2 /* Error */, "always", 150],
270
- "header-trim": [2 /* Error */, "always"],
271
- "subject-case": [2 /* Error */, "always", ["sentence-case"]],
272
- "subject-empty": [2 /* Error */, "never"],
273
- "subject-full-stop": [2 /* Error */, "never", "."],
274
- "subject-max-length": [2 /* Error */, "always", 150],
275
- "subject-min-length": [2 /* Error */, "always", 3],
276
- "type-case": [2 /* Error */, "always", "kebab-case"],
277
- "type-empty": [2 /* Error */, "never"],
278
- "type-enum": [
279
- 2 /* Error */,
280
- "always",
281
- Object.keys(COMMIT_TYPES)
282
- ],
283
- "type-max-length": [2 /* Error */, "always", 20],
284
- "type-min-length": [2 /* Error */, "always", 3],
285
- "scope-case": [2 /* Error */, "always", ["kebab-case"]],
286
- "scope-empty": [2 /* Error */, "never"]
287
- };
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
- exports.COMMIT_TYPES = COMMIT_TYPES; exports.DEFAULT_MINIMAL_COMMIT_QUESTIONS = DEFAULT_MINIMAL_COMMIT_QUESTIONS; exports.DEFAULT_MONOREPO_COMMIT_QUESTIONS = DEFAULT_MONOREPO_COMMIT_QUESTIONS; exports.DEFAULT_COMMIT_PROMPT_MESSAGES = DEFAULT_COMMIT_PROMPT_MESSAGES; exports.DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT = DEFAULT_MINIMAL_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_MINIMAL_COMMIT_SETTINGS = DEFAULT_MINIMAL_COMMIT_SETTINGS; exports.DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT = DEFAULT_MONOREPO_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_MONOREPO_COMMIT_SETTINGS = DEFAULT_MONOREPO_COMMIT_SETTINGS; exports.RuleConfigSeverity = RuleConfigSeverity; exports.DEFAULT_MINIMAL_COMMIT_RULES = DEFAULT_MINIMAL_COMMIT_RULES; exports.DEFAULT_MONOREPO_COMMIT_RULES = DEFAULT_MONOREPO_COMMIT_RULES;