@storm-software/git-tools 2.101.3 → 2.103.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.
- package/README.md +7 -7
- package/bin/git.cjs +136 -94
- package/bin/git.js +107 -65
- package/dist/{chunk-QRP3KP65.js → chunk-232JIEVA.js} +7 -1
- package/dist/{chunk-WZADZNEI.cjs → chunk-L2C6A3XV.cjs} +58 -59
- package/dist/{chunk-WEKKNQBE.js → chunk-TFEV2FZY.js} +58 -59
- package/dist/{chunk-JPOOLWH4.js → chunk-W7SYRJE7.js} +1 -1
- package/dist/{chunk-AZCYMACD.cjs → chunk-WTMYHIID.cjs} +9 -3
- package/dist/chunk-Y7XG7IJ6.cjs +18 -0
- package/dist/commit/config.cjs +3 -3
- package/dist/commit/config.js +2 -2
- package/dist/commitlint/config.cjs +20 -20
- package/dist/commitlint/config.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/readme/templates/README.footer.md +1 -1
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.d.cts +109 -383
- package/dist/release/config.d.ts +109 -383
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +51 -191
- package/dist/types.d.ts +51 -191
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-YCY2PJXX.cjs +0 -18
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"><img src="https://
|
|
6
|
+
<div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
|
|
7
7
|
<br />
|
|
8
8
|
|
|
9
9
|
<div align="center">
|
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -33,7 +33,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
33
33
|
<!-- prettier-ignore-end -->
|
|
34
34
|
|
|
35
35
|
<div align="center">
|
|
36
|
-
<b>Be sure to ⭐ this
|
|
36
|
+
<b>Be sure to ⭐ this <a href="https://github.com/storm-software/storm-ops" target="_blank">repository on GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<br />
|
|
@@ -234,7 +234,7 @@ specification. Contributions of any kind welcome!
|
|
|
234
234
|
<br />
|
|
235
235
|
|
|
236
236
|
<div align="center">
|
|
237
|
-
<img src="https://
|
|
237
|
+
<img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
|
|
238
238
|
</div>
|
|
239
239
|
<br />
|
|
240
240
|
|
|
@@ -243,7 +243,7 @@ specification. Contributions of any kind welcome!
|
|
|
243
243
|
</div>
|
|
244
244
|
|
|
245
245
|
<div align="center">
|
|
246
|
-
<b>Fingerprint:</b>
|
|
246
|
+
<b>Fingerprint:</b> F47F 1853 BCAD DE9B 42C8 6316 9FDE EC95 47FE D106
|
|
247
247
|
</div>
|
|
248
248
|
<br />
|
|
249
249
|
|
|
@@ -266,9 +266,9 @@ channel!
|
|
|
266
266
|
|
|
267
267
|
<br />
|
|
268
268
|
|
|
269
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
269
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
270
270
|
<br />
|
|
271
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
271
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
272
272
|
|
|
273
273
|
<br />
|
|
274
274
|
|
package/bin/git.cjs
CHANGED
|
@@ -65313,6 +65313,7 @@ var _child_process = require('child_process'); var _child_process2 = _interopReq
|
|
|
65313
65313
|
// src/types.ts
|
|
65314
65314
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
65315
65315
|
var DEFAULT_COMMIT_TYPES = {
|
|
65316
|
+
/* --- Bumps version when selected --- */
|
|
65316
65317
|
chore: {
|
|
65317
65318
|
description: "Other changes that don't modify src or test files",
|
|
65318
65319
|
title: "Chore",
|
|
@@ -65323,36 +65324,16 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65323
65324
|
hidden: false
|
|
65324
65325
|
}
|
|
65325
65326
|
},
|
|
65326
|
-
|
|
65327
|
-
description: "
|
|
65328
|
-
title: "
|
|
65329
|
-
emoji: "\u{
|
|
65330
|
-
semverBump: "patch",
|
|
65331
|
-
changelog: {
|
|
65332
|
-
title: "Continuous Integration",
|
|
65333
|
-
hidden: false
|
|
65334
|
-
}
|
|
65335
|
-
},
|
|
65336
|
-
deps: {
|
|
65337
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
65338
|
-
title: "Dependencies",
|
|
65339
|
-
emoji: "\u{1F4E6} ",
|
|
65327
|
+
fix: {
|
|
65328
|
+
description: "A change that resolves an issue previously identified with the package",
|
|
65329
|
+
title: "Bug Fix",
|
|
65330
|
+
emoji: "\u{1FAB2} ",
|
|
65340
65331
|
semverBump: "patch",
|
|
65341
65332
|
changelog: {
|
|
65342
|
-
title: "
|
|
65333
|
+
title: "Bug Fixes",
|
|
65343
65334
|
hidden: false
|
|
65344
65335
|
}
|
|
65345
65336
|
},
|
|
65346
|
-
docs: {
|
|
65347
|
-
description: "A change that only includes documentation updates",
|
|
65348
|
-
title: "Documentation",
|
|
65349
|
-
emoji: "\u{1F4DC} ",
|
|
65350
|
-
semverBump: "none",
|
|
65351
|
-
changelog: {
|
|
65352
|
-
title: "Documentation",
|
|
65353
|
-
hidden: true
|
|
65354
|
-
}
|
|
65355
|
-
},
|
|
65356
65337
|
feat: {
|
|
65357
65338
|
description: "A change that adds a new feature to the package",
|
|
65358
65339
|
title: "Feature",
|
|
@@ -65363,23 +65344,13 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65363
65344
|
hidden: false
|
|
65364
65345
|
}
|
|
65365
65346
|
},
|
|
65366
|
-
|
|
65367
|
-
description: "
|
|
65368
|
-
title: "
|
|
65369
|
-
emoji: "\u{
|
|
65347
|
+
ci: {
|
|
65348
|
+
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
65349
|
+
title: "Continuous Integration",
|
|
65350
|
+
emoji: "\u{1F9F0} ",
|
|
65370
65351
|
semverBump: "patch",
|
|
65371
65352
|
changelog: {
|
|
65372
|
-
title: "
|
|
65373
|
-
hidden: false
|
|
65374
|
-
}
|
|
65375
|
-
},
|
|
65376
|
-
perf: {
|
|
65377
|
-
description: "A code change that improves performance",
|
|
65378
|
-
title: "Performance Improvement",
|
|
65379
|
-
emoji: "\u23F1\uFE0F ",
|
|
65380
|
-
semverBump: "none",
|
|
65381
|
-
changelog: {
|
|
65382
|
-
title: "Performance Improvements",
|
|
65353
|
+
title: "Continuous Integration",
|
|
65383
65354
|
hidden: false
|
|
65384
65355
|
}
|
|
65385
65356
|
},
|
|
@@ -65389,27 +65360,38 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65389
65360
|
emoji: "\u{1F9EA} ",
|
|
65390
65361
|
semverBump: "patch",
|
|
65391
65362
|
changelog: {
|
|
65392
|
-
title: "Code Improvements",
|
|
65363
|
+
title: "Source Code Improvements",
|
|
65393
65364
|
hidden: false
|
|
65394
65365
|
}
|
|
65395
65366
|
},
|
|
65396
|
-
|
|
65397
|
-
description: "
|
|
65398
|
-
title: "
|
|
65399
|
-
emoji: "\u{
|
|
65367
|
+
style: {
|
|
65368
|
+
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
65369
|
+
title: "Style Improvements",
|
|
65370
|
+
emoji: "\u{1F48E} ",
|
|
65400
65371
|
semverBump: "patch",
|
|
65401
65372
|
changelog: {
|
|
65402
|
-
title: "
|
|
65373
|
+
title: "Style Improvements",
|
|
65403
65374
|
hidden: false
|
|
65404
65375
|
}
|
|
65405
65376
|
},
|
|
65406
|
-
|
|
65407
|
-
description: "
|
|
65408
|
-
title: "
|
|
65409
|
-
emoji: "\
|
|
65410
|
-
semverBump: "
|
|
65377
|
+
perf: {
|
|
65378
|
+
description: "A code change that improves performance",
|
|
65379
|
+
title: "Performance Improvement",
|
|
65380
|
+
emoji: "\u23F1\uFE0F ",
|
|
65381
|
+
semverBump: "patch",
|
|
65382
|
+
changelog: {
|
|
65383
|
+
title: "Performance Improvements",
|
|
65384
|
+
hidden: false
|
|
65385
|
+
}
|
|
65386
|
+
},
|
|
65387
|
+
/* --- Does not bump version when selected --- */
|
|
65388
|
+
docs: {
|
|
65389
|
+
description: "A change that only includes documentation updates",
|
|
65390
|
+
title: "Documentation",
|
|
65391
|
+
emoji: "\u{1F4DC} ",
|
|
65392
|
+
semverBump: "none",
|
|
65411
65393
|
changelog: {
|
|
65412
|
-
title: "
|
|
65394
|
+
title: "Documentation",
|
|
65413
65395
|
hidden: false
|
|
65414
65396
|
}
|
|
65415
65397
|
},
|
|
@@ -65423,16 +65405,30 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65423
65405
|
hidden: true
|
|
65424
65406
|
}
|
|
65425
65407
|
},
|
|
65426
|
-
|
|
65427
|
-
|
|
65428
|
-
|
|
65429
|
-
|
|
65430
|
-
|
|
65408
|
+
/* --- Not included in commitlint but included in changelog --- */
|
|
65409
|
+
deps: {
|
|
65410
|
+
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
65411
|
+
title: "Dependencies",
|
|
65412
|
+
emoji: "\u{1F4E6} ",
|
|
65413
|
+
hidden: true,
|
|
65414
|
+
semverBump: "patch",
|
|
65431
65415
|
changelog: {
|
|
65432
|
-
title: "
|
|
65416
|
+
title: "Dependency Upgrades",
|
|
65433
65417
|
hidden: false
|
|
65434
65418
|
}
|
|
65435
65419
|
},
|
|
65420
|
+
/* --- Not included in commitlint or changelog --- */
|
|
65421
|
+
build: {
|
|
65422
|
+
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
65423
|
+
title: "Build",
|
|
65424
|
+
emoji: "\u{1F6E0} ",
|
|
65425
|
+
hidden: true,
|
|
65426
|
+
semverBump: "none",
|
|
65427
|
+
changelog: {
|
|
65428
|
+
title: "Build",
|
|
65429
|
+
hidden: true
|
|
65430
|
+
}
|
|
65431
|
+
},
|
|
65436
65432
|
release: {
|
|
65437
65433
|
description: "Publishing a commit containing a newly released version",
|
|
65438
65434
|
title: "Publish Release",
|
|
@@ -65450,7 +65446,10 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
65450
65446
|
type: "select",
|
|
65451
65447
|
title: "Commit Type",
|
|
65452
65448
|
description: "Select the commit type that best describes your changes",
|
|
65453
|
-
enum: DEFAULT_COMMIT_TYPES,
|
|
65449
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter((type) => DEFAULT_COMMIT_TYPES[type].hidden !== true).reduce((ret, type) => {
|
|
65450
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
65451
|
+
return ret;
|
|
65452
|
+
}, {}),
|
|
65454
65453
|
defaultValue: "chore",
|
|
65455
65454
|
maxLength: 20,
|
|
65456
65455
|
minLength: 3
|
|
@@ -80983,6 +80982,44 @@ function parseChangelogMarkdown(contents) {
|
|
|
80983
80982
|
}
|
|
80984
80983
|
_chunkKK4YC43Scjs.__name.call(void 0, parseChangelogMarkdown, "parseChangelogMarkdown");
|
|
80985
80984
|
|
|
80985
|
+
// src/utilities/git-utils.ts
|
|
80986
|
+
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
80987
|
+
var _execcommandjs = require('nx/src/command-line/release/utils/exec-command.js');
|
|
80988
|
+
async function gitTag({ tag, message: message2, additionalArgs, dryRun, verbose, logFn }) {
|
|
80989
|
+
logFn = logFn || console.log;
|
|
80990
|
+
const commandArgs = [
|
|
80991
|
+
"tag",
|
|
80992
|
+
// Create an annotated tag (recommended for releases here: https://git-scm.com/docs/git-tag)
|
|
80993
|
+
"--annotate",
|
|
80994
|
+
"--sign",
|
|
80995
|
+
tag,
|
|
80996
|
+
"--message",
|
|
80997
|
+
message2 || tag
|
|
80998
|
+
];
|
|
80999
|
+
if (additionalArgs) {
|
|
81000
|
+
if (Array.isArray(additionalArgs)) {
|
|
81001
|
+
commandArgs.push(...additionalArgs);
|
|
81002
|
+
} else {
|
|
81003
|
+
commandArgs.push(...additionalArgs.split(" "));
|
|
81004
|
+
}
|
|
81005
|
+
}
|
|
81006
|
+
if (verbose) {
|
|
81007
|
+
logFn(dryRun ? `Would tag the current commit in git with the following command, but --dry-run was set:` : `Tagging the current commit in git with the following command:`);
|
|
81008
|
+
logFn(`git ${commandArgs.join(" ")}`);
|
|
81009
|
+
}
|
|
81010
|
+
if (dryRun) {
|
|
81011
|
+
return "";
|
|
81012
|
+
}
|
|
81013
|
+
try {
|
|
81014
|
+
return await _execcommandjs.execCommand.call(void 0, "git", commandArgs);
|
|
81015
|
+
} catch (err) {
|
|
81016
|
+
throw new Error(`Unexpected error when creating tag ${tag}:
|
|
81017
|
+
|
|
81018
|
+
${err}`);
|
|
81019
|
+
}
|
|
81020
|
+
}
|
|
81021
|
+
_chunkKK4YC43Scjs.__name.call(void 0, gitTag, "gitTag");
|
|
81022
|
+
|
|
80986
81023
|
// src/release/changelog-renderer.ts
|
|
80987
81024
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
80988
81025
|
|
|
@@ -85155,7 +85192,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85155
85192
|
if (_nullishCoalesce(args.gitTag, () => ( nxReleaseConfig.changelog.git.tag))) {
|
|
85156
85193
|
_output.output.logSingleLine(`Tagging commit with git`);
|
|
85157
85194
|
for (const tag of gitTagValues) {
|
|
85158
|
-
await
|
|
85195
|
+
await gitTag({
|
|
85159
85196
|
tag,
|
|
85160
85197
|
message: args.gitTagMessage || nxReleaseConfig.changelog.git.tagMessage,
|
|
85161
85198
|
additionalArgs: args.gitTagArgs || nxReleaseConfig.changelog.git.tagArgs,
|
|
@@ -85471,7 +85508,7 @@ function formatGithubReleaseNotes(releaseVersion2, content, projectName, workspa
|
|
|
85471
85508
|
if (!workspaceConfig) {
|
|
85472
85509
|
return content;
|
|
85473
85510
|
}
|
|
85474
|
-
return `
|
|
85511
|
+
return `![${_optionalChain([titleCase, 'call', _236 => _236(workspaceConfig.organization), 'optionalAccess', _237 => _237.replaceAll, 'call', _238 => _238(" ", "-")])}](${workspaceConfig.release.banner})
|
|
85475
85512
|
${workspaceConfig.release.header || ""}
|
|
85476
85513
|
|
|
85477
85514
|
# ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion2.rawVersion}
|
|
@@ -85480,7 +85517,7 @@ We at [${titleCase(workspaceConfig.organization)}](${workspaceConfig.homepage})
|
|
|
85480
85517
|
|
|
85481
85518
|
These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}). You can find guides, API references, and other documentation around this release (and much more) on [our documentation site](${workspaceConfig.docs}).
|
|
85482
85519
|
|
|
85483
|
-
If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call',
|
|
85520
|
+
If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call', _239 => _239(projectName), 'optionalAccess', _240 => _240.replaceAll, 'call', _241 => _241(" ", "%20")])}%20` : ""}v${releaseVersion2.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion2.gitTag}) about this release!
|
|
85484
85521
|
|
|
85485
85522
|
## Release Notes
|
|
85486
85523
|
|
|
@@ -85503,6 +85540,9 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
|
|
|
85503
85540
|
projectsRelationship: "independent",
|
|
85504
85541
|
releaseTagPattern: "{projectName}@{version}",
|
|
85505
85542
|
changelog: {
|
|
85543
|
+
git: {
|
|
85544
|
+
tag: true
|
|
85545
|
+
},
|
|
85506
85546
|
createRelease: "github",
|
|
85507
85547
|
entryWhenNoChanges: false,
|
|
85508
85548
|
file: "{projectRoot}/CHANGELOG.md",
|
|
@@ -85524,6 +85564,9 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
|
|
|
85524
85564
|
var DEFAULT_RELEASE_CONFIG = {
|
|
85525
85565
|
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
|
|
85526
85566
|
changelog: {
|
|
85567
|
+
git: {
|
|
85568
|
+
tag: true
|
|
85569
|
+
},
|
|
85527
85570
|
automaticFromRef: true,
|
|
85528
85571
|
workspaceChangelog: false,
|
|
85529
85572
|
projectChangelogs: {
|
|
@@ -85575,7 +85618,7 @@ async function releaseVersion(config, args) {
|
|
|
85575
85618
|
});
|
|
85576
85619
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85577
85620
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85578
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
85621
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => ( _chunkKX7Y62QYcjs.findWorkspaceRoot.call(void 0, )));
|
|
85579
85622
|
if (args.verbose) {
|
|
85580
85623
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85581
85624
|
}
|
|
@@ -85583,7 +85626,7 @@ async function releaseVersion(config, args) {
|
|
|
85583
85626
|
if (configError) {
|
|
85584
85627
|
return await _configjs.handleNxReleaseConfigError.call(void 0, configError);
|
|
85585
85628
|
}
|
|
85586
|
-
if ((args.gitCommit === void 0 || args.gitTag === void 0 || args.stageChanges === void 0) && _optionalChain([nxJson, 'access',
|
|
85629
|
+
if ((args.gitCommit === void 0 || args.gitTag === void 0 || args.stageChanges === void 0) && _optionalChain([nxJson, 'access', _243 => _243.release, 'optionalAccess', _244 => _244.git])) {
|
|
85587
85630
|
await _resolvenxjsonerrormessagejs.resolveNxJsonConfigErrorMessage.call(void 0, [
|
|
85588
85631
|
"release",
|
|
85589
85632
|
"git"
|
|
@@ -85598,10 +85641,10 @@ async function releaseVersion(config, args) {
|
|
|
85598
85641
|
}
|
|
85599
85642
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
85600
85643
|
const versionData = {};
|
|
85601
|
-
const commitMessage = args.gitCommitMessage || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85644
|
+
const commitMessage = args.gitCommitMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _245 => _245.version, 'access', _246 => _246.git, 'access', _247 => _247.commitMessage]);
|
|
85602
85645
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85603
85646
|
const generatorCallbacks = [];
|
|
85604
|
-
if (_optionalChain([args, 'access',
|
|
85647
|
+
if (_optionalChain([args, 'access', _248 => _248.projects, 'optionalAccess', _249 => _249.length])) {
|
|
85605
85648
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85606
85649
|
for (const releaseGroup of releaseGroups) {
|
|
85607
85650
|
const releaseGroupName = releaseGroup.name;
|
|
@@ -85641,7 +85684,7 @@ async function releaseVersion(config, args) {
|
|
|
85641
85684
|
});
|
|
85642
85685
|
}
|
|
85643
85686
|
}
|
|
85644
|
-
const gitTagValues2 = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85687
|
+
const gitTagValues2 = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _250 => _250.version, 'access', _251 => _251.git, 'access', _252 => _252.tag]))) ? _sharedjs.createGitTagValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData) : [];
|
|
85645
85688
|
_sharedjs.handleDuplicateGitTags.call(void 0, gitTagValues2);
|
|
85646
85689
|
printAndFlushChanges2(config, tree, !!args.dryRun);
|
|
85647
85690
|
for (const generatorCallback of generatorCallbacks) {
|
|
@@ -85658,15 +85701,15 @@ async function releaseVersion(config, args) {
|
|
|
85658
85701
|
projectsVersionData: versionData
|
|
85659
85702
|
};
|
|
85660
85703
|
}
|
|
85661
|
-
if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85704
|
+
if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _253 => _253.version, 'access', _254 => _254.git, 'access', _255 => _255.commit])))) {
|
|
85662
85705
|
await _sharedjs.commitChanges.call(void 0, {
|
|
85663
85706
|
changedFiles: changedFiles2,
|
|
85664
85707
|
isDryRun: !!args.dryRun,
|
|
85665
85708
|
isVerbose: !!args.verbose,
|
|
85666
85709
|
gitCommitMessages: _sharedjs.createCommitMessageValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData, commitMessage),
|
|
85667
|
-
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85710
|
+
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.commitArgs])
|
|
85668
85711
|
});
|
|
85669
|
-
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85712
|
+
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.stageChanges])))) {
|
|
85670
85713
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85671
85714
|
await _gitjs.gitAdd.call(void 0, {
|
|
85672
85715
|
changedFiles: changedFiles2,
|
|
@@ -85674,13 +85717,13 @@ async function releaseVersion(config, args) {
|
|
|
85674
85717
|
verbose: args.verbose
|
|
85675
85718
|
});
|
|
85676
85719
|
}
|
|
85677
|
-
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85720
|
+
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _262 => _262.version, 'access', _263 => _263.git, 'access', _264 => _264.tag])))) {
|
|
85678
85721
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85679
85722
|
for (const tag of gitTagValues2) {
|
|
85680
|
-
await
|
|
85723
|
+
await gitTag({
|
|
85681
85724
|
tag,
|
|
85682
|
-
message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85683
|
-
additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85725
|
+
message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _265 => _265.version, 'access', _266 => _266.git, 'access', _267 => _267.tagMessage]),
|
|
85726
|
+
additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _268 => _268.version, 'access', _269 => _269.git, 'access', _270 => _270.tagArgs]),
|
|
85684
85727
|
dryRun: args.dryRun,
|
|
85685
85728
|
verbose: args.verbose
|
|
85686
85729
|
});
|
|
@@ -85727,7 +85770,7 @@ async function releaseVersion(config, args) {
|
|
|
85727
85770
|
});
|
|
85728
85771
|
}
|
|
85729
85772
|
}
|
|
85730
|
-
const gitTagValues = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85773
|
+
const gitTagValues = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _271 => _271.version, 'access', _272 => _272.git, 'access', _273 => _273.tag]))) ? _sharedjs.createGitTagValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData) : [];
|
|
85731
85774
|
_sharedjs.handleDuplicateGitTags.call(void 0, gitTagValues);
|
|
85732
85775
|
printAndFlushChanges2(config, tree, !!args.dryRun);
|
|
85733
85776
|
for (const generatorCallback of generatorCallbacks) {
|
|
@@ -85736,10 +85779,10 @@ async function releaseVersion(config, args) {
|
|
|
85736
85779
|
let workspaceVersion = void 0;
|
|
85737
85780
|
if (releaseGroups.length === 1) {
|
|
85738
85781
|
const releaseGroup = releaseGroups[0];
|
|
85739
|
-
if (_optionalChain([releaseGroup, 'optionalAccess',
|
|
85782
|
+
if (_optionalChain([releaseGroup, 'optionalAccess', _274 => _274.projectsRelationship]) === "fixed") {
|
|
85740
85783
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85741
85784
|
if (releaseGroupProjectNames.length > 0 && releaseGroupProjectNames[0]) {
|
|
85742
|
-
workspaceVersion = _optionalChain([versionData, 'access',
|
|
85785
|
+
workspaceVersion = _optionalChain([versionData, 'access', _275 => _275[releaseGroupProjectNames[0]], 'optionalAccess', _276 => _276.newVersion]);
|
|
85743
85786
|
}
|
|
85744
85787
|
}
|
|
85745
85788
|
}
|
|
@@ -85753,15 +85796,15 @@ async function releaseVersion(config, args) {
|
|
|
85753
85796
|
projectsVersionData: versionData
|
|
85754
85797
|
};
|
|
85755
85798
|
}
|
|
85756
|
-
if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85799
|
+
if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _277 => _277.version, 'access', _278 => _278.git, 'access', _279 => _279.commit])))) {
|
|
85757
85800
|
await _sharedjs.commitChanges.call(void 0, {
|
|
85758
85801
|
changedFiles,
|
|
85759
85802
|
isDryRun: !!args.dryRun,
|
|
85760
85803
|
isVerbose: !!args.verbose,
|
|
85761
85804
|
gitCommitMessages: _sharedjs.createCommitMessageValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData, commitMessage),
|
|
85762
|
-
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85805
|
+
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.commitArgs])
|
|
85763
85806
|
});
|
|
85764
|
-
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85807
|
+
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.stageChanges])))) {
|
|
85765
85808
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85766
85809
|
await _gitjs.gitAdd.call(void 0, {
|
|
85767
85810
|
changedFiles,
|
|
@@ -85769,13 +85812,13 @@ async function releaseVersion(config, args) {
|
|
|
85769
85812
|
verbose: args.verbose
|
|
85770
85813
|
});
|
|
85771
85814
|
}
|
|
85772
|
-
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85815
|
+
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _286 => _286.version, 'access', _287 => _287.git, 'access', _288 => _288.tag])))) {
|
|
85773
85816
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85774
85817
|
for (const tag of gitTagValues) {
|
|
85775
|
-
await
|
|
85818
|
+
await gitTag({
|
|
85776
85819
|
tag,
|
|
85777
|
-
message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85778
|
-
additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85820
|
+
message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _289 => _289.version, 'access', _290 => _290.git, 'access', _291 => _291.tagMessage]),
|
|
85821
|
+
additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _292 => _292.version, 'access', _293 => _293.git, 'access', _294 => _294.tagArgs]),
|
|
85779
85822
|
dryRun: args.dryRun,
|
|
85780
85823
|
verbose: args.verbose
|
|
85781
85824
|
});
|
|
@@ -85798,7 +85841,7 @@ async function releaseVersion(config, args) {
|
|
|
85798
85841
|
}
|
|
85799
85842
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85800
85843
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85801
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
85844
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => ( _chunkKX7Y62QYcjs.findWorkspaceRoot.call(void 0, )));
|
|
85802
85845
|
const generatorOptions = {
|
|
85803
85846
|
// Always ensure a string to avoid generator schema validation errors
|
|
85804
85847
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85826,11 +85869,11 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85826
85869
|
for (const f of changes) {
|
|
85827
85870
|
if (f.type === "CREATE") {
|
|
85828
85871
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85829
|
-
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access',
|
|
85872
|
+
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
|
|
85830
85873
|
} else if (f.type === "UPDATE") {
|
|
85831
85874
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85832
85875
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85833
|
-
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access',
|
|
85876
|
+
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _299 => _299.content, 'optionalAccess', _300 => _300.toString, 'call', _301 => _301()]) || "");
|
|
85834
85877
|
} else if (f.type === "DELETE") {
|
|
85835
85878
|
throw new Error("Unexpected DELETE change, please report this as an issue");
|
|
85836
85879
|
}
|
|
@@ -85909,9 +85952,9 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85909
85952
|
- From: ${from}
|
|
85910
85953
|
- To: ${to}
|
|
85911
85954
|
`, config);
|
|
85912
|
-
if (_optionalChain([nxJson, 'access',
|
|
85955
|
+
if (_optionalChain([nxJson, 'access', _302 => _302.release, 'optionalAccess', _303 => _303.groups])) {
|
|
85913
85956
|
nxJson.release.groups = Object.keys(nxJson.release.groups).reduce((ret, groupName) => {
|
|
85914
|
-
const groupConfig = _optionalChain([nxJson, 'access',
|
|
85957
|
+
const groupConfig = _optionalChain([nxJson, 'access', _304 => _304.release, 'optionalAccess', _305 => _305.groups, 'optionalAccess', _306 => _306[groupName]]);
|
|
85915
85958
|
ret[groupName] = _chunkP2CHIYIKcjs.defu.call(void 0, groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
|
|
85916
85959
|
return ret;
|
|
85917
85960
|
}, {});
|
|
@@ -85929,12 +85972,11 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85929
85972
|
deleteVersionPlans: false,
|
|
85930
85973
|
stageChanges: true,
|
|
85931
85974
|
gitCommit: false,
|
|
85932
|
-
gitTag: false,
|
|
85933
85975
|
nxReleaseConfig
|
|
85934
85976
|
});
|
|
85935
85977
|
await releaseChangelog({
|
|
85936
85978
|
...options,
|
|
85937
|
-
version: _optionalChain([nxReleaseConfig, 'optionalAccess',
|
|
85979
|
+
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _307 => _307.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
85938
85980
|
versionData: projectsVersionData,
|
|
85939
85981
|
dryRun: false,
|
|
85940
85982
|
verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel),
|
|
@@ -85947,7 +85989,7 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85947
85989
|
if (options.skipPublish) {
|
|
85948
85990
|
_chunkKX7Y62QYcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
85949
85991
|
} else {
|
|
85950
|
-
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access',
|
|
85992
|
+
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.newVersion]));
|
|
85951
85993
|
if (changedProjects.length > 0) {
|
|
85952
85994
|
_chunkKX7Y62QYcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
85953
85995
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
@@ -85957,12 +85999,12 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
85957
85999
|
dryRun: !!options.dryRun,
|
|
85958
86000
|
verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel)
|
|
85959
86001
|
});
|
|
85960
|
-
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access',
|
|
86002
|
+
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _310 => _310[key], 'optionalAccess', _311 => _311.code]) && _optionalChain([result2, 'access', _312 => _312[key], 'optionalAccess', _313 => _313.code]) > 0);
|
|
85961
86003
|
if (failedProjects.length > 0) {
|
|
85962
86004
|
throw new Error(`The Storm release process was not completed successfully! One or more errors occured while running the \`nx-release-publish\` executor tasks.
|
|
85963
86005
|
|
|
85964
86006
|
Please review the workflow details for the following project(s):
|
|
85965
|
-
${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access',
|
|
86007
|
+
${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _314 => _314[failedProject], 'optionalAccess', _315 => _315.code])})`).join("\n")}
|
|
85966
86008
|
`);
|
|
85967
86009
|
}
|
|
85968
86010
|
} else {
|