@storm-software/git-tools 2.131.35 → 2.131.36
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/bin/{chunk-DDC7F5UZ.js → chunk-5UB7ENM7.js} +3 -3
- package/bin/{chunk-DDC7F5UZ.js.map → chunk-5UB7ENM7.js.map} +1 -1
- package/bin/{chunk-3NC3GIM6.js → chunk-6RJW5N5U.js} +3 -3
- package/bin/{chunk-3NC3GIM6.js.map → chunk-6RJW5N5U.js.map} +1 -1
- package/bin/{chunk-EQ7Z3P24.js → chunk-7DRPNOP2.js} +3 -3
- package/bin/{chunk-EQ7Z3P24.js.map → chunk-7DRPNOP2.js.map} +1 -1
- package/bin/{chunk-Y7LS5W35.cjs → chunk-C53M6LQP.cjs} +5 -5
- package/bin/{chunk-Y7LS5W35.cjs.map → chunk-C53M6LQP.cjs.map} +1 -1
- package/bin/{chunk-U7X6DX3D.cjs → chunk-CKFNJZL7.cjs} +4 -4
- package/bin/{chunk-U7X6DX3D.cjs.map → chunk-CKFNJZL7.cjs.map} +1 -1
- package/bin/{chunk-AY74OKG5.cjs → chunk-DPV4WJQX.cjs} +6 -6
- package/bin/{chunk-AY74OKG5.cjs.map → chunk-DPV4WJQX.cjs.map} +1 -1
- package/bin/{chunk-ZMVLIEV4.cjs → chunk-F7DR27M6.cjs} +4 -4
- package/bin/{chunk-ZMVLIEV4.cjs.map → chunk-F7DR27M6.cjs.map} +1 -1
- package/bin/{chunk-M4LUWNQR.cjs → chunk-MEDWSATF.cjs} +4 -4
- package/bin/chunk-MEDWSATF.cjs.map +1 -0
- package/bin/{chunk-O5U4PY3Z.js → chunk-OCSAALFK.js} +3 -3
- package/bin/{chunk-O5U4PY3Z.js.map → chunk-OCSAALFK.js.map} +1 -1
- package/bin/{chunk-3I7DR63M.js → chunk-OGQQZKVO.js} +3 -3
- package/bin/{chunk-3I7DR63M.js.map → chunk-OGQQZKVO.js.map} +1 -1
- package/bin/{chunk-O3X5QPCQ.cjs → chunk-P6GZDOJU.cjs} +4 -4
- package/bin/{chunk-O3X5QPCQ.cjs.map → chunk-P6GZDOJU.cjs.map} +1 -1
- package/bin/{chunk-FC4WBB3T.js → chunk-SV32VEVP.js} +3 -3
- package/bin/{chunk-FC4WBB3T.js.map → chunk-SV32VEVP.js.map} +1 -1
- package/bin/{chunk-SJQTSJGU.js → chunk-TPKTGVGN.js} +3 -3
- package/bin/{chunk-SJQTSJGU.js.map → chunk-TPKTGVGN.js.map} +1 -1
- package/bin/{chunk-6AN4QYAN.cjs → chunk-WSO2CLZQ.cjs} +4 -4
- package/bin/{chunk-6AN4QYAN.cjs.map → chunk-WSO2CLZQ.cjs.map} +1 -1
- package/bin/{chunk-B56KWU7H.cjs → chunk-X6OUWIBF.cjs} +4 -4
- package/bin/{chunk-B56KWU7H.cjs.map → chunk-X6OUWIBF.cjs.map} +1 -1
- package/bin/{chunk-BPY6SBLC.js → chunk-Z6NRSWOS.js} +4 -4
- package/bin/chunk-Z6NRSWOS.js.map +1 -0
- package/bin/git.cjs +155 -155
- package/bin/git.js +8 -8
- package/bin/post-checkout.cjs +7 -7
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +7 -7
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +7 -7
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +7 -7
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +7 -7
- package/bin/pre-install.js +2 -2
- package/bin/pre-push.cjs +7 -7
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +2 -2
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-MWFYZ6C5.cjs → chunk-2EDGEFIN.cjs} +2 -2
- package/dist/{chunk-YEPJCR66.js → chunk-4CNI2AUV.js} +1 -1
- package/dist/{chunk-ISJNCGTW.js → chunk-65JOK2FH.js} +2 -2
- package/dist/{chunk-MTEWMWXP.js → chunk-7MPJQQWV.js} +1 -1
- package/dist/{chunk-S57KI3QJ.cjs → chunk-EDWBTVLU.cjs} +2 -2
- package/dist/{chunk-QHOVDHJS.cjs → chunk-H7X5GPVB.cjs} +2 -2
- package/dist/{chunk-VXHEKX5N.js → chunk-I466BEBD.js} +1 -1
- package/dist/{chunk-F67AF77W.cjs → chunk-KPQYZBLU.cjs} +2 -2
- package/dist/{chunk-64WGOUGZ.cjs → chunk-N72HVHEL.cjs} +12 -12
- package/dist/{chunk-A3IJ22YJ.js → chunk-OUBVN7NJ.js} +1 -1
- package/dist/{chunk-3YY3EGSK.cjs → chunk-OUEVASU4.cjs} +2 -2
- package/dist/{chunk-AOPYQZJZ.cjs → chunk-R4FXLDRM.cjs} +2 -2
- package/dist/{chunk-GN5PPUYJ.js → chunk-SCUQMGQU.js} +1 -1
- package/dist/{chunk-RKA52WU4.js → chunk-TPQUURZQ.js} +1 -1
- package/dist/{chunk-RA7GZDUN.js → chunk-UEIRCOPF.js} +1 -1
- package/dist/{chunk-XMOG277R.cjs → chunk-VB32QNN4.cjs} +4 -4
- package/dist/{chunk-JTMGWUUD.js → chunk-VI7BWUAD.js} +1 -1
- package/dist/{chunk-C4226MIL.cjs → chunk-XYYQXO3Y.cjs} +3 -3
- package/dist/index.cjs +33 -33
- package/dist/index.js +9 -9
- package/dist/release/config.cjs +19 -19
- package/dist/release/config.js +2 -2
- package/package.json +7 -7
- package/bin/chunk-BPY6SBLC.js.map +0 -1
- package/bin/chunk-M4LUWNQR.cjs.map +0 -1
package/bin/git.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
var
|
|
4
|
+
var chunkP6GZDOJU_cjs = require('./chunk-P6GZDOJU.cjs');
|
|
5
|
+
var chunkF7DR27M6_cjs = require('./chunk-F7DR27M6.cjs');
|
|
6
|
+
var chunkX6OUWIBF_cjs = require('./chunk-X6OUWIBF.cjs');
|
|
7
|
+
var chunkWSO2CLZQ_cjs = require('./chunk-WSO2CLZQ.cjs');
|
|
8
|
+
require('./chunk-C53M6LQP.cjs');
|
|
9
|
+
var chunkDPV4WJQX_cjs = require('./chunk-DPV4WJQX.cjs');
|
|
10
10
|
require('./chunk-YHZNDNCW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkCKFNJZL7_cjs = require('./chunk-CKFNJZL7.cjs');
|
|
12
12
|
var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkMEDWSATF_cjs = require('./chunk-MEDWSATF.cjs');
|
|
14
14
|
var TOML = require('@ltd/j-toml');
|
|
15
15
|
var commander = require('commander');
|
|
16
16
|
require('@inquirer/checkbox');
|
|
@@ -430,9 +430,9 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
430
430
|
|
|
431
431
|
// ../conventional-changelog/src/index.ts
|
|
432
432
|
async function createPreset(variant = "monorepo") {
|
|
433
|
-
const workspaceConfig = await
|
|
433
|
+
const workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
434
434
|
if (variant === "minimal") {
|
|
435
|
-
return
|
|
435
|
+
return chunkMEDWSATF_cjs.defu(
|
|
436
436
|
await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
|
|
437
437
|
{
|
|
438
438
|
...COMMIT_CONFIGS.minimal,
|
|
@@ -446,7 +446,7 @@ async function createPreset(variant = "monorepo") {
|
|
|
446
446
|
);
|
|
447
447
|
}
|
|
448
448
|
const nxScopes = await getNxScopes({ config: workspaceConfig });
|
|
449
|
-
return
|
|
449
|
+
return chunkMEDWSATF_cjs.defu(
|
|
450
450
|
await createBasePreset__default.default({
|
|
451
451
|
...COMMIT_CONFIGS.monorepo.changelogs.props,
|
|
452
452
|
scope: nxScopes
|
|
@@ -1010,7 +1010,7 @@ async function lint(message, config5) {
|
|
|
1010
1010
|
// src/commitlint/run.ts
|
|
1011
1011
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
1012
1012
|
async function runCommitLint(workspaceConfig, options) {
|
|
1013
|
-
|
|
1013
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
1014
1014
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
1015
1015
|
workspaceConfig
|
|
1016
1016
|
);
|
|
@@ -1018,7 +1018,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1018
1018
|
if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
|
|
1019
1019
|
commitMessage = options.message;
|
|
1020
1020
|
} else {
|
|
1021
|
-
const commitFile =
|
|
1021
|
+
const commitFile = chunkMEDWSATF_cjs.joinPaths(
|
|
1022
1022
|
workspaceConfig.workspaceRoot,
|
|
1023
1023
|
options.file || options.message || COMMIT_EDITMSG_PATH
|
|
1024
1024
|
);
|
|
@@ -1035,17 +1035,17 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1035
1035
|
if (upstreamRemote) {
|
|
1036
1036
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
1037
1037
|
if (!upstreamRemoteIdentifier) {
|
|
1038
|
-
|
|
1038
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
1039
1039
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
|
|
1040
1040
|
workspaceConfig
|
|
1041
1041
|
);
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1044
|
+
chunkMEDWSATF_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
1045
1045
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
1046
1046
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
1047
1047
|
} else {
|
|
1048
|
-
|
|
1048
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
1049
1049
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
|
|
1050
1050
|
workspaceConfig
|
|
1051
1051
|
);
|
|
@@ -1053,7 +1053,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
1055
1055
|
if (!commitMessage) {
|
|
1056
|
-
|
|
1056
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
1057
1057
|
"No commits found. Skipping commit message validation.",
|
|
1058
1058
|
workspaceConfig
|
|
1059
1059
|
);
|
|
@@ -1063,7 +1063,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1063
1063
|
const preset = await createPreset(workspaceConfig.variant);
|
|
1064
1064
|
const report = await lint(commitMessage, preset);
|
|
1065
1065
|
if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1066
|
-
|
|
1066
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
1067
1067
|
`Commit was processing completed successfully!`,
|
|
1068
1068
|
workspaceConfig
|
|
1069
1069
|
);
|
|
@@ -1275,7 +1275,7 @@ async function createState(workspaceConfig, configPath) {
|
|
|
1275
1275
|
const project = projectConfigurations.projects[scope];
|
|
1276
1276
|
if (project) {
|
|
1277
1277
|
let description = `${project.name} - ${project.root}`;
|
|
1278
|
-
const packageJsonPath =
|
|
1278
|
+
const packageJsonPath = chunkMEDWSATF_cjs.joinPaths(project.root, "package.json");
|
|
1279
1279
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1280
1280
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1281
1281
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1349,19 +1349,19 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
|
|
|
1349
1349
|
|
|
1350
1350
|
// src/commit/run.ts
|
|
1351
1351
|
async function runCommit(commitizenFile, dryRun = false) {
|
|
1352
|
-
const workspaceConfig = await
|
|
1352
|
+
const workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
1353
1353
|
const state = await createState(workspaceConfig);
|
|
1354
1354
|
if (dryRun) {
|
|
1355
|
-
|
|
1355
|
+
chunkMEDWSATF_cjs.writeInfo("Running in dry mode.", workspaceConfig);
|
|
1356
1356
|
}
|
|
1357
1357
|
console.log(
|
|
1358
1358
|
chalk2__default.default.bold.hex("#999999")("----------------------------------------") + "\n" + chalk2__default.default.bold.hex("#FFFFFF")(
|
|
1359
|
-
` ${
|
|
1359
|
+
` ${chunkMEDWSATF_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit`
|
|
1360
1360
|
) + "\n" + chalk2__default.default.hex("#CCCCCC")("Please provide the requested details below...")
|
|
1361
1361
|
);
|
|
1362
1362
|
state.answers = await askQuestions(state);
|
|
1363
1363
|
const message = formatCommitMessage(state, workspaceConfig);
|
|
1364
|
-
const commitMsgFile =
|
|
1364
|
+
const commitMsgFile = chunkMEDWSATF_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1365
1365
|
console.log(
|
|
1366
1366
|
chalk2__default.default.bold.hex("#999999")("----------------------------------------") + `
|
|
1367
1367
|
${chalk2__default.default.bold.hex("#FFFFFF")("Commit message")} - ${chalk2__default.default.hex("#DDDDDD")(message)}
|
|
@@ -1375,11 +1375,11 @@ ${chalk2__default.default.bold.hex("#FFFFFF")("Git-Commit File")} - ${chalk2__de
|
|
|
1375
1375
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1376
1376
|
const command = shellescape__default.default(commandItems);
|
|
1377
1377
|
if (dryRun) {
|
|
1378
|
-
|
|
1378
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
1379
1379
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1380
1380
|
workspaceConfig
|
|
1381
1381
|
);
|
|
1382
|
-
|
|
1382
|
+
chunkMEDWSATF_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1383
1383
|
} else {
|
|
1384
1384
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1385
1385
|
chunkMTAYUS7E_cjs.run(workspaceConfig, command);
|
|
@@ -2040,7 +2040,7 @@ var runReadme = async ({
|
|
|
2040
2040
|
exitOnError: true
|
|
2041
2041
|
});
|
|
2042
2042
|
const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
2043
|
-
const workspaceRoot =
|
|
2043
|
+
const workspaceRoot = chunkMEDWSATF_cjs.findWorkspaceRootSafe(process.cwd());
|
|
2044
2044
|
if (!workspaceRoot) {
|
|
2045
2045
|
throw new Error(
|
|
2046
2046
|
"Unable to find the workspace root. Please ensure you are running this command from within a workspace."
|
|
@@ -2457,7 +2457,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2457
2457
|
const header = await prettier.format(
|
|
2458
2458
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkMEDWSATF_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2461
2461
|
|
|
2462
2462
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2463
2463
|
|
|
@@ -2633,12 +2633,12 @@ async function generateChangelogForProjects({
|
|
|
2633
2633
|
projectChangelogs
|
|
2634
2634
|
)) {
|
|
2635
2635
|
if (!projectGraph.nodes[projectName]?.data.root) {
|
|
2636
|
-
|
|
2636
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
2637
2637
|
`A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
|
|
2638
2638
|
workspaceConfig
|
|
2639
2639
|
);
|
|
2640
2640
|
} else if (projectChangelog.contents) {
|
|
2641
|
-
const filePath =
|
|
2641
|
+
const filePath = chunkMEDWSATF_cjs.joinPaths(
|
|
2642
2642
|
projectGraph.nodes[projectName].data.root,
|
|
2643
2643
|
"CHANGELOG.md"
|
|
2644
2644
|
);
|
|
@@ -2646,7 +2646,7 @@ async function generateChangelogForProjects({
|
|
|
2646
2646
|
if (fs$1.existsSync(filePath)) {
|
|
2647
2647
|
currentContent = await fs.readFile(filePath, "utf8");
|
|
2648
2648
|
}
|
|
2649
|
-
|
|
2649
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2650
2650
|
`\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
|
|
2651
2651
|
workspaceConfig
|
|
2652
2652
|
);
|
|
@@ -2864,12 +2864,12 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2864
2864
|
if (!matchingTags.length) {
|
|
2865
2865
|
return null;
|
|
2866
2866
|
}
|
|
2867
|
-
|
|
2867
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2868
2868
|
`Found ${matchingTags.length} matching tags out of ${tags.length} total tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2869
2869
|
workspaceConfig
|
|
2870
2870
|
);
|
|
2871
2871
|
if (!strictPreid) {
|
|
2872
|
-
|
|
2872
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
2873
2873
|
`Not using strict preid, will use the greatest matching tag of project "${additionalInterpolationData.projectName}":
|
|
2874
2874
|
${matchingTags.join(", ")}`,
|
|
2875
2875
|
workspaceConfig
|
|
@@ -2882,7 +2882,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2882
2882
|
const [, version] = matches;
|
|
2883
2883
|
return version && !shared.isPrerelease(version);
|
|
2884
2884
|
});
|
|
2885
|
-
|
|
2885
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2886
2886
|
`Found ${stableReleaseTags.length} stable tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2887
2887
|
workspaceConfig
|
|
2888
2888
|
);
|
|
@@ -2893,7 +2893,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2893
2893
|
const version = match.find((part) => part.match(SEMVER_REGEX));
|
|
2894
2894
|
return version && version.includes(`-${preid}.`);
|
|
2895
2895
|
});
|
|
2896
|
-
|
|
2896
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2897
2897
|
`Found ${preidReleaseTags.length} preid tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2898
2898
|
workspaceConfig
|
|
2899
2899
|
);
|
|
@@ -2902,12 +2902,12 @@ ${matchingTags.join(", ")}`,
|
|
|
2902
2902
|
const stableResult = compareTags(stableReleaseTags, tagRegexp, options);
|
|
2903
2903
|
const preidBaseVersion = semver.coerce(preidResult.extractedVersion)?.version;
|
|
2904
2904
|
const stableVersion = semver.coerce(stableResult.extractedVersion)?.version;
|
|
2905
|
-
|
|
2905
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2906
2906
|
`Extracted preid version: ${preidBaseVersion} and stable version: ${stableVersion} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2907
2907
|
workspaceConfig
|
|
2908
2908
|
);
|
|
2909
2909
|
if (preidBaseVersion && stableVersion && semver.gte(stableVersion, preidBaseVersion)) {
|
|
2910
|
-
|
|
2910
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2911
2911
|
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern}) because its version (${stableVersion}) is greater than or equal to the base version of the latest preid tag (${preidBaseVersion})`,
|
|
2912
2912
|
workspaceConfig
|
|
2913
2913
|
);
|
|
@@ -2916,7 +2916,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2916
2916
|
return preidResult;
|
|
2917
2917
|
}
|
|
2918
2918
|
if (preidReleaseTags.length > 0) {
|
|
2919
|
-
|
|
2919
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2920
2920
|
`Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2921
2921
|
workspaceConfig
|
|
2922
2922
|
);
|
|
@@ -2924,7 +2924,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
2926
|
if (stableReleaseTags.length > 0) {
|
|
2927
|
-
|
|
2927
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2928
2928
|
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2929
2929
|
workspaceConfig
|
|
2930
2930
|
);
|
|
@@ -2978,7 +2978,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
|
|
|
2978
2978
|
}
|
|
2979
2979
|
async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
|
|
2980
2980
|
if (!this.workspaceConfig) {
|
|
2981
|
-
this.workspaceConfig = await
|
|
2981
|
+
this.workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
2982
2982
|
}
|
|
2983
2983
|
const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
|
|
2984
2984
|
return super.createOrUpdateRelease(
|
|
@@ -3171,7 +3171,7 @@ async function format3(path, data) {
|
|
|
3171
3171
|
if (resolvedConfig) {
|
|
3172
3172
|
code = await prettier.format(
|
|
3173
3173
|
data,
|
|
3174
|
-
|
|
3174
|
+
chunkMEDWSATF_cjs.defu(
|
|
3175
3175
|
{
|
|
3176
3176
|
absolutePath: path,
|
|
3177
3177
|
...resolvedConfig
|
|
@@ -3227,7 +3227,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
3227
3227
|
}
|
|
3228
3228
|
async render() {
|
|
3229
3229
|
if (!this.workspaceConfig) {
|
|
3230
|
-
this.workspaceConfig = await
|
|
3230
|
+
this.workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
3231
3231
|
}
|
|
3232
3232
|
return super.render();
|
|
3233
3233
|
}
|
|
@@ -3534,7 +3534,7 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
|
|
|
3534
3534
|
var DEFAULT_RELEASE_CONFIG = {
|
|
3535
3535
|
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
|
|
3536
3536
|
groups: {
|
|
3537
|
-
packages:
|
|
3537
|
+
packages: chunkMEDWSATF_cjs.defu(
|
|
3538
3538
|
{
|
|
3539
3539
|
projects: ["packages/*"]
|
|
3540
3540
|
},
|
|
@@ -3542,7 +3542,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3542
3542
|
DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3543
3543
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
3544
3544
|
),
|
|
3545
|
-
crates:
|
|
3545
|
+
crates: chunkMEDWSATF_cjs.defu(
|
|
3546
3546
|
{
|
|
3547
3547
|
projects: ["crates/*"]
|
|
3548
3548
|
},
|
|
@@ -3565,7 +3565,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
};
|
|
3567
3567
|
function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
|
|
3568
|
-
return
|
|
3568
|
+
return chunkMEDWSATF_cjs.defu(
|
|
3569
3569
|
{
|
|
3570
3570
|
...omit(defaultConfig, ["changelog", "version"]),
|
|
3571
3571
|
...config5
|
|
@@ -3596,7 +3596,7 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3596
3596
|
projectGraph.nodes
|
|
3597
3597
|
);
|
|
3598
3598
|
if (!matchingProjects.length) {
|
|
3599
|
-
|
|
3599
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
3600
3600
|
`Release group "${name}" does not have any matching projects.`
|
|
3601
3601
|
);
|
|
3602
3602
|
return void 0;
|
|
@@ -3616,13 +3616,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3616
3616
|
ProjectTagConstants.Language.TAG_ID,
|
|
3617
3617
|
ProjectTagConstants.Language.TYPESCRIPT
|
|
3618
3618
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3619
|
-
|
|
3619
|
+
chunkMEDWSATF_cjs.joinPaths(
|
|
3620
3620
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3621
3621
|
"package.json"
|
|
3622
3622
|
)
|
|
3623
3623
|
))
|
|
3624
3624
|
)) {
|
|
3625
|
-
defaultConfig =
|
|
3625
|
+
defaultConfig = chunkMEDWSATF_cjs.defu(
|
|
3626
3626
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3627
3627
|
DEFAULT_JS_RELEASE_GROUP_CONFIG,
|
|
3628
3628
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3633,13 +3633,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3633
3633
|
ProjectTagConstants.Language.TAG_ID,
|
|
3634
3634
|
ProjectTagConstants.Language.RUST
|
|
3635
3635
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3636
|
-
|
|
3636
|
+
chunkMEDWSATF_cjs.joinPaths(
|
|
3637
3637
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3638
3638
|
"Cargo.toml"
|
|
3639
3639
|
)
|
|
3640
3640
|
))
|
|
3641
3641
|
)) {
|
|
3642
|
-
defaultConfig =
|
|
3642
|
+
defaultConfig = chunkMEDWSATF_cjs.defu(
|
|
3643
3643
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3644
3644
|
DEFAULT_RUST_RELEASE_GROUP_CONFIG,
|
|
3645
3645
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3653,13 +3653,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3653
3653
|
config5.projects = matchingProjects;
|
|
3654
3654
|
if (workspaceConfig?.workspaceRoot) {
|
|
3655
3655
|
if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
|
|
3656
|
-
config5.changelog.renderer =
|
|
3656
|
+
config5.changelog.renderer = chunkMEDWSATF_cjs.joinPaths(
|
|
3657
3657
|
workspaceConfig.workspaceRoot,
|
|
3658
3658
|
config5.changelog.renderer
|
|
3659
3659
|
);
|
|
3660
3660
|
}
|
|
3661
3661
|
if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
|
|
3662
|
-
config5.version.versionActions =
|
|
3662
|
+
config5.version.versionActions = chunkMEDWSATF_cjs.joinPaths(
|
|
3663
3663
|
workspaceConfig.workspaceRoot,
|
|
3664
3664
|
config5.version?.versionActions
|
|
3665
3665
|
);
|
|
@@ -3671,10 +3671,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
|
|
3673
3673
|
let nxJson$1 = {};
|
|
3674
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(
|
|
3674
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunkMEDWSATF_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3675
3675
|
nxJson$1 = nxJson.readNxJson();
|
|
3676
3676
|
}
|
|
3677
|
-
const baseConfig =
|
|
3677
|
+
const baseConfig = chunkMEDWSATF_cjs.defu(
|
|
3678
3678
|
{
|
|
3679
3679
|
changelog: {
|
|
3680
3680
|
renderOptions: {
|
|
@@ -3691,7 +3691,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3691
3691
|
if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
|
|
3692
3692
|
groups = releaseConfig.groups;
|
|
3693
3693
|
if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
|
|
3694
|
-
groups =
|
|
3694
|
+
groups = chunkMEDWSATF_cjs.defu(
|
|
3695
3695
|
groups,
|
|
3696
3696
|
nxJson$1.release.groups
|
|
3697
3697
|
);
|
|
@@ -3711,7 +3711,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3711
3711
|
};
|
|
3712
3712
|
}
|
|
3713
3713
|
function formatConfigLog(config5) {
|
|
3714
|
-
return
|
|
3714
|
+
return chunkMEDWSATF_cjs.formatLogMessage(config5, {
|
|
3715
3715
|
sort: true,
|
|
3716
3716
|
skip: ["workspaceConfig", "conventionalCommits"]
|
|
3717
3717
|
});
|
|
@@ -4124,7 +4124,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
4124
4124
|
this.resolveRepositoryTags.bind(this),
|
|
4125
4125
|
options
|
|
4126
4126
|
);
|
|
4127
|
-
|
|
4127
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
4128
4128
|
`Group release tag pattern: ${releaseTagPattern}
|
|
4129
4129
|
Project release tag pattern: ${projectReleaseTagPattern}
|
|
4130
4130
|
Group release tag: ${groupReleaseTag?.tag}
|
|
@@ -4148,7 +4148,7 @@ Project release tag: ${projectReleaseTag?.tag}`,
|
|
|
4148
4148
|
options
|
|
4149
4149
|
);
|
|
4150
4150
|
}
|
|
4151
|
-
|
|
4151
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
4152
4152
|
`Resolved latest matching git tag for "${projectName}": ${latestMatchingGitTag?.tag} (version: ${latestMatchingGitTag?.extractedVersion})`,
|
|
4153
4153
|
this.workspaceConfig
|
|
4154
4154
|
);
|
|
@@ -4418,7 +4418,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4418
4418
|
constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
|
|
4419
4419
|
super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
|
|
4420
4420
|
dryRun: !!versionOptions.dryRun,
|
|
4421
|
-
verbose: versionOptions.verbose ||
|
|
4421
|
+
verbose: versionOptions.verbose || chunkMEDWSATF_cjs.isVerbose(workspaceConfig.logLevel),
|
|
4422
4422
|
firstRelease: !!versionOptions.firstRelease,
|
|
4423
4423
|
preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
|
|
4424
4424
|
userGivenSpecifier: versionOptions.specifier,
|
|
@@ -4516,7 +4516,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4516
4516
|
deletedFiles: deletedFilesForVersionActions
|
|
4517
4517
|
} = await afterAllProjectsVersioned(this.#tree.root, {
|
|
4518
4518
|
dryRun: this.versionOptions.dryRun,
|
|
4519
|
-
verbose: this.versionOptions.verbose ||
|
|
4519
|
+
verbose: this.versionOptions.verbose || chunkMEDWSATF_cjs.isVerbose(this.workspaceConfig.logLevel),
|
|
4520
4520
|
rootVersionActionsOptions
|
|
4521
4521
|
});
|
|
4522
4522
|
for (const file of changedFilesForVersionActions) {
|
|
@@ -4549,7 +4549,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4549
4549
|
let handleDockerVersion;
|
|
4550
4550
|
try {
|
|
4551
4551
|
const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
|
|
4552
|
-
const { handleDockerVersion: _handleDockerVersion } =
|
|
4552
|
+
const { handleDockerVersion: _handleDockerVersion } = chunkMEDWSATF_cjs.__require(dockerVersionUtilsPath);
|
|
4553
4553
|
handleDockerVersion = _handleDockerVersion;
|
|
4554
4554
|
} catch (e) {
|
|
4555
4555
|
console.error(
|
|
@@ -4637,12 +4637,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4637
4637
|
for (const project of releaseGroup.projects) {
|
|
4638
4638
|
const currentVersion = this.#getCurrentCachedVersionForProject(project);
|
|
4639
4639
|
if (!currentVersion) {
|
|
4640
|
-
|
|
4640
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
4641
4641
|
`No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
4642
4642
|
this.workspaceConfig
|
|
4643
4643
|
);
|
|
4644
4644
|
} else {
|
|
4645
|
-
|
|
4645
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
4646
4646
|
`Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
|
|
4647
4647
|
this.workspaceConfig
|
|
4648
4648
|
);
|
|
@@ -4668,7 +4668,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4668
4668
|
reasonData: newVersionInputReasonData
|
|
4669
4669
|
};
|
|
4670
4670
|
}
|
|
4671
|
-
|
|
4671
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
4672
4672
|
`Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
|
|
4673
4673
|
this.workspaceConfig
|
|
4674
4674
|
);
|
|
@@ -5121,7 +5121,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
5121
5121
|
var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
|
|
5122
5122
|
static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
|
|
5123
5123
|
if (!workspaceConfig) {
|
|
5124
|
-
workspaceConfig = await
|
|
5124
|
+
workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
5125
5125
|
}
|
|
5126
5126
|
const projectGraph = await devkit.createProjectGraphAsync({
|
|
5127
5127
|
exitOnError: true,
|
|
@@ -5132,7 +5132,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
5132
5132
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
5133
5133
|
);
|
|
5134
5134
|
}
|
|
5135
|
-
|
|
5135
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
5136
5136
|
`Provided release configuration:
|
|
5137
5137
|
${formatConfigLog(releaseConfig)}`,
|
|
5138
5138
|
workspaceConfig
|
|
@@ -5143,7 +5143,7 @@ ${formatConfigLog(releaseConfig)}`,
|
|
|
5143
5143
|
workspaceConfig,
|
|
5144
5144
|
ignoreNxJsonConfig
|
|
5145
5145
|
);
|
|
5146
|
-
|
|
5146
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5147
5147
|
`Resolved release configuration:
|
|
5148
5148
|
${formatConfigLog(config5)}`,
|
|
5149
5149
|
workspaceConfig
|
|
@@ -5180,11 +5180,11 @@ ${formatConfigLog(config5)}`,
|
|
|
5180
5180
|
*/
|
|
5181
5181
|
constructor(projectGraph, releaseConfig, workspaceConfig) {
|
|
5182
5182
|
super(releaseConfig, true);
|
|
5183
|
-
|
|
5183
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5184
5184
|
"Executing release with the following configuration",
|
|
5185
5185
|
workspaceConfig
|
|
5186
5186
|
);
|
|
5187
|
-
|
|
5187
|
+
chunkMEDWSATF_cjs.writeDebug(releaseConfig, workspaceConfig);
|
|
5188
5188
|
this.projectGraph = projectGraph;
|
|
5189
5189
|
this.releaseConfig = releaseConfig;
|
|
5190
5190
|
this.workspaceConfig = workspaceConfig;
|
|
@@ -5212,7 +5212,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5212
5212
|
groups: options.groups
|
|
5213
5213
|
},
|
|
5214
5214
|
firstRelease: !!options.firstRelease,
|
|
5215
|
-
verbose:
|
|
5215
|
+
verbose: chunkMEDWSATF_cjs.isVerbose(this.workspaceConfig.logLevel)
|
|
5216
5216
|
},
|
|
5217
5217
|
this.workspaceConfig
|
|
5218
5218
|
);
|
|
@@ -5342,7 +5342,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5342
5342
|
})),
|
|
5343
5343
|
this.releaseConfig.conventionalCommits
|
|
5344
5344
|
);
|
|
5345
|
-
|
|
5345
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5346
5346
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5347
5347
|
this.workspaceConfig
|
|
5348
5348
|
);
|
|
@@ -5417,7 +5417,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5417
5417
|
})),
|
|
5418
5418
|
this.releaseConfig.conventionalCommits
|
|
5419
5419
|
);
|
|
5420
|
-
|
|
5420
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5421
5421
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5422
5422
|
this.workspaceConfig
|
|
5423
5423
|
);
|
|
@@ -5446,7 +5446,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5446
5446
|
}
|
|
5447
5447
|
}
|
|
5448
5448
|
}
|
|
5449
|
-
|
|
5449
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5450
5450
|
`Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
|
|
5451
5451
|
${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
5452
5452
|
`,
|
|
@@ -5475,7 +5475,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5475
5475
|
);
|
|
5476
5476
|
const changes = this.tree.listChanges();
|
|
5477
5477
|
if (!changes.length) {
|
|
5478
|
-
|
|
5478
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5479
5479
|
"No changes were detected for any changelog files, so no changelog entries will be generated.",
|
|
5480
5480
|
this.workspaceConfig
|
|
5481
5481
|
);
|
|
@@ -5497,7 +5497,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5497
5497
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
|
|
5498
5498
|
});
|
|
5499
5499
|
latestCommit = await git.getCommitHash("HEAD");
|
|
5500
|
-
|
|
5500
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5501
5501
|
`Creating git tags: ${gitTagValues.join(", ")}`,
|
|
5502
5502
|
this.workspaceConfig
|
|
5503
5503
|
);
|
|
@@ -5510,7 +5510,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5510
5510
|
verbose: options.verbose
|
|
5511
5511
|
});
|
|
5512
5512
|
}
|
|
5513
|
-
|
|
5513
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5514
5514
|
`Pushing to git remote "${options.gitRemote ?? "origin"}"`,
|
|
5515
5515
|
this.workspaceConfig
|
|
5516
5516
|
);
|
|
@@ -5526,7 +5526,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5526
5526
|
return;
|
|
5527
5527
|
};
|
|
5528
5528
|
releaseVersion = async (options) => {
|
|
5529
|
-
const verbose = options.verbose ||
|
|
5529
|
+
const verbose = options.verbose || chunkMEDWSATF_cjs.isVerbose(this.workspaceConfig.logLevel);
|
|
5530
5530
|
this.projectGraph = await devkit.createProjectGraphAsync({
|
|
5531
5531
|
exitOnError: true,
|
|
5532
5532
|
resetDaemonClient: true
|
|
@@ -5553,7 +5553,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5553
5553
|
this.workspaceConfig
|
|
5554
5554
|
);
|
|
5555
5555
|
if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
|
|
5556
|
-
|
|
5556
|
+
chunkMEDWSATF_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
|
|
5557
5557
|
}
|
|
5558
5558
|
if (!options.specifier) {
|
|
5559
5559
|
const rawVersionPlans = await versionPlans.readRawVersionPlans();
|
|
@@ -5572,7 +5572,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5572
5572
|
}
|
|
5573
5573
|
} else {
|
|
5574
5574
|
if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
|
|
5575
|
-
|
|
5575
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5576
5576
|
`Skipping version plan discovery as a specifier was provided`,
|
|
5577
5577
|
this.workspaceConfig
|
|
5578
5578
|
);
|
|
@@ -5582,7 +5582,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5582
5582
|
options.deleteVersionPlans = false;
|
|
5583
5583
|
}
|
|
5584
5584
|
if (this.releaseConfig.version?.preVersionCommand) {
|
|
5585
|
-
|
|
5585
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5586
5586
|
"Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
|
|
5587
5587
|
this.workspaceConfig
|
|
5588
5588
|
);
|
|
@@ -5618,7 +5618,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5618
5618
|
continue;
|
|
5619
5619
|
}
|
|
5620
5620
|
if (releaseGroup.version?.groupPreVersionCommand) {
|
|
5621
|
-
|
|
5621
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5622
5622
|
`Executing the ${releaseGroup.name} release group's pre-version command:
|
|
5623
5623
|
` + releaseGroup.version?.groupPreVersionCommand,
|
|
5624
5624
|
this.workspaceConfig
|
|
@@ -5678,7 +5678,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5678
5678
|
changed.forEach((f) => additionalChangedFiles.add(f));
|
|
5679
5679
|
deleted.forEach((f) => additionalDeletedFiles.add(f));
|
|
5680
5680
|
if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
|
|
5681
|
-
|
|
5681
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5682
5682
|
`Executing the docker pre-version command:
|
|
5683
5683
|
` + this.releaseConfig.docker.preVersionCommand,
|
|
5684
5684
|
this.workspaceConfig
|
|
@@ -5715,7 +5715,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5715
5715
|
continue;
|
|
5716
5716
|
}
|
|
5717
5717
|
if (releaseGroup.docker?.groupPreVersionCommand) {
|
|
5718
|
-
|
|
5718
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5719
5719
|
`Executing the ${releaseGroup.name} release group's docker pre-version command:
|
|
5720
5720
|
` + releaseGroup.docker?.groupPreVersionCommand,
|
|
5721
5721
|
this.workspaceConfig
|
|
@@ -5746,7 +5746,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5746
5746
|
}
|
|
5747
5747
|
}
|
|
5748
5748
|
if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
|
|
5749
|
-
|
|
5749
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5750
5750
|
formatNxLog({
|
|
5751
5751
|
title: "Warning",
|
|
5752
5752
|
bodyLines: [
|
|
@@ -5803,7 +5803,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5803
5803
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
|
|
5804
5804
|
});
|
|
5805
5805
|
} else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
|
|
5806
|
-
|
|
5806
|
+
chunkMEDWSATF_cjs.writeDebug(`Staging changed files with git`);
|
|
5807
5807
|
await git.gitAdd({
|
|
5808
5808
|
changedFiles,
|
|
5809
5809
|
deletedFiles,
|
|
@@ -5812,7 +5812,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5812
5812
|
});
|
|
5813
5813
|
}
|
|
5814
5814
|
if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
|
|
5815
|
-
|
|
5815
|
+
chunkMEDWSATF_cjs.writeDebug(`Tagging commit with git`);
|
|
5816
5816
|
for (const tag of gitTagValues) {
|
|
5817
5817
|
await gitTag({
|
|
5818
5818
|
tag,
|
|
@@ -5824,7 +5824,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5824
5824
|
}
|
|
5825
5825
|
}
|
|
5826
5826
|
if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
|
|
5827
|
-
|
|
5827
|
+
chunkMEDWSATF_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
|
|
5828
5828
|
await git.gitPush({
|
|
5829
5829
|
gitRemote: options.gitRemote,
|
|
5830
5830
|
dryRun: options.dryRun,
|
|
@@ -5855,7 +5855,7 @@ var runRelease = async (config5, {
|
|
|
5855
5855
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
5856
5856
|
}
|
|
5857
5857
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
5858
|
-
|
|
5858
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
5859
5859
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
5860
5860
|
config5
|
|
5861
5861
|
);
|
|
@@ -5872,23 +5872,23 @@ var runRelease = async (config5, {
|
|
|
5872
5872
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5873
5873
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5874
5874
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
5875
|
-
|
|
5875
|
+
chunkMEDWSATF_cjs.writeDebug("Creating Storm release client...", config5);
|
|
5876
5876
|
const releaseClient = await StormReleaseClient.create(
|
|
5877
5877
|
releaseConfig,
|
|
5878
5878
|
ignoreNxJsonConfig,
|
|
5879
5879
|
config5
|
|
5880
5880
|
);
|
|
5881
|
-
|
|
5881
|
+
chunkMEDWSATF_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
5882
5882
|
const to = head || process.env.NX_HEAD;
|
|
5883
5883
|
const from = base || process.env.NX_BASE;
|
|
5884
|
-
|
|
5884
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5885
5885
|
`Using the following Git SHAs to determine the release content:
|
|
5886
5886
|
- From: ${from}
|
|
5887
5887
|
- To: ${to}
|
|
5888
5888
|
`,
|
|
5889
5889
|
config5
|
|
5890
5890
|
);
|
|
5891
|
-
|
|
5891
|
+
chunkMEDWSATF_cjs.writeDebug("Determining the current release versions...", config5);
|
|
5892
5892
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
5893
5893
|
dryRun,
|
|
5894
5894
|
verbose: true,
|
|
@@ -5905,9 +5905,9 @@ var runRelease = async (config5, {
|
|
|
5905
5905
|
from,
|
|
5906
5906
|
releaseGraph
|
|
5907
5907
|
});
|
|
5908
|
-
|
|
5908
|
+
chunkMEDWSATF_cjs.writeDebug("Tagging commit with git", config5);
|
|
5909
5909
|
if (skipPublish) {
|
|
5910
|
-
|
|
5910
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5911
5911
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
5912
5912
|
config5
|
|
5913
5913
|
);
|
|
@@ -5916,7 +5916,7 @@ var runRelease = async (config5, {
|
|
|
5916
5916
|
(key) => projectsVersionData[key]?.newVersion
|
|
5917
5917
|
);
|
|
5918
5918
|
if (changedProjects.length > 0) {
|
|
5919
|
-
|
|
5919
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
5920
5920
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
5921
5921
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
5922
5922
|
`,
|
|
@@ -5940,10 +5940,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
5940
5940
|
);
|
|
5941
5941
|
}
|
|
5942
5942
|
} else {
|
|
5943
|
-
|
|
5943
|
+
chunkMEDWSATF_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
|
-
|
|
5946
|
+
chunkMEDWSATF_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
5947
5947
|
};
|
|
5948
5948
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
5949
5949
|
let projectGraph;
|
|
@@ -5958,7 +5958,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5958
5958
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
5959
5959
|
const projectNode = projectGraph.nodes[node];
|
|
5960
5960
|
if (!projectNode?.data.root) {
|
|
5961
|
-
|
|
5961
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5962
5962
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
5963
5963
|
config5
|
|
5964
5964
|
);
|
|
@@ -5966,17 +5966,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5966
5966
|
}
|
|
5967
5967
|
const versionData = projectsVersionData[node];
|
|
5968
5968
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
5969
|
-
|
|
5969
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
5970
5970
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
5971
5971
|
`,
|
|
5972
5972
|
config5
|
|
5973
5973
|
);
|
|
5974
|
-
const projectRoot =
|
|
5974
|
+
const projectRoot = chunkMEDWSATF_cjs.joinPaths(
|
|
5975
5975
|
config5.workspaceRoot,
|
|
5976
5976
|
projectNode.data.root
|
|
5977
5977
|
);
|
|
5978
|
-
const packageJsonPath =
|
|
5979
|
-
const cargoTomlPath =
|
|
5978
|
+
const packageJsonPath = chunkMEDWSATF_cjs.joinPaths(projectRoot, "package.json");
|
|
5979
|
+
const cargoTomlPath = chunkMEDWSATF_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
5980
5980
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
5981
5981
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
5982
5982
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -5994,7 +5994,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5994
5994
|
})
|
|
5995
5995
|
);
|
|
5996
5996
|
} else {
|
|
5997
|
-
|
|
5997
|
+
chunkMEDWSATF_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
5998
5998
|
}
|
|
5999
5999
|
}
|
|
6000
6000
|
|
|
@@ -6002,8 +6002,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
6002
6002
|
var _config = {};
|
|
6003
6003
|
function createProgram(config5) {
|
|
6004
6004
|
_config = config5;
|
|
6005
|
-
|
|
6006
|
-
const root =
|
|
6005
|
+
chunkMEDWSATF_cjs.writeInfo(`${chunkMEDWSATF_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
|
|
6006
|
+
const root = chunkMEDWSATF_cjs.findWorkspaceRootSafe(process.cwd());
|
|
6007
6007
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
6008
6008
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
6009
6009
|
if (root) {
|
|
@@ -6050,12 +6050,12 @@ async function commitAction({
|
|
|
6050
6050
|
dryRun = false
|
|
6051
6051
|
}) {
|
|
6052
6052
|
try {
|
|
6053
|
-
|
|
6054
|
-
`${
|
|
6053
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6054
|
+
`${chunkMEDWSATF_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
|
|
6055
6055
|
_config
|
|
6056
6056
|
);
|
|
6057
6057
|
await runCommit(config5, dryRun);
|
|
6058
|
-
|
|
6058
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6059
6059
|
`\u2714 Storm Commit processing completed successfully!
|
|
6060
6060
|
|
|
6061
6061
|
Note: Please run "pnpm push" to upload these changes to the remote ${_config.name ? _config.name : _config.namespace ? _config.namespace : _config.organization ? _config.organization : "Storm-Software"} Git repository at ${_config.repository}
|
|
@@ -6063,7 +6063,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
6063
6063
|
_config
|
|
6064
6064
|
);
|
|
6065
6065
|
} catch (error) {
|
|
6066
|
-
|
|
6066
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6067
6067
|
`A fatal error occurred while running commit action:
|
|
6068
6068
|
|
|
6069
6069
|
${error.message}${error.stack ? `
|
|
@@ -6078,17 +6078,17 @@ Please fix any errors and try committing again.`,
|
|
|
6078
6078
|
}
|
|
6079
6079
|
async function readmeAction(options) {
|
|
6080
6080
|
try {
|
|
6081
|
-
|
|
6082
|
-
`${
|
|
6081
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6082
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
|
|
6083
6083
|
_config
|
|
6084
6084
|
);
|
|
6085
6085
|
await runReadme(options);
|
|
6086
|
-
|
|
6086
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6087
6087
|
"\u2714 Formatting of the workspace's README.md files is complete\n",
|
|
6088
6088
|
_config
|
|
6089
6089
|
);
|
|
6090
6090
|
} catch (error) {
|
|
6091
|
-
|
|
6091
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6092
6092
|
`A fatal error occurred while running README format action:
|
|
6093
6093
|
|
|
6094
6094
|
${error.message}`
|
|
@@ -6103,8 +6103,8 @@ async function releaseAction({
|
|
|
6103
6103
|
dryRun
|
|
6104
6104
|
}) {
|
|
6105
6105
|
try {
|
|
6106
|
-
|
|
6107
|
-
`${
|
|
6106
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6107
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
|
|
6108
6108
|
_config
|
|
6109
6109
|
);
|
|
6110
6110
|
await runRelease(_config, {
|
|
@@ -6113,9 +6113,9 @@ async function releaseAction({
|
|
|
6113
6113
|
base,
|
|
6114
6114
|
head
|
|
6115
6115
|
});
|
|
6116
|
-
|
|
6116
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
|
|
6117
6117
|
} catch (error) {
|
|
6118
|
-
|
|
6118
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6119
6119
|
`A fatal error occurred while running release action:
|
|
6120
6120
|
|
|
6121
6121
|
${error.message} ${error.stack ? `
|
|
@@ -6129,17 +6129,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
6129
6129
|
}
|
|
6130
6130
|
async function commitLintAction(options) {
|
|
6131
6131
|
try {
|
|
6132
|
-
|
|
6133
|
-
`${
|
|
6132
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6133
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _config.organization?.name ? _config.organization?.name : "Storm-Software"} repository's commit messages.`,
|
|
6134
6134
|
_config
|
|
6135
6135
|
);
|
|
6136
6136
|
await runCommitLint(_config, options);
|
|
6137
|
-
|
|
6137
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6138
6138
|
"\u2714 Linting the commit messages completed successfully!\n",
|
|
6139
6139
|
_config
|
|
6140
6140
|
);
|
|
6141
6141
|
} catch (error) {
|
|
6142
|
-
|
|
6142
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6143
6143
|
`A fatal error occurred while linting the commit messages:
|
|
6144
6144
|
|
|
6145
6145
|
${error.message}`,
|
|
@@ -6150,14 +6150,14 @@ ${error.message}`,
|
|
|
6150
6150
|
}
|
|
6151
6151
|
async function postCheckoutAction({ files }) {
|
|
6152
6152
|
try {
|
|
6153
|
-
|
|
6154
|
-
`${
|
|
6153
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6154
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
6155
6155
|
_config
|
|
6156
6156
|
);
|
|
6157
|
-
await
|
|
6158
|
-
|
|
6157
|
+
await chunkP6GZDOJU_cjs.postCheckoutHook(_config, files);
|
|
6158
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
|
|
6159
6159
|
} catch (error) {
|
|
6160
|
-
|
|
6160
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6161
6161
|
`A fatal error occurred while running the post-checkout hook:
|
|
6162
6162
|
|
|
6163
6163
|
${error.message}`,
|
|
@@ -6168,14 +6168,14 @@ ${error.message}`,
|
|
|
6168
6168
|
}
|
|
6169
6169
|
async function postCommitAction({ files }) {
|
|
6170
6170
|
try {
|
|
6171
|
-
|
|
6172
|
-
`${
|
|
6171
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6172
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
6173
6173
|
_config
|
|
6174
6174
|
);
|
|
6175
|
-
await
|
|
6176
|
-
|
|
6175
|
+
await chunkF7DR27M6_cjs.postCommitHook(_config, files);
|
|
6176
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
|
|
6177
6177
|
} catch (error) {
|
|
6178
|
-
|
|
6178
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6179
6179
|
`A fatal error occurred while running the post-commit hook:
|
|
6180
6180
|
|
|
6181
6181
|
${error.message}`,
|
|
@@ -6186,14 +6186,14 @@ ${error.message}`,
|
|
|
6186
6186
|
}
|
|
6187
6187
|
async function postMergeAction({ files }) {
|
|
6188
6188
|
try {
|
|
6189
|
-
|
|
6190
|
-
`${
|
|
6189
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6190
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
6191
6191
|
_config
|
|
6192
6192
|
);
|
|
6193
|
-
await
|
|
6194
|
-
|
|
6193
|
+
await chunkX6OUWIBF_cjs.postMergeHook(_config, files);
|
|
6194
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
|
|
6195
6195
|
} catch (error) {
|
|
6196
|
-
|
|
6196
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6197
6197
|
`A fatal error occurred while running the post-merge hook:
|
|
6198
6198
|
|
|
6199
6199
|
${error.message}`,
|
|
@@ -6204,14 +6204,14 @@ ${error.message}`,
|
|
|
6204
6204
|
}
|
|
6205
6205
|
async function preCommitAction({ files }) {
|
|
6206
6206
|
try {
|
|
6207
|
-
|
|
6208
|
-
`${
|
|
6207
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6208
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
6209
6209
|
_config
|
|
6210
6210
|
);
|
|
6211
|
-
await
|
|
6212
|
-
|
|
6211
|
+
await chunkWSO2CLZQ_cjs.preCommitHook(_config, files);
|
|
6212
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
|
|
6213
6213
|
} catch (error) {
|
|
6214
|
-
|
|
6214
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6215
6215
|
`A fatal error occurred while running the pre-commit hook:
|
|
6216
6216
|
|
|
6217
6217
|
${error.message}`,
|
|
@@ -6222,14 +6222,14 @@ ${error.message}`,
|
|
|
6222
6222
|
}
|
|
6223
6223
|
async function prePushAction({ files }) {
|
|
6224
6224
|
try {
|
|
6225
|
-
|
|
6226
|
-
`${
|
|
6225
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6226
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
6227
6227
|
_config
|
|
6228
6228
|
);
|
|
6229
|
-
await
|
|
6230
|
-
|
|
6229
|
+
await chunkDPV4WJQX_cjs.prePushHook(_config, files);
|
|
6230
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
|
|
6231
6231
|
} catch (error) {
|
|
6232
|
-
|
|
6232
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6233
6233
|
`A fatal error occurred while running the pre-push hook:
|
|
6234
6234
|
|
|
6235
6235
|
${error.message}`,
|
|
@@ -6240,14 +6240,14 @@ ${error.message}`,
|
|
|
6240
6240
|
}
|
|
6241
6241
|
async function prepareAction() {
|
|
6242
6242
|
try {
|
|
6243
|
-
|
|
6244
|
-
`${
|
|
6243
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6244
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
6245
6245
|
_config
|
|
6246
6246
|
);
|
|
6247
|
-
await
|
|
6248
|
-
|
|
6247
|
+
await chunkCKFNJZL7_cjs.prepareHook(_config);
|
|
6248
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
|
|
6249
6249
|
} catch (error) {
|
|
6250
|
-
|
|
6250
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6251
6251
|
`A fatal error occurred while running the prepare hook:
|
|
6252
6252
|
|
|
6253
6253
|
${error.message}`,
|
|
@@ -6259,18 +6259,18 @@ ${error.message}`,
|
|
|
6259
6259
|
|
|
6260
6260
|
// bin/git.ts
|
|
6261
6261
|
void (async () => {
|
|
6262
|
-
const config5 = await
|
|
6262
|
+
const config5 = await chunkMEDWSATF_cjs.getConfig();
|
|
6263
6263
|
try {
|
|
6264
|
-
|
|
6264
|
+
chunkMEDWSATF_cjs.handleProcess(config5);
|
|
6265
6265
|
const program = createProgram(config5);
|
|
6266
6266
|
await program.parseAsync(process.argv);
|
|
6267
|
-
|
|
6267
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6268
6268
|
`\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
6269
6269
|
config5
|
|
6270
6270
|
);
|
|
6271
|
-
|
|
6271
|
+
chunkMEDWSATF_cjs.exitWithSuccess(config5);
|
|
6272
6272
|
} catch (error) {
|
|
6273
|
-
|
|
6273
|
+
chunkMEDWSATF_cjs.exitWithError(config5);
|
|
6274
6274
|
process.exit(1);
|
|
6275
6275
|
}
|
|
6276
6276
|
})();
|