@storm-software/git-tools 2.131.34 → 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 +163 -162
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +16 -15
- package/bin/git.js.map +1 -1
- 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-3GGWHKRP.js → chunk-4T5NCWMG.js} +2 -2
- package/dist/{chunk-4VPJA7YJ.cjs → chunk-5TXHP6RI.cjs} +2 -2
- 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-MOPECH2N.cjs → chunk-N72HVHEL.cjs} +16 -16
- package/dist/{chunk-USTER7R2.js → chunk-OMWWQPRY.js} +2 -2
- 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-7ZSL4J35.cjs → chunk-RIPABM45.cjs} +11 -11
- package/dist/{chunk-GN5PPUYJ.js → chunk-SCUQMGQU.js} +1 -1
- package/dist/{chunk-DCFVA6SR.js → chunk-TPQUURZQ.js} +3 -3
- 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-CT6VGZZS.cjs → chunk-WRSI3KUJ.cjs} +6 -6
- package/dist/{chunk-WCAKLYL2.js → chunk-XS6PFVQQ.js} +1 -1
- package/dist/{chunk-C4226MIL.cjs → chunk-XYYQXO3Y.cjs} +3 -3
- package/dist/commit/minimal.cjs +4 -4
- package/dist/commit/minimal.js +2 -2
- package/dist/commit/monorepo.cjs +5 -5
- package/dist/commit/monorepo.js +3 -3
- package/dist/commitlint/minimal.cjs +2 -2
- package/dist/commitlint/minimal.js +1 -1
- package/dist/commitlint/monorepo.cjs +2 -2
- package/dist/commitlint/monorepo.js +1 -1
- package/dist/index.cjs +37 -37
- package/dist/index.js +12 -12
- package/dist/release/config.cjs +22 -22
- package/dist/release/config.js +5 -5
- 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');
|
|
@@ -327,7 +327,7 @@ var commitlint = {
|
|
|
327
327
|
enableMultipleScopes: false,
|
|
328
328
|
disableEmoji: true,
|
|
329
329
|
breakingChangePrefix: "\u{1F4A3} ",
|
|
330
|
-
closedIssuePrefix: "\
|
|
330
|
+
closedIssuePrefix: "\u2714 ",
|
|
331
331
|
format: "{type}: {emoji}{subject}"
|
|
332
332
|
}
|
|
333
333
|
};
|
|
@@ -378,7 +378,7 @@ var commitlint2 = {
|
|
|
378
378
|
enableMultipleScopes: false,
|
|
379
379
|
disableEmoji: true,
|
|
380
380
|
breakingChangePrefix: "\u{1F4A3} ",
|
|
381
|
-
closedIssuePrefix: "\
|
|
381
|
+
closedIssuePrefix: "\u2714 ",
|
|
382
382
|
format: "{type}({scope}): {emoji}{subject}"
|
|
383
383
|
}
|
|
384
384
|
};
|
|
@@ -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,39 +1349,37 @@ ${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
|
-
chalk2__default.default.bold.hex("#999999")("----------------------------------------") + "\n
|
|
1359
|
-
` ${
|
|
1358
|
+
chalk2__default.default.bold.hex("#999999")("----------------------------------------") + "\n" + chalk2__default.default.bold.hex("#FFFFFF")(
|
|
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
|
-
|
|
1368
1367
|
${chalk2__default.default.bold.hex("#FFFFFF")("Commit message")} - ${chalk2__default.default.hex("#DDDDDD")(message)}
|
|
1369
1368
|
${chalk2__default.default.bold.hex("#FFFFFF")("Git-Commit File")} - ${chalk2__default.default.hex("#DDDDDD")(
|
|
1370
1369
|
commitMsgFile
|
|
1371
1370
|
)}
|
|
1372
|
-
|
|
1373
|
-
`
|
|
1371
|
+
`
|
|
1374
1372
|
);
|
|
1375
1373
|
await runCommitLint(workspaceConfig, { message });
|
|
1376
1374
|
const commandItems = ["git", "commit", "-S"];
|
|
1377
1375
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1378
1376
|
const command = shellescape__default.default(commandItems);
|
|
1379
1377
|
if (dryRun) {
|
|
1380
|
-
|
|
1378
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
1381
1379
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1382
1380
|
workspaceConfig
|
|
1383
1381
|
);
|
|
1384
|
-
|
|
1382
|
+
chunkMEDWSATF_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1385
1383
|
} else {
|
|
1386
1384
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1387
1385
|
chunkMTAYUS7E_cjs.run(workspaceConfig, command);
|
|
@@ -1401,7 +1399,10 @@ async function askQuestions(state) {
|
|
|
1401
1399
|
return state.answers;
|
|
1402
1400
|
}
|
|
1403
1401
|
async function askQuestion(index, question) {
|
|
1404
|
-
const message = `${chalk2__default.default.bold(
|
|
1402
|
+
const message = `${chalk2__default.default.bold(
|
|
1403
|
+
`${index + 1}. ${question.title}`
|
|
1404
|
+
)} - ${question.description}
|
|
1405
|
+
`;
|
|
1405
1406
|
if (question.type === "select" && question.enum && Object.keys(question.enum).length > 1) {
|
|
1406
1407
|
return default11__default.default({
|
|
1407
1408
|
message,
|
|
@@ -2039,7 +2040,7 @@ var runReadme = async ({
|
|
|
2039
2040
|
exitOnError: true
|
|
2040
2041
|
});
|
|
2041
2042
|
const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
2042
|
-
const workspaceRoot =
|
|
2043
|
+
const workspaceRoot = chunkMEDWSATF_cjs.findWorkspaceRootSafe(process.cwd());
|
|
2043
2044
|
if (!workspaceRoot) {
|
|
2044
2045
|
throw new Error(
|
|
2045
2046
|
"Unable to find the workspace root. Please ensure you are running this command from within a workspace."
|
|
@@ -2456,7 +2457,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2456
2457
|
const header = await prettier.format(
|
|
2457
2458
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkMEDWSATF_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2460
2461
|
|
|
2461
2462
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2462
2463
|
|
|
@@ -2632,12 +2633,12 @@ async function generateChangelogForProjects({
|
|
|
2632
2633
|
projectChangelogs
|
|
2633
2634
|
)) {
|
|
2634
2635
|
if (!projectGraph.nodes[projectName]?.data.root) {
|
|
2635
|
-
|
|
2636
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
2636
2637
|
`A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
|
|
2637
2638
|
workspaceConfig
|
|
2638
2639
|
);
|
|
2639
2640
|
} else if (projectChangelog.contents) {
|
|
2640
|
-
const filePath =
|
|
2641
|
+
const filePath = chunkMEDWSATF_cjs.joinPaths(
|
|
2641
2642
|
projectGraph.nodes[projectName].data.root,
|
|
2642
2643
|
"CHANGELOG.md"
|
|
2643
2644
|
);
|
|
@@ -2645,7 +2646,7 @@ async function generateChangelogForProjects({
|
|
|
2645
2646
|
if (fs$1.existsSync(filePath)) {
|
|
2646
2647
|
currentContent = await fs.readFile(filePath, "utf8");
|
|
2647
2648
|
}
|
|
2648
|
-
|
|
2649
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2649
2650
|
`\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
|
|
2650
2651
|
workspaceConfig
|
|
2651
2652
|
);
|
|
@@ -2863,12 +2864,12 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2863
2864
|
if (!matchingTags.length) {
|
|
2864
2865
|
return null;
|
|
2865
2866
|
}
|
|
2866
|
-
|
|
2867
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2867
2868
|
`Found ${matchingTags.length} matching tags out of ${tags.length} total tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2868
2869
|
workspaceConfig
|
|
2869
2870
|
);
|
|
2870
2871
|
if (!strictPreid) {
|
|
2871
|
-
|
|
2872
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
2872
2873
|
`Not using strict preid, will use the greatest matching tag of project "${additionalInterpolationData.projectName}":
|
|
2873
2874
|
${matchingTags.join(", ")}`,
|
|
2874
2875
|
workspaceConfig
|
|
@@ -2881,7 +2882,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2881
2882
|
const [, version] = matches;
|
|
2882
2883
|
return version && !shared.isPrerelease(version);
|
|
2883
2884
|
});
|
|
2884
|
-
|
|
2885
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2885
2886
|
`Found ${stableReleaseTags.length} stable tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2886
2887
|
workspaceConfig
|
|
2887
2888
|
);
|
|
@@ -2892,7 +2893,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2892
2893
|
const version = match.find((part) => part.match(SEMVER_REGEX));
|
|
2893
2894
|
return version && version.includes(`-${preid}.`);
|
|
2894
2895
|
});
|
|
2895
|
-
|
|
2896
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2896
2897
|
`Found ${preidReleaseTags.length} preid tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2897
2898
|
workspaceConfig
|
|
2898
2899
|
);
|
|
@@ -2901,12 +2902,12 @@ ${matchingTags.join(", ")}`,
|
|
|
2901
2902
|
const stableResult = compareTags(stableReleaseTags, tagRegexp, options);
|
|
2902
2903
|
const preidBaseVersion = semver.coerce(preidResult.extractedVersion)?.version;
|
|
2903
2904
|
const stableVersion = semver.coerce(stableResult.extractedVersion)?.version;
|
|
2904
|
-
|
|
2905
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2905
2906
|
`Extracted preid version: ${preidBaseVersion} and stable version: ${stableVersion} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2906
2907
|
workspaceConfig
|
|
2907
2908
|
);
|
|
2908
2909
|
if (preidBaseVersion && stableVersion && semver.gte(stableVersion, preidBaseVersion)) {
|
|
2909
|
-
|
|
2910
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2910
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})`,
|
|
2911
2912
|
workspaceConfig
|
|
2912
2913
|
);
|
|
@@ -2915,7 +2916,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2915
2916
|
return preidResult;
|
|
2916
2917
|
}
|
|
2917
2918
|
if (preidReleaseTags.length > 0) {
|
|
2918
|
-
|
|
2919
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2919
2920
|
`Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2920
2921
|
workspaceConfig
|
|
2921
2922
|
);
|
|
@@ -2923,7 +2924,7 @@ ${matchingTags.join(", ")}`,
|
|
|
2923
2924
|
}
|
|
2924
2925
|
}
|
|
2925
2926
|
if (stableReleaseTags.length > 0) {
|
|
2926
|
-
|
|
2927
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
2927
2928
|
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2928
2929
|
workspaceConfig
|
|
2929
2930
|
);
|
|
@@ -2977,7 +2978,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
|
|
|
2977
2978
|
}
|
|
2978
2979
|
async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
|
|
2979
2980
|
if (!this.workspaceConfig) {
|
|
2980
|
-
this.workspaceConfig = await
|
|
2981
|
+
this.workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
2981
2982
|
}
|
|
2982
2983
|
const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
|
|
2983
2984
|
return super.createOrUpdateRelease(
|
|
@@ -3170,7 +3171,7 @@ async function format3(path, data) {
|
|
|
3170
3171
|
if (resolvedConfig) {
|
|
3171
3172
|
code = await prettier.format(
|
|
3172
3173
|
data,
|
|
3173
|
-
|
|
3174
|
+
chunkMEDWSATF_cjs.defu(
|
|
3174
3175
|
{
|
|
3175
3176
|
absolutePath: path,
|
|
3176
3177
|
...resolvedConfig
|
|
@@ -3226,7 +3227,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
3226
3227
|
}
|
|
3227
3228
|
async render() {
|
|
3228
3229
|
if (!this.workspaceConfig) {
|
|
3229
|
-
this.workspaceConfig = await
|
|
3230
|
+
this.workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
3230
3231
|
}
|
|
3231
3232
|
return super.render();
|
|
3232
3233
|
}
|
|
@@ -3533,7 +3534,7 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
|
|
|
3533
3534
|
var DEFAULT_RELEASE_CONFIG = {
|
|
3534
3535
|
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
|
|
3535
3536
|
groups: {
|
|
3536
|
-
packages:
|
|
3537
|
+
packages: chunkMEDWSATF_cjs.defu(
|
|
3537
3538
|
{
|
|
3538
3539
|
projects: ["packages/*"]
|
|
3539
3540
|
},
|
|
@@ -3541,7 +3542,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3541
3542
|
DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3542
3543
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
3543
3544
|
),
|
|
3544
|
-
crates:
|
|
3545
|
+
crates: chunkMEDWSATF_cjs.defu(
|
|
3545
3546
|
{
|
|
3546
3547
|
projects: ["crates/*"]
|
|
3547
3548
|
},
|
|
@@ -3564,7 +3565,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3564
3565
|
}
|
|
3565
3566
|
};
|
|
3566
3567
|
function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
|
|
3567
|
-
return
|
|
3568
|
+
return chunkMEDWSATF_cjs.defu(
|
|
3568
3569
|
{
|
|
3569
3570
|
...omit(defaultConfig, ["changelog", "version"]),
|
|
3570
3571
|
...config5
|
|
@@ -3595,7 +3596,7 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3595
3596
|
projectGraph.nodes
|
|
3596
3597
|
);
|
|
3597
3598
|
if (!matchingProjects.length) {
|
|
3598
|
-
|
|
3599
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
3599
3600
|
`Release group "${name}" does not have any matching projects.`
|
|
3600
3601
|
);
|
|
3601
3602
|
return void 0;
|
|
@@ -3615,13 +3616,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3615
3616
|
ProjectTagConstants.Language.TAG_ID,
|
|
3616
3617
|
ProjectTagConstants.Language.TYPESCRIPT
|
|
3617
3618
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3618
|
-
|
|
3619
|
+
chunkMEDWSATF_cjs.joinPaths(
|
|
3619
3620
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3620
3621
|
"package.json"
|
|
3621
3622
|
)
|
|
3622
3623
|
))
|
|
3623
3624
|
)) {
|
|
3624
|
-
defaultConfig =
|
|
3625
|
+
defaultConfig = chunkMEDWSATF_cjs.defu(
|
|
3625
3626
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3626
3627
|
DEFAULT_JS_RELEASE_GROUP_CONFIG,
|
|
3627
3628
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3632,13 +3633,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3632
3633
|
ProjectTagConstants.Language.TAG_ID,
|
|
3633
3634
|
ProjectTagConstants.Language.RUST
|
|
3634
3635
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3635
|
-
|
|
3636
|
+
chunkMEDWSATF_cjs.joinPaths(
|
|
3636
3637
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3637
3638
|
"Cargo.toml"
|
|
3638
3639
|
)
|
|
3639
3640
|
))
|
|
3640
3641
|
)) {
|
|
3641
|
-
defaultConfig =
|
|
3642
|
+
defaultConfig = chunkMEDWSATF_cjs.defu(
|
|
3642
3643
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3643
3644
|
DEFAULT_RUST_RELEASE_GROUP_CONFIG,
|
|
3644
3645
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3652,13 +3653,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3652
3653
|
config5.projects = matchingProjects;
|
|
3653
3654
|
if (workspaceConfig?.workspaceRoot) {
|
|
3654
3655
|
if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
|
|
3655
|
-
config5.changelog.renderer =
|
|
3656
|
+
config5.changelog.renderer = chunkMEDWSATF_cjs.joinPaths(
|
|
3656
3657
|
workspaceConfig.workspaceRoot,
|
|
3657
3658
|
config5.changelog.renderer
|
|
3658
3659
|
);
|
|
3659
3660
|
}
|
|
3660
3661
|
if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
|
|
3661
|
-
config5.version.versionActions =
|
|
3662
|
+
config5.version.versionActions = chunkMEDWSATF_cjs.joinPaths(
|
|
3662
3663
|
workspaceConfig.workspaceRoot,
|
|
3663
3664
|
config5.version?.versionActions
|
|
3664
3665
|
);
|
|
@@ -3670,10 +3671,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3670
3671
|
}
|
|
3671
3672
|
function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
|
|
3672
3673
|
let nxJson$1 = {};
|
|
3673
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(
|
|
3674
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunkMEDWSATF_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3674
3675
|
nxJson$1 = nxJson.readNxJson();
|
|
3675
3676
|
}
|
|
3676
|
-
const baseConfig =
|
|
3677
|
+
const baseConfig = chunkMEDWSATF_cjs.defu(
|
|
3677
3678
|
{
|
|
3678
3679
|
changelog: {
|
|
3679
3680
|
renderOptions: {
|
|
@@ -3690,7 +3691,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3690
3691
|
if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
|
|
3691
3692
|
groups = releaseConfig.groups;
|
|
3692
3693
|
if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
|
|
3693
|
-
groups =
|
|
3694
|
+
groups = chunkMEDWSATF_cjs.defu(
|
|
3694
3695
|
groups,
|
|
3695
3696
|
nxJson$1.release.groups
|
|
3696
3697
|
);
|
|
@@ -3710,7 +3711,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3710
3711
|
};
|
|
3711
3712
|
}
|
|
3712
3713
|
function formatConfigLog(config5) {
|
|
3713
|
-
return
|
|
3714
|
+
return chunkMEDWSATF_cjs.formatLogMessage(config5, {
|
|
3714
3715
|
sort: true,
|
|
3715
3716
|
skip: ["workspaceConfig", "conventionalCommits"]
|
|
3716
3717
|
});
|
|
@@ -4123,7 +4124,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
4123
4124
|
this.resolveRepositoryTags.bind(this),
|
|
4124
4125
|
options
|
|
4125
4126
|
);
|
|
4126
|
-
|
|
4127
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
4127
4128
|
`Group release tag pattern: ${releaseTagPattern}
|
|
4128
4129
|
Project release tag pattern: ${projectReleaseTagPattern}
|
|
4129
4130
|
Group release tag: ${groupReleaseTag?.tag}
|
|
@@ -4147,7 +4148,7 @@ Project release tag: ${projectReleaseTag?.tag}`,
|
|
|
4147
4148
|
options
|
|
4148
4149
|
);
|
|
4149
4150
|
}
|
|
4150
|
-
|
|
4151
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
4151
4152
|
`Resolved latest matching git tag for "${projectName}": ${latestMatchingGitTag?.tag} (version: ${latestMatchingGitTag?.extractedVersion})`,
|
|
4152
4153
|
this.workspaceConfig
|
|
4153
4154
|
);
|
|
@@ -4417,7 +4418,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4417
4418
|
constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
|
|
4418
4419
|
super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
|
|
4419
4420
|
dryRun: !!versionOptions.dryRun,
|
|
4420
|
-
verbose: versionOptions.verbose ||
|
|
4421
|
+
verbose: versionOptions.verbose || chunkMEDWSATF_cjs.isVerbose(workspaceConfig.logLevel),
|
|
4421
4422
|
firstRelease: !!versionOptions.firstRelease,
|
|
4422
4423
|
preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
|
|
4423
4424
|
userGivenSpecifier: versionOptions.specifier,
|
|
@@ -4515,7 +4516,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4515
4516
|
deletedFiles: deletedFilesForVersionActions
|
|
4516
4517
|
} = await afterAllProjectsVersioned(this.#tree.root, {
|
|
4517
4518
|
dryRun: this.versionOptions.dryRun,
|
|
4518
|
-
verbose: this.versionOptions.verbose ||
|
|
4519
|
+
verbose: this.versionOptions.verbose || chunkMEDWSATF_cjs.isVerbose(this.workspaceConfig.logLevel),
|
|
4519
4520
|
rootVersionActionsOptions
|
|
4520
4521
|
});
|
|
4521
4522
|
for (const file of changedFilesForVersionActions) {
|
|
@@ -4548,7 +4549,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4548
4549
|
let handleDockerVersion;
|
|
4549
4550
|
try {
|
|
4550
4551
|
const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
|
|
4551
|
-
const { handleDockerVersion: _handleDockerVersion } =
|
|
4552
|
+
const { handleDockerVersion: _handleDockerVersion } = chunkMEDWSATF_cjs.__require(dockerVersionUtilsPath);
|
|
4552
4553
|
handleDockerVersion = _handleDockerVersion;
|
|
4553
4554
|
} catch (e) {
|
|
4554
4555
|
console.error(
|
|
@@ -4636,12 +4637,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4636
4637
|
for (const project of releaseGroup.projects) {
|
|
4637
4638
|
const currentVersion = this.#getCurrentCachedVersionForProject(project);
|
|
4638
4639
|
if (!currentVersion) {
|
|
4639
|
-
|
|
4640
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
4640
4641
|
`No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
4641
4642
|
this.workspaceConfig
|
|
4642
4643
|
);
|
|
4643
4644
|
} else {
|
|
4644
|
-
|
|
4645
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
4645
4646
|
`Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
|
|
4646
4647
|
this.workspaceConfig
|
|
4647
4648
|
);
|
|
@@ -4667,7 +4668,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4667
4668
|
reasonData: newVersionInputReasonData
|
|
4668
4669
|
};
|
|
4669
4670
|
}
|
|
4670
|
-
|
|
4671
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
4671
4672
|
`Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
|
|
4672
4673
|
this.workspaceConfig
|
|
4673
4674
|
);
|
|
@@ -5120,7 +5121,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
5120
5121
|
var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
|
|
5121
5122
|
static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
|
|
5122
5123
|
if (!workspaceConfig) {
|
|
5123
|
-
workspaceConfig = await
|
|
5124
|
+
workspaceConfig = await chunkMEDWSATF_cjs.getWorkspaceConfig();
|
|
5124
5125
|
}
|
|
5125
5126
|
const projectGraph = await devkit.createProjectGraphAsync({
|
|
5126
5127
|
exitOnError: true,
|
|
@@ -5131,7 +5132,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
5131
5132
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
5132
5133
|
);
|
|
5133
5134
|
}
|
|
5134
|
-
|
|
5135
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
5135
5136
|
`Provided release configuration:
|
|
5136
5137
|
${formatConfigLog(releaseConfig)}`,
|
|
5137
5138
|
workspaceConfig
|
|
@@ -5142,7 +5143,7 @@ ${formatConfigLog(releaseConfig)}`,
|
|
|
5142
5143
|
workspaceConfig,
|
|
5143
5144
|
ignoreNxJsonConfig
|
|
5144
5145
|
);
|
|
5145
|
-
|
|
5146
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5146
5147
|
`Resolved release configuration:
|
|
5147
5148
|
${formatConfigLog(config5)}`,
|
|
5148
5149
|
workspaceConfig
|
|
@@ -5179,11 +5180,11 @@ ${formatConfigLog(config5)}`,
|
|
|
5179
5180
|
*/
|
|
5180
5181
|
constructor(projectGraph, releaseConfig, workspaceConfig) {
|
|
5181
5182
|
super(releaseConfig, true);
|
|
5182
|
-
|
|
5183
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5183
5184
|
"Executing release with the following configuration",
|
|
5184
5185
|
workspaceConfig
|
|
5185
5186
|
);
|
|
5186
|
-
|
|
5187
|
+
chunkMEDWSATF_cjs.writeDebug(releaseConfig, workspaceConfig);
|
|
5187
5188
|
this.projectGraph = projectGraph;
|
|
5188
5189
|
this.releaseConfig = releaseConfig;
|
|
5189
5190
|
this.workspaceConfig = workspaceConfig;
|
|
@@ -5211,7 +5212,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5211
5212
|
groups: options.groups
|
|
5212
5213
|
},
|
|
5213
5214
|
firstRelease: !!options.firstRelease,
|
|
5214
|
-
verbose:
|
|
5215
|
+
verbose: chunkMEDWSATF_cjs.isVerbose(this.workspaceConfig.logLevel)
|
|
5215
5216
|
},
|
|
5216
5217
|
this.workspaceConfig
|
|
5217
5218
|
);
|
|
@@ -5341,7 +5342,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5341
5342
|
})),
|
|
5342
5343
|
this.releaseConfig.conventionalCommits
|
|
5343
5344
|
);
|
|
5344
|
-
|
|
5345
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5345
5346
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5346
5347
|
this.workspaceConfig
|
|
5347
5348
|
);
|
|
@@ -5416,7 +5417,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5416
5417
|
})),
|
|
5417
5418
|
this.releaseConfig.conventionalCommits
|
|
5418
5419
|
);
|
|
5419
|
-
|
|
5420
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5420
5421
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5421
5422
|
this.workspaceConfig
|
|
5422
5423
|
);
|
|
@@ -5445,7 +5446,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5445
5446
|
}
|
|
5446
5447
|
}
|
|
5447
5448
|
}
|
|
5448
|
-
|
|
5449
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5449
5450
|
`Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
|
|
5450
5451
|
${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
5451
5452
|
`,
|
|
@@ -5474,7 +5475,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5474
5475
|
);
|
|
5475
5476
|
const changes = this.tree.listChanges();
|
|
5476
5477
|
if (!changes.length) {
|
|
5477
|
-
|
|
5478
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5478
5479
|
"No changes were detected for any changelog files, so no changelog entries will be generated.",
|
|
5479
5480
|
this.workspaceConfig
|
|
5480
5481
|
);
|
|
@@ -5496,7 +5497,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5496
5497
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
|
|
5497
5498
|
});
|
|
5498
5499
|
latestCommit = await git.getCommitHash("HEAD");
|
|
5499
|
-
|
|
5500
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5500
5501
|
`Creating git tags: ${gitTagValues.join(", ")}`,
|
|
5501
5502
|
this.workspaceConfig
|
|
5502
5503
|
);
|
|
@@ -5509,7 +5510,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5509
5510
|
verbose: options.verbose
|
|
5510
5511
|
});
|
|
5511
5512
|
}
|
|
5512
|
-
|
|
5513
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5513
5514
|
`Pushing to git remote "${options.gitRemote ?? "origin"}"`,
|
|
5514
5515
|
this.workspaceConfig
|
|
5515
5516
|
);
|
|
@@ -5525,7 +5526,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5525
5526
|
return;
|
|
5526
5527
|
};
|
|
5527
5528
|
releaseVersion = async (options) => {
|
|
5528
|
-
const verbose = options.verbose ||
|
|
5529
|
+
const verbose = options.verbose || chunkMEDWSATF_cjs.isVerbose(this.workspaceConfig.logLevel);
|
|
5529
5530
|
this.projectGraph = await devkit.createProjectGraphAsync({
|
|
5530
5531
|
exitOnError: true,
|
|
5531
5532
|
resetDaemonClient: true
|
|
@@ -5552,7 +5553,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5552
5553
|
this.workspaceConfig
|
|
5553
5554
|
);
|
|
5554
5555
|
if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
|
|
5555
|
-
|
|
5556
|
+
chunkMEDWSATF_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
|
|
5556
5557
|
}
|
|
5557
5558
|
if (!options.specifier) {
|
|
5558
5559
|
const rawVersionPlans = await versionPlans.readRawVersionPlans();
|
|
@@ -5571,7 +5572,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5571
5572
|
}
|
|
5572
5573
|
} else {
|
|
5573
5574
|
if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
|
|
5574
|
-
|
|
5575
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5575
5576
|
`Skipping version plan discovery as a specifier was provided`,
|
|
5576
5577
|
this.workspaceConfig
|
|
5577
5578
|
);
|
|
@@ -5581,7 +5582,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5581
5582
|
options.deleteVersionPlans = false;
|
|
5582
5583
|
}
|
|
5583
5584
|
if (this.releaseConfig.version?.preVersionCommand) {
|
|
5584
|
-
|
|
5585
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5585
5586
|
"Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
|
|
5586
5587
|
this.workspaceConfig
|
|
5587
5588
|
);
|
|
@@ -5617,7 +5618,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5617
5618
|
continue;
|
|
5618
5619
|
}
|
|
5619
5620
|
if (releaseGroup.version?.groupPreVersionCommand) {
|
|
5620
|
-
|
|
5621
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5621
5622
|
`Executing the ${releaseGroup.name} release group's pre-version command:
|
|
5622
5623
|
` + releaseGroup.version?.groupPreVersionCommand,
|
|
5623
5624
|
this.workspaceConfig
|
|
@@ -5677,7 +5678,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5677
5678
|
changed.forEach((f) => additionalChangedFiles.add(f));
|
|
5678
5679
|
deleted.forEach((f) => additionalDeletedFiles.add(f));
|
|
5679
5680
|
if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
|
|
5680
|
-
|
|
5681
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5681
5682
|
`Executing the docker pre-version command:
|
|
5682
5683
|
` + this.releaseConfig.docker.preVersionCommand,
|
|
5683
5684
|
this.workspaceConfig
|
|
@@ -5714,7 +5715,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5714
5715
|
continue;
|
|
5715
5716
|
}
|
|
5716
5717
|
if (releaseGroup.docker?.groupPreVersionCommand) {
|
|
5717
|
-
|
|
5718
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5718
5719
|
`Executing the ${releaseGroup.name} release group's docker pre-version command:
|
|
5719
5720
|
` + releaseGroup.docker?.groupPreVersionCommand,
|
|
5720
5721
|
this.workspaceConfig
|
|
@@ -5745,7 +5746,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5745
5746
|
}
|
|
5746
5747
|
}
|
|
5747
5748
|
if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
|
|
5748
|
-
|
|
5749
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5749
5750
|
formatNxLog({
|
|
5750
5751
|
title: "Warning",
|
|
5751
5752
|
bodyLines: [
|
|
@@ -5802,7 +5803,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5802
5803
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
|
|
5803
5804
|
});
|
|
5804
5805
|
} else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
|
|
5805
|
-
|
|
5806
|
+
chunkMEDWSATF_cjs.writeDebug(`Staging changed files with git`);
|
|
5806
5807
|
await git.gitAdd({
|
|
5807
5808
|
changedFiles,
|
|
5808
5809
|
deletedFiles,
|
|
@@ -5811,7 +5812,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5811
5812
|
});
|
|
5812
5813
|
}
|
|
5813
5814
|
if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
|
|
5814
|
-
|
|
5815
|
+
chunkMEDWSATF_cjs.writeDebug(`Tagging commit with git`);
|
|
5815
5816
|
for (const tag of gitTagValues) {
|
|
5816
5817
|
await gitTag({
|
|
5817
5818
|
tag,
|
|
@@ -5823,7 +5824,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5823
5824
|
}
|
|
5824
5825
|
}
|
|
5825
5826
|
if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
|
|
5826
|
-
|
|
5827
|
+
chunkMEDWSATF_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
|
|
5827
5828
|
await git.gitPush({
|
|
5828
5829
|
gitRemote: options.gitRemote,
|
|
5829
5830
|
dryRun: options.dryRun,
|
|
@@ -5854,7 +5855,7 @@ var runRelease = async (config5, {
|
|
|
5854
5855
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
5855
5856
|
}
|
|
5856
5857
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
5857
|
-
|
|
5858
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
5858
5859
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
5859
5860
|
config5
|
|
5860
5861
|
);
|
|
@@ -5871,23 +5872,23 @@ var runRelease = async (config5, {
|
|
|
5871
5872
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5872
5873
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5873
5874
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
5874
|
-
|
|
5875
|
+
chunkMEDWSATF_cjs.writeDebug("Creating Storm release client...", config5);
|
|
5875
5876
|
const releaseClient = await StormReleaseClient.create(
|
|
5876
5877
|
releaseConfig,
|
|
5877
5878
|
ignoreNxJsonConfig,
|
|
5878
5879
|
config5
|
|
5879
5880
|
);
|
|
5880
|
-
|
|
5881
|
+
chunkMEDWSATF_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
5881
5882
|
const to = head || process.env.NX_HEAD;
|
|
5882
5883
|
const from = base || process.env.NX_BASE;
|
|
5883
|
-
|
|
5884
|
+
chunkMEDWSATF_cjs.writeDebug(
|
|
5884
5885
|
`Using the following Git SHAs to determine the release content:
|
|
5885
5886
|
- From: ${from}
|
|
5886
5887
|
- To: ${to}
|
|
5887
5888
|
`,
|
|
5888
5889
|
config5
|
|
5889
5890
|
);
|
|
5890
|
-
|
|
5891
|
+
chunkMEDWSATF_cjs.writeDebug("Determining the current release versions...", config5);
|
|
5891
5892
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
5892
5893
|
dryRun,
|
|
5893
5894
|
verbose: true,
|
|
@@ -5904,9 +5905,9 @@ var runRelease = async (config5, {
|
|
|
5904
5905
|
from,
|
|
5905
5906
|
releaseGraph
|
|
5906
5907
|
});
|
|
5907
|
-
|
|
5908
|
+
chunkMEDWSATF_cjs.writeDebug("Tagging commit with git", config5);
|
|
5908
5909
|
if (skipPublish) {
|
|
5909
|
-
|
|
5910
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5910
5911
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
5911
5912
|
config5
|
|
5912
5913
|
);
|
|
@@ -5915,7 +5916,7 @@ var runRelease = async (config5, {
|
|
|
5915
5916
|
(key) => projectsVersionData[key]?.newVersion
|
|
5916
5917
|
);
|
|
5917
5918
|
if (changedProjects.length > 0) {
|
|
5918
|
-
|
|
5919
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
5919
5920
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
5920
5921
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
5921
5922
|
`,
|
|
@@ -5939,10 +5940,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
5939
5940
|
);
|
|
5940
5941
|
}
|
|
5941
5942
|
} else {
|
|
5942
|
-
|
|
5943
|
+
chunkMEDWSATF_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
5943
5944
|
}
|
|
5944
5945
|
}
|
|
5945
|
-
|
|
5946
|
+
chunkMEDWSATF_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
5946
5947
|
};
|
|
5947
5948
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
5948
5949
|
let projectGraph;
|
|
@@ -5957,7 +5958,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5957
5958
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
5958
5959
|
const projectNode = projectGraph.nodes[node];
|
|
5959
5960
|
if (!projectNode?.data.root) {
|
|
5960
|
-
|
|
5961
|
+
chunkMEDWSATF_cjs.writeWarning(
|
|
5961
5962
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
5962
5963
|
config5
|
|
5963
5964
|
);
|
|
@@ -5965,17 +5966,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5965
5966
|
}
|
|
5966
5967
|
const versionData = projectsVersionData[node];
|
|
5967
5968
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
5968
|
-
|
|
5969
|
+
chunkMEDWSATF_cjs.writeTrace(
|
|
5969
5970
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
5970
5971
|
`,
|
|
5971
5972
|
config5
|
|
5972
5973
|
);
|
|
5973
|
-
const projectRoot =
|
|
5974
|
+
const projectRoot = chunkMEDWSATF_cjs.joinPaths(
|
|
5974
5975
|
config5.workspaceRoot,
|
|
5975
5976
|
projectNode.data.root
|
|
5976
5977
|
);
|
|
5977
|
-
const packageJsonPath =
|
|
5978
|
-
const cargoTomlPath =
|
|
5978
|
+
const packageJsonPath = chunkMEDWSATF_cjs.joinPaths(projectRoot, "package.json");
|
|
5979
|
+
const cargoTomlPath = chunkMEDWSATF_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
5979
5980
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
5980
5981
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
5981
5982
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -5993,7 +5994,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5993
5994
|
})
|
|
5994
5995
|
);
|
|
5995
5996
|
} else {
|
|
5996
|
-
|
|
5997
|
+
chunkMEDWSATF_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
5997
5998
|
}
|
|
5998
5999
|
}
|
|
5999
6000
|
|
|
@@ -6001,8 +6002,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
6001
6002
|
var _config = {};
|
|
6002
6003
|
function createProgram(config5) {
|
|
6003
6004
|
_config = config5;
|
|
6004
|
-
|
|
6005
|
-
const root =
|
|
6005
|
+
chunkMEDWSATF_cjs.writeInfo(`${chunkMEDWSATF_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
|
|
6006
|
+
const root = chunkMEDWSATF_cjs.findWorkspaceRootSafe(process.cwd());
|
|
6006
6007
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
6007
6008
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
6008
6009
|
if (root) {
|
|
@@ -6049,12 +6050,12 @@ async function commitAction({
|
|
|
6049
6050
|
dryRun = false
|
|
6050
6051
|
}) {
|
|
6051
6052
|
try {
|
|
6052
|
-
|
|
6053
|
-
`${
|
|
6053
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6054
|
+
`${chunkMEDWSATF_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
|
|
6054
6055
|
_config
|
|
6055
6056
|
);
|
|
6056
6057
|
await runCommit(config5, dryRun);
|
|
6057
|
-
|
|
6058
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6058
6059
|
`\u2714 Storm Commit processing completed successfully!
|
|
6059
6060
|
|
|
6060
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}
|
|
@@ -6062,7 +6063,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
6062
6063
|
_config
|
|
6063
6064
|
);
|
|
6064
6065
|
} catch (error) {
|
|
6065
|
-
|
|
6066
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6066
6067
|
`A fatal error occurred while running commit action:
|
|
6067
6068
|
|
|
6068
6069
|
${error.message}${error.stack ? `
|
|
@@ -6077,17 +6078,17 @@ Please fix any errors and try committing again.`,
|
|
|
6077
6078
|
}
|
|
6078
6079
|
async function readmeAction(options) {
|
|
6079
6080
|
try {
|
|
6080
|
-
|
|
6081
|
-
`${
|
|
6081
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6082
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
|
|
6082
6083
|
_config
|
|
6083
6084
|
);
|
|
6084
6085
|
await runReadme(options);
|
|
6085
|
-
|
|
6086
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6086
6087
|
"\u2714 Formatting of the workspace's README.md files is complete\n",
|
|
6087
6088
|
_config
|
|
6088
6089
|
);
|
|
6089
6090
|
} catch (error) {
|
|
6090
|
-
|
|
6091
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6091
6092
|
`A fatal error occurred while running README format action:
|
|
6092
6093
|
|
|
6093
6094
|
${error.message}`
|
|
@@ -6102,8 +6103,8 @@ async function releaseAction({
|
|
|
6102
6103
|
dryRun
|
|
6103
6104
|
}) {
|
|
6104
6105
|
try {
|
|
6105
|
-
|
|
6106
|
-
`${
|
|
6106
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6107
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
|
|
6107
6108
|
_config
|
|
6108
6109
|
);
|
|
6109
6110
|
await runRelease(_config, {
|
|
@@ -6112,9 +6113,9 @@ async function releaseAction({
|
|
|
6112
6113
|
base,
|
|
6113
6114
|
head
|
|
6114
6115
|
});
|
|
6115
|
-
|
|
6116
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
|
|
6116
6117
|
} catch (error) {
|
|
6117
|
-
|
|
6118
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6118
6119
|
`A fatal error occurred while running release action:
|
|
6119
6120
|
|
|
6120
6121
|
${error.message} ${error.stack ? `
|
|
@@ -6128,17 +6129,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
6128
6129
|
}
|
|
6129
6130
|
async function commitLintAction(options) {
|
|
6130
6131
|
try {
|
|
6131
|
-
|
|
6132
|
-
`${
|
|
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.`,
|
|
6133
6134
|
_config
|
|
6134
6135
|
);
|
|
6135
6136
|
await runCommitLint(_config, options);
|
|
6136
|
-
|
|
6137
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6137
6138
|
"\u2714 Linting the commit messages completed successfully!\n",
|
|
6138
6139
|
_config
|
|
6139
6140
|
);
|
|
6140
6141
|
} catch (error) {
|
|
6141
|
-
|
|
6142
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6142
6143
|
`A fatal error occurred while linting the commit messages:
|
|
6143
6144
|
|
|
6144
6145
|
${error.message}`,
|
|
@@ -6149,14 +6150,14 @@ ${error.message}`,
|
|
|
6149
6150
|
}
|
|
6150
6151
|
async function postCheckoutAction({ files }) {
|
|
6151
6152
|
try {
|
|
6152
|
-
|
|
6153
|
-
`${
|
|
6153
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6154
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
6154
6155
|
_config
|
|
6155
6156
|
);
|
|
6156
|
-
await
|
|
6157
|
-
|
|
6157
|
+
await chunkP6GZDOJU_cjs.postCheckoutHook(_config, files);
|
|
6158
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
|
|
6158
6159
|
} catch (error) {
|
|
6159
|
-
|
|
6160
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6160
6161
|
`A fatal error occurred while running the post-checkout hook:
|
|
6161
6162
|
|
|
6162
6163
|
${error.message}`,
|
|
@@ -6167,14 +6168,14 @@ ${error.message}`,
|
|
|
6167
6168
|
}
|
|
6168
6169
|
async function postCommitAction({ files }) {
|
|
6169
6170
|
try {
|
|
6170
|
-
|
|
6171
|
-
`${
|
|
6171
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6172
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
6172
6173
|
_config
|
|
6173
6174
|
);
|
|
6174
|
-
await
|
|
6175
|
-
|
|
6175
|
+
await chunkF7DR27M6_cjs.postCommitHook(_config, files);
|
|
6176
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
|
|
6176
6177
|
} catch (error) {
|
|
6177
|
-
|
|
6178
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6178
6179
|
`A fatal error occurred while running the post-commit hook:
|
|
6179
6180
|
|
|
6180
6181
|
${error.message}`,
|
|
@@ -6185,14 +6186,14 @@ ${error.message}`,
|
|
|
6185
6186
|
}
|
|
6186
6187
|
async function postMergeAction({ files }) {
|
|
6187
6188
|
try {
|
|
6188
|
-
|
|
6189
|
-
`${
|
|
6189
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6190
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
6190
6191
|
_config
|
|
6191
6192
|
);
|
|
6192
|
-
await
|
|
6193
|
-
|
|
6193
|
+
await chunkX6OUWIBF_cjs.postMergeHook(_config, files);
|
|
6194
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
|
|
6194
6195
|
} catch (error) {
|
|
6195
|
-
|
|
6196
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6196
6197
|
`A fatal error occurred while running the post-merge hook:
|
|
6197
6198
|
|
|
6198
6199
|
${error.message}`,
|
|
@@ -6203,14 +6204,14 @@ ${error.message}`,
|
|
|
6203
6204
|
}
|
|
6204
6205
|
async function preCommitAction({ files }) {
|
|
6205
6206
|
try {
|
|
6206
|
-
|
|
6207
|
-
`${
|
|
6207
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6208
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
6208
6209
|
_config
|
|
6209
6210
|
);
|
|
6210
|
-
await
|
|
6211
|
-
|
|
6211
|
+
await chunkWSO2CLZQ_cjs.preCommitHook(_config, files);
|
|
6212
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
|
|
6212
6213
|
} catch (error) {
|
|
6213
|
-
|
|
6214
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6214
6215
|
`A fatal error occurred while running the pre-commit hook:
|
|
6215
6216
|
|
|
6216
6217
|
${error.message}`,
|
|
@@ -6221,14 +6222,14 @@ ${error.message}`,
|
|
|
6221
6222
|
}
|
|
6222
6223
|
async function prePushAction({ files }) {
|
|
6223
6224
|
try {
|
|
6224
|
-
|
|
6225
|
-
`${
|
|
6225
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6226
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
6226
6227
|
_config
|
|
6227
6228
|
);
|
|
6228
|
-
await
|
|
6229
|
-
|
|
6229
|
+
await chunkDPV4WJQX_cjs.prePushHook(_config, files);
|
|
6230
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
|
|
6230
6231
|
} catch (error) {
|
|
6231
|
-
|
|
6232
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6232
6233
|
`A fatal error occurred while running the pre-push hook:
|
|
6233
6234
|
|
|
6234
6235
|
${error.message}`,
|
|
@@ -6239,14 +6240,14 @@ ${error.message}`,
|
|
|
6239
6240
|
}
|
|
6240
6241
|
async function prepareAction() {
|
|
6241
6242
|
try {
|
|
6242
|
-
|
|
6243
|
-
`${
|
|
6243
|
+
chunkMEDWSATF_cjs.writeInfo(
|
|
6244
|
+
`${chunkMEDWSATF_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
6244
6245
|
_config
|
|
6245
6246
|
);
|
|
6246
|
-
await
|
|
6247
|
-
|
|
6247
|
+
await chunkCKFNJZL7_cjs.prepareHook(_config);
|
|
6248
|
+
chunkMEDWSATF_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
|
|
6248
6249
|
} catch (error) {
|
|
6249
|
-
|
|
6250
|
+
chunkMEDWSATF_cjs.writeFatal(
|
|
6250
6251
|
`A fatal error occurred while running the prepare hook:
|
|
6251
6252
|
|
|
6252
6253
|
${error.message}`,
|
|
@@ -6258,18 +6259,18 @@ ${error.message}`,
|
|
|
6258
6259
|
|
|
6259
6260
|
// bin/git.ts
|
|
6260
6261
|
void (async () => {
|
|
6261
|
-
const config5 = await
|
|
6262
|
+
const config5 = await chunkMEDWSATF_cjs.getConfig();
|
|
6262
6263
|
try {
|
|
6263
|
-
|
|
6264
|
+
chunkMEDWSATF_cjs.handleProcess(config5);
|
|
6264
6265
|
const program = createProgram(config5);
|
|
6265
6266
|
await program.parseAsync(process.argv);
|
|
6266
|
-
|
|
6267
|
+
chunkMEDWSATF_cjs.writeSuccess(
|
|
6267
6268
|
`\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
6268
6269
|
config5
|
|
6269
6270
|
);
|
|
6270
|
-
|
|
6271
|
+
chunkMEDWSATF_cjs.exitWithSuccess(config5);
|
|
6271
6272
|
} catch (error) {
|
|
6272
|
-
|
|
6273
|
+
chunkMEDWSATF_cjs.exitWithError(config5);
|
|
6273
6274
|
process.exit(1);
|
|
6274
6275
|
}
|
|
6275
6276
|
})();
|