@storm-software/git-tools 2.131.7 → 2.131.9
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 +1 -1
- package/bin/git.cjs +79 -96
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +79 -95
- package/bin/git.js.map +1 -1
- package/dist/{chunk-VOWQJXPC.cjs → chunk-B35TFDAA.cjs} +37 -2
- package/dist/{chunk-ZDXX5TWI.js → chunk-FPSN3POD.js} +37 -3
- package/dist/index.cjs +20 -16
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +20 -16
- package/dist/release/config.d.cts +3 -5
- package/dist/release/config.d.ts +3 -5
- package/dist/release/config.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/git.cjs
CHANGED
|
@@ -54,18 +54,17 @@ var utils = require('nx/src/tasks-runner/utils');
|
|
|
54
54
|
var execCommand_js = require('nx/src/command-line/release/utils/exec-command.js');
|
|
55
55
|
var git = require('nx/src/command-line/release/utils/git');
|
|
56
56
|
var semver = require('semver');
|
|
57
|
-
var clone = require('nanoclone');
|
|
58
57
|
var release = require('nx/release');
|
|
59
58
|
var versionPlans = require('nx/src/command-line/release/config/version-plans');
|
|
60
59
|
var printChanges_js = require('nx/src/command-line/release/utils/print-changes.js');
|
|
61
60
|
var releaseGraph = require('nx/src/command-line/release/utils/release-graph');
|
|
62
61
|
var versionPlanUtils = require('nx/src/command-line/release/utils/version-plan-utils');
|
|
63
|
-
var nxJson = require('nx/src/config/nx-json');
|
|
64
62
|
var tree = require('nx/src/generators/tree');
|
|
65
63
|
var fileMapUtils = require('nx/src/project-graph/file-map-utils');
|
|
66
64
|
var importsPlugin = require('prettier-plugin-organize-imports');
|
|
67
65
|
var DefaultChangelogRenderer = require('nx/release/changelog-renderer');
|
|
68
66
|
var conventionalCommits = require('nx/src/command-line/release/config/conventional-commits');
|
|
67
|
+
var nxJson = require('nx/src/config/nx-json');
|
|
69
68
|
var findMatchingProjects = require('nx/src/utils/find-matching-projects');
|
|
70
69
|
var config_js = require('nx/src/command-line/release/config/config.js');
|
|
71
70
|
var deriveSpecifierFromConventionalCommits = require('nx/src/command-line/release/version/derive-specifier-from-conventional-commits');
|
|
@@ -94,7 +93,6 @@ var updateSection__default = /*#__PURE__*/_interopDefault(updateSection);
|
|
|
94
93
|
var axios__default = /*#__PURE__*/_interopDefault(axios);
|
|
95
94
|
var chalk__default = /*#__PURE__*/_interopDefault(chalk);
|
|
96
95
|
var semver__default = /*#__PURE__*/_interopDefault(semver);
|
|
97
|
-
var clone__default = /*#__PURE__*/_interopDefault(clone);
|
|
98
96
|
var importsPlugin__default = /*#__PURE__*/_interopDefault(importsPlugin);
|
|
99
97
|
var DefaultChangelogRenderer__default = /*#__PURE__*/_interopDefault(DefaultChangelogRenderer);
|
|
100
98
|
|
|
@@ -3355,8 +3353,6 @@ var DEFAULT_VERSION_RELEASE_CONFIG = {
|
|
|
3355
3353
|
};
|
|
3356
3354
|
var DEFAULT_CHANGELOG_RELEASE_CONFIG = {
|
|
3357
3355
|
createRelease: "github",
|
|
3358
|
-
entryWhenNoChanges: "This was a version bump only for {projectName} to align it with other projects, there were no code changes.",
|
|
3359
|
-
file: false,
|
|
3360
3356
|
renderOptions: {
|
|
3361
3357
|
authors: false,
|
|
3362
3358
|
commitReferences: true,
|
|
@@ -3559,6 +3555,41 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3559
3555
|
})
|
|
3560
3556
|
);
|
|
3561
3557
|
}
|
|
3558
|
+
function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
|
|
3559
|
+
let nxJson$1 = {};
|
|
3560
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunk4ILBJTRR_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3561
|
+
nxJson$1 = nxJson.readNxJson();
|
|
3562
|
+
}
|
|
3563
|
+
const baseConfig = chunk4ILBJTRR_cjs.defu(
|
|
3564
|
+
{
|
|
3565
|
+
changelog: {
|
|
3566
|
+
renderOptions: {
|
|
3567
|
+
workspaceConfig
|
|
3568
|
+
}
|
|
3569
|
+
},
|
|
3570
|
+
groups: {}
|
|
3571
|
+
},
|
|
3572
|
+
omit(releaseConfig, ["groups"]),
|
|
3573
|
+
nxJson$1.release ? omit(nxJson$1.release, ["groups"]) : {},
|
|
3574
|
+
omit(DEFAULT_RELEASE_CONFIG, ["groups"])
|
|
3575
|
+
);
|
|
3576
|
+
let groups = {};
|
|
3577
|
+
if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
|
|
3578
|
+
groups = releaseConfig.groups;
|
|
3579
|
+
} else if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
|
|
3580
|
+
groups = nxJson$1.release.groups;
|
|
3581
|
+
} else {
|
|
3582
|
+
groups = DEFAULT_RELEASE_CONFIG.groups;
|
|
3583
|
+
}
|
|
3584
|
+
return {
|
|
3585
|
+
...baseConfig,
|
|
3586
|
+
groups: getReleaseGroupConfig(
|
|
3587
|
+
projectGraph,
|
|
3588
|
+
{ ...baseConfig, groups },
|
|
3589
|
+
workspaceConfig
|
|
3590
|
+
)
|
|
3591
|
+
};
|
|
3592
|
+
}
|
|
3562
3593
|
var StormReleaseGroupProcessor = class extends releaseGroupProcessor.ReleaseGroupProcessor {
|
|
3563
3594
|
constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
|
|
3564
3595
|
super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
|
|
@@ -4227,68 +4258,21 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4227
4258
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
4228
4259
|
);
|
|
4229
4260
|
}
|
|
4230
|
-
let nxJson$1;
|
|
4231
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(chunk4ILBJTRR_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
4232
|
-
nxJson$1 = nxJson.readNxJson();
|
|
4233
|
-
}
|
|
4234
|
-
const config5 = chunk4ILBJTRR_cjs.defu(
|
|
4235
|
-
{
|
|
4236
|
-
changelog: {
|
|
4237
|
-
renderOptions: {
|
|
4238
|
-
workspaceConfig
|
|
4239
|
-
}
|
|
4240
|
-
}
|
|
4241
|
-
},
|
|
4242
|
-
{
|
|
4243
|
-
groups: getReleaseGroupConfig(
|
|
4244
|
-
projectGraph,
|
|
4245
|
-
releaseConfig,
|
|
4246
|
-
workspaceConfig
|
|
4247
|
-
)
|
|
4248
|
-
},
|
|
4249
|
-
{
|
|
4250
|
-
groups: getReleaseGroupConfig(
|
|
4251
|
-
projectGraph,
|
|
4252
|
-
nxJson$1.release ?? {},
|
|
4253
|
-
workspaceConfig
|
|
4254
|
-
)
|
|
4255
|
-
},
|
|
4256
|
-
omit(releaseConfig, ["groups"]),
|
|
4257
|
-
nxJson$1.release ? omit(nxJson$1.release, ["groups"]) : {},
|
|
4258
|
-
omit(DEFAULT_RELEASE_CONFIG, ["groups"])
|
|
4259
|
-
);
|
|
4260
|
-
const normalizedConfig = clone__default.default(config5);
|
|
4261
|
-
if (workspaceConfig.preid) {
|
|
4262
|
-
normalizedConfig.groups = Object.fromEntries(
|
|
4263
|
-
Object.entries(normalizedConfig.groups ?? {}).map(([name, group]) => {
|
|
4264
|
-
return [
|
|
4265
|
-
name,
|
|
4266
|
-
{
|
|
4267
|
-
...group,
|
|
4268
|
-
version: {
|
|
4269
|
-
...group.version,
|
|
4270
|
-
preid: workspaceConfig.preid
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
];
|
|
4274
|
-
})
|
|
4275
|
-
);
|
|
4276
|
-
}
|
|
4277
4261
|
return new _StormReleaseClient(
|
|
4278
4262
|
projectGraph,
|
|
4279
|
-
|
|
4280
|
-
|
|
4263
|
+
getReleaseConfig(
|
|
4264
|
+
projectGraph,
|
|
4265
|
+
releaseConfig,
|
|
4266
|
+
workspaceConfig,
|
|
4267
|
+
ignoreNxJsonConfig
|
|
4268
|
+
),
|
|
4281
4269
|
workspaceConfig
|
|
4282
4270
|
);
|
|
4283
4271
|
}
|
|
4284
|
-
/**
|
|
4285
|
-
* The release configuration used by this release client.
|
|
4286
|
-
*/
|
|
4287
|
-
config;
|
|
4288
4272
|
/**
|
|
4289
4273
|
* The normalized release configuration used by this release client.
|
|
4290
4274
|
*/
|
|
4291
|
-
|
|
4275
|
+
releaseConfig;
|
|
4292
4276
|
/**
|
|
4293
4277
|
* The workspace configuration used by this release client.
|
|
4294
4278
|
*/
|
|
@@ -4313,16 +4297,15 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4313
4297
|
* @param ignoreNxJsonConfig - Whether to ignore the nx.json configuration and use only the provided {@link releaseConfig}. Default is false.
|
|
4314
4298
|
* @param workspaceConfig - Optional Storm workspace configuration object for logging purposes.
|
|
4315
4299
|
*/
|
|
4316
|
-
constructor(projectGraph,
|
|
4317
|
-
super(
|
|
4300
|
+
constructor(projectGraph, releaseConfig, workspaceConfig) {
|
|
4301
|
+
super(releaseConfig, true);
|
|
4318
4302
|
chunk4ILBJTRR_cjs.writeDebug(
|
|
4319
4303
|
"Executing release with the following configuration",
|
|
4320
4304
|
workspaceConfig
|
|
4321
4305
|
);
|
|
4322
|
-
chunk4ILBJTRR_cjs.writeDebug(
|
|
4306
|
+
chunk4ILBJTRR_cjs.writeDebug(releaseConfig, workspaceConfig);
|
|
4323
4307
|
this.projectGraph = projectGraph;
|
|
4324
|
-
this.
|
|
4325
|
-
this.normalizedConfig = normalizedConfig;
|
|
4308
|
+
this.releaseConfig = releaseConfig;
|
|
4326
4309
|
this.workspaceConfig = workspaceConfig;
|
|
4327
4310
|
this.tree = new tree.FsTree(workspaceConfig.workspaceRoot, false);
|
|
4328
4311
|
this.projectConfigurations = devkit.readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
@@ -4341,7 +4324,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4341
4324
|
const releaseGraph$1 = options.releaseGraph ?? await releaseGraph.createReleaseGraph({
|
|
4342
4325
|
tree: this.tree,
|
|
4343
4326
|
projectGraph: this.projectGraph,
|
|
4344
|
-
nxReleaseConfig: this.
|
|
4327
|
+
nxReleaseConfig: this.releaseConfig,
|
|
4345
4328
|
filters: {
|
|
4346
4329
|
projects: options.projects,
|
|
4347
4330
|
groups: options.groups
|
|
@@ -4472,7 +4455,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4472
4455
|
fileMap.nonProjectFiles
|
|
4473
4456
|
) ? "*" : getProjectsAffectedByCommit(c, fileToProjectMap)
|
|
4474
4457
|
})),
|
|
4475
|
-
this.
|
|
4458
|
+
this.releaseConfig.conventionalCommits
|
|
4476
4459
|
);
|
|
4477
4460
|
chunk4ILBJTRR_cjs.writeDebug(
|
|
4478
4461
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
@@ -4486,7 +4469,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4486
4469
|
projectsVersionData: options.versionData,
|
|
4487
4470
|
releaseGroup,
|
|
4488
4471
|
projects: [project],
|
|
4489
|
-
releaseConfig: this.
|
|
4472
|
+
releaseConfig: this.releaseConfig,
|
|
4490
4473
|
projectToAdditionalDependencyBumps,
|
|
4491
4474
|
workspaceConfig: this.workspaceConfig,
|
|
4492
4475
|
ChangelogRendererClass: StormChangelogRenderer
|
|
@@ -4546,7 +4529,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4546
4529
|
fileMap.nonProjectFiles
|
|
4547
4530
|
) ? "*" : getProjectsAffectedByCommit(c, fileToProjectMap)
|
|
4548
4531
|
})),
|
|
4549
|
-
this.
|
|
4532
|
+
this.releaseConfig.conventionalCommits
|
|
4550
4533
|
);
|
|
4551
4534
|
chunk4ILBJTRR_cjs.writeDebug(
|
|
4552
4535
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
@@ -4560,7 +4543,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
4560
4543
|
projectsVersionData: options.versionData,
|
|
4561
4544
|
releaseGroup,
|
|
4562
4545
|
projects: projectNodes,
|
|
4563
|
-
releaseConfig: this.
|
|
4546
|
+
releaseConfig: this.releaseConfig,
|
|
4564
4547
|
projectToAdditionalDependencyBumps,
|
|
4565
4548
|
workspaceConfig: this.workspaceConfig,
|
|
4566
4549
|
ChangelogRendererClass: StormChangelogRenderer
|
|
@@ -4602,7 +4585,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4602
4585
|
options.releaseGraph.releaseGroups,
|
|
4603
4586
|
options.releaseGraph.releaseGroupToFilteredProjects,
|
|
4604
4587
|
options.versionData,
|
|
4605
|
-
options.gitCommitMessage || this.
|
|
4588
|
+
options.gitCommitMessage || this.releaseConfig.changelog?.git?.commitMessage || DEFAULT_COMMIT_MESSAGE
|
|
4606
4589
|
);
|
|
4607
4590
|
const changes = this.tree.listChanges();
|
|
4608
4591
|
if (!changes.length) {
|
|
@@ -4625,7 +4608,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4625
4608
|
isDryRun: !!options.dryRun,
|
|
4626
4609
|
isVerbose: !!options.verbose,
|
|
4627
4610
|
gitCommitMessages: commitMessageValues,
|
|
4628
|
-
gitCommitArgs: options.gitCommitArgs || this.
|
|
4611
|
+
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
|
|
4629
4612
|
});
|
|
4630
4613
|
latestCommit = await git.getCommitHash("HEAD");
|
|
4631
4614
|
chunk4ILBJTRR_cjs.writeDebug(
|
|
@@ -4635,8 +4618,8 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4635
4618
|
for (const tag of gitTagValues) {
|
|
4636
4619
|
await gitTag({
|
|
4637
4620
|
tag,
|
|
4638
|
-
message: options.gitTagMessage || this.
|
|
4639
|
-
additionalArgs: options.gitTagArgs || this.
|
|
4621
|
+
message: options.gitTagMessage || this.releaseConfig.changelog?.git?.tagMessage,
|
|
4622
|
+
additionalArgs: options.gitTagArgs || this.releaseConfig.changelog?.git?.tagArgs,
|
|
4640
4623
|
dryRun: options.dryRun,
|
|
4641
4624
|
verbose: options.verbose
|
|
4642
4625
|
});
|
|
@@ -4649,7 +4632,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4649
4632
|
gitRemote: options.gitRemote,
|
|
4650
4633
|
dryRun: options.dryRun,
|
|
4651
4634
|
verbose: options.verbose,
|
|
4652
|
-
additionalArgs: options.gitPushArgs || this.
|
|
4635
|
+
additionalArgs: options.gitPushArgs || this.releaseConfig.changelog?.git?.pushArgs
|
|
4653
4636
|
});
|
|
4654
4637
|
for (const postGitTask of postGitTasks) {
|
|
4655
4638
|
await postGitTask(latestCommit);
|
|
@@ -4670,7 +4653,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4670
4653
|
const releaseGraph$1 = options.releaseGraph ?? await releaseGraph.createReleaseGraph({
|
|
4671
4654
|
tree: this.tree,
|
|
4672
4655
|
projectGraph: this.projectGraph,
|
|
4673
|
-
nxReleaseConfig: this.
|
|
4656
|
+
nxReleaseConfig: this.releaseConfig,
|
|
4674
4657
|
filters: {
|
|
4675
4658
|
projects: options.projects,
|
|
4676
4659
|
groups: options.groups
|
|
@@ -4709,15 +4692,15 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4709
4692
|
if (options.deleteVersionPlans === void 0) {
|
|
4710
4693
|
options.deleteVersionPlans = false;
|
|
4711
4694
|
}
|
|
4712
|
-
if (this.
|
|
4695
|
+
if (this.releaseConfig.version?.preVersionCommand) {
|
|
4713
4696
|
chunk4ILBJTRR_cjs.writeDebug(
|
|
4714
|
-
"Executing the following pre-version command: \n" + this.
|
|
4697
|
+
"Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
|
|
4715
4698
|
this.workspaceConfig
|
|
4716
4699
|
);
|
|
4717
4700
|
try {
|
|
4718
4701
|
const childProcess2 = chunkMTAYUS7E_cjs.runAsync(
|
|
4719
4702
|
this.workspaceConfig,
|
|
4720
|
-
this.
|
|
4703
|
+
this.releaseConfig.version.preVersionCommand,
|
|
4721
4704
|
this.workspaceConfig.workspaceRoot,
|
|
4722
4705
|
{
|
|
4723
4706
|
...process.env,
|
|
@@ -4733,7 +4716,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4733
4716
|
throw new Error(
|
|
4734
4717
|
formatNxLog({
|
|
4735
4718
|
title: `The pre-version command failed. See the full output above.`,
|
|
4736
|
-
bodyLines: [this.
|
|
4719
|
+
bodyLines: [this.releaseConfig.version.preVersionCommand, e]
|
|
4737
4720
|
})
|
|
4738
4721
|
);
|
|
4739
4722
|
}
|
|
@@ -4777,14 +4760,14 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4777
4760
|
}
|
|
4778
4761
|
}
|
|
4779
4762
|
await releaseGraph$1.validate(this.tree);
|
|
4780
|
-
const commitMessage = options.gitCommitMessage || this.
|
|
4763
|
+
const commitMessage = options.gitCommitMessage || this.releaseConfig.version?.git?.commitMessage;
|
|
4781
4764
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
4782
4765
|
const additionalDeletedFiles = /* @__PURE__ */ new Set();
|
|
4783
4766
|
const processor = new StormReleaseGroupProcessor(
|
|
4784
4767
|
this.tree,
|
|
4785
4768
|
this.workspaceConfig,
|
|
4786
4769
|
this.projectGraph,
|
|
4787
|
-
this.
|
|
4770
|
+
this.releaseConfig,
|
|
4788
4771
|
releaseGraph$1,
|
|
4789
4772
|
options
|
|
4790
4773
|
);
|
|
@@ -4800,21 +4783,21 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4800
4783
|
await formatChangedFiles(this.tree);
|
|
4801
4784
|
printChanges_js.printAndFlushChanges(this.tree, !!options.dryRun);
|
|
4802
4785
|
const { changedFiles: changed, deletedFiles: deleted } = await processor.afterAllProjectsVersioned({
|
|
4803
|
-
...this.
|
|
4786
|
+
...this.releaseConfig.version.versionActionsOptions,
|
|
4804
4787
|
...options.versionActionsOptionsOverrides ?? {}
|
|
4805
4788
|
});
|
|
4806
4789
|
changed.forEach((f) => additionalChangedFiles.add(f));
|
|
4807
4790
|
deleted.forEach((f) => additionalDeletedFiles.add(f));
|
|
4808
|
-
if (this.
|
|
4791
|
+
if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
|
|
4809
4792
|
chunk4ILBJTRR_cjs.writeDebug(
|
|
4810
4793
|
`Executing the docker pre-version command:
|
|
4811
|
-
` + this.
|
|
4794
|
+
` + this.releaseConfig.docker.preVersionCommand,
|
|
4812
4795
|
this.workspaceConfig
|
|
4813
4796
|
);
|
|
4814
4797
|
try {
|
|
4815
4798
|
const childProcess2 = chunkMTAYUS7E_cjs.runAsync(
|
|
4816
4799
|
this.workspaceConfig,
|
|
4817
|
-
this.
|
|
4800
|
+
this.releaseConfig.docker.preVersionCommand,
|
|
4818
4801
|
this.workspaceConfig.workspaceRoot,
|
|
4819
4802
|
{
|
|
4820
4803
|
...process.env,
|
|
@@ -4830,7 +4813,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4830
4813
|
throw new Error(
|
|
4831
4814
|
formatNxLog({
|
|
4832
4815
|
title: `The docker pre-version command failed. See the full output above.`,
|
|
4833
|
-
bodyLines: [this.
|
|
4816
|
+
bodyLines: [this.releaseConfig.docker.preVersionCommand, e]
|
|
4834
4817
|
})
|
|
4835
4818
|
);
|
|
4836
4819
|
}
|
|
@@ -4873,7 +4856,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4873
4856
|
}
|
|
4874
4857
|
}
|
|
4875
4858
|
}
|
|
4876
|
-
if (this.
|
|
4859
|
+
if (this.releaseConfig.docker || releaseGraph$1.releaseGroups.some((rg) => rg.docker)) {
|
|
4877
4860
|
chunk4ILBJTRR_cjs.writeWarning(
|
|
4878
4861
|
formatNxLog({
|
|
4879
4862
|
title: "Warning",
|
|
@@ -4888,7 +4871,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4888
4871
|
options.dockerVersion
|
|
4889
4872
|
);
|
|
4890
4873
|
const versionData = processor.getVersionData();
|
|
4891
|
-
const gitTagValues = options.gitTag ?? this.
|
|
4874
|
+
const gitTagValues = options.gitTag ?? this.releaseConfig.version?.git?.tag ? shared.createGitTagValues(
|
|
4892
4875
|
releaseGraph$1.releaseGroups,
|
|
4893
4876
|
releaseGraph$1.releaseGroupToFilteredProjects,
|
|
4894
4877
|
versionData
|
|
@@ -4916,7 +4899,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4916
4899
|
releaseGraph: releaseGraph$1
|
|
4917
4900
|
};
|
|
4918
4901
|
}
|
|
4919
|
-
if (options.gitCommit ?? this.
|
|
4902
|
+
if (options.gitCommit ?? this.releaseConfig.version?.git?.commit) {
|
|
4920
4903
|
await commitChanges({
|
|
4921
4904
|
changedFiles,
|
|
4922
4905
|
deletedFiles,
|
|
@@ -4928,9 +4911,9 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4928
4911
|
versionData,
|
|
4929
4912
|
commitMessage
|
|
4930
4913
|
),
|
|
4931
|
-
gitCommitArgs: options.gitCommitArgs || this.
|
|
4914
|
+
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
|
|
4932
4915
|
});
|
|
4933
|
-
} else if (options.stageChanges ?? this.
|
|
4916
|
+
} else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
|
|
4934
4917
|
chunk4ILBJTRR_cjs.writeDebug(`Staging changed files with git`);
|
|
4935
4918
|
await git.gitAdd({
|
|
4936
4919
|
changedFiles,
|
|
@@ -4939,25 +4922,25 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
4939
4922
|
verbose
|
|
4940
4923
|
});
|
|
4941
4924
|
}
|
|
4942
|
-
if (options.gitTag ?? this.
|
|
4925
|
+
if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
|
|
4943
4926
|
chunk4ILBJTRR_cjs.writeDebug(`Tagging commit with git`);
|
|
4944
4927
|
for (const tag of gitTagValues) {
|
|
4945
4928
|
await gitTag({
|
|
4946
4929
|
tag,
|
|
4947
|
-
message: options.gitTagMessage || this.
|
|
4948
|
-
additionalArgs: options.gitTagArgs || this.
|
|
4930
|
+
message: options.gitTagMessage || this.releaseConfig.version?.git?.tagMessage,
|
|
4931
|
+
additionalArgs: options.gitTagArgs || this.releaseConfig.version?.git?.tagArgs,
|
|
4949
4932
|
dryRun: options.dryRun,
|
|
4950
4933
|
verbose: options.verbose
|
|
4951
4934
|
});
|
|
4952
4935
|
}
|
|
4953
4936
|
}
|
|
4954
|
-
if (options.gitPush ?? this.
|
|
4937
|
+
if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
|
|
4955
4938
|
chunk4ILBJTRR_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
|
|
4956
4939
|
await git.gitPush({
|
|
4957
4940
|
gitRemote: options.gitRemote,
|
|
4958
4941
|
dryRun: options.dryRun,
|
|
4959
4942
|
verbose: options.verbose,
|
|
4960
|
-
additionalArgs: options.gitPushArgs || this.
|
|
4943
|
+
additionalArgs: options.gitPushArgs || this.releaseConfig.version?.git?.pushArgs
|
|
4961
4944
|
});
|
|
4962
4945
|
}
|
|
4963
4946
|
return {
|