@storm-software/git-tools 2.131.21 → 2.131.23
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-K3M4EFXG.js → chunk-2JR3HPAL.js} +3 -3
- package/bin/{chunk-K3M4EFXG.js.map → chunk-2JR3HPAL.js.map} +1 -1
- package/bin/{chunk-2K6K4B6C.js → chunk-5OEE2E65.js} +3 -3
- package/bin/{chunk-2K6K4B6C.js.map → chunk-5OEE2E65.js.map} +1 -1
- package/bin/{chunk-7FLNOTUH.cjs → chunk-77NN2DPB.cjs} +4 -4
- package/bin/{chunk-7FLNOTUH.cjs.map → chunk-77NN2DPB.cjs.map} +1 -1
- package/bin/{chunk-2DHSN2C3.cjs → chunk-7I4XZL7P.cjs} +6 -6
- package/bin/{chunk-2DHSN2C3.cjs.map → chunk-7I4XZL7P.cjs.map} +1 -1
- package/bin/{chunk-OOFHIS6Q.cjs → chunk-AU2HBQCB.cjs} +8 -4
- package/bin/{chunk-OOFHIS6Q.cjs.map → chunk-AU2HBQCB.cjs.map} +1 -1
- package/bin/{chunk-NPCKWTZG.js → chunk-CBJFXXVE.js} +3 -3
- package/bin/{chunk-NPCKWTZG.js.map → chunk-CBJFXXVE.js.map} +1 -1
- package/bin/{chunk-PXSKDL54.cjs → chunk-FNM5AXPR.cjs} +4 -4
- package/bin/{chunk-PXSKDL54.cjs.map → chunk-FNM5AXPR.cjs.map} +1 -1
- package/bin/{chunk-JZL474YC.js → chunk-J76RVP3G.js} +3 -3
- package/bin/{chunk-JZL474YC.js.map → chunk-J76RVP3G.js.map} +1 -1
- package/bin/{chunk-S2KYF4B5.js → chunk-KBH5ZZ4V.js} +3 -3
- package/bin/{chunk-S2KYF4B5.js.map → chunk-KBH5ZZ4V.js.map} +1 -1
- package/bin/{chunk-RNHFC7RJ.js → chunk-KDRZY2YU.js} +8 -4
- package/bin/{chunk-RNHFC7RJ.js.map → chunk-KDRZY2YU.js.map} +1 -1
- package/bin/{chunk-GVYZ5VMU.cjs → chunk-KHPLFH3X.cjs} +4 -4
- package/bin/{chunk-GVYZ5VMU.cjs.map → chunk-KHPLFH3X.cjs.map} +1 -1
- package/bin/{chunk-CZGE4575.cjs → chunk-NKCKZ3E3.cjs} +4 -4
- package/bin/{chunk-CZGE4575.cjs.map → chunk-NKCKZ3E3.cjs.map} +1 -1
- package/bin/{chunk-NFY3U5Y5.js → chunk-S2N3WA4O.js} +3 -3
- package/bin/{chunk-NFY3U5Y5.js.map → chunk-S2N3WA4O.js.map} +1 -1
- package/bin/{chunk-WVG2JDAL.js → chunk-YDVAE433.js} +3 -3
- package/bin/{chunk-WVG2JDAL.js.map → chunk-YDVAE433.js.map} +1 -1
- package/bin/{chunk-TCH5N4G6.cjs → chunk-Z5SKX5XN.cjs} +4 -4
- package/bin/{chunk-TCH5N4G6.cjs.map → chunk-Z5SKX5XN.cjs.map} +1 -1
- package/bin/{chunk-KQFEBKJ6.cjs → chunk-ZRZDX2ZA.cjs} +5 -5
- package/bin/{chunk-KQFEBKJ6.cjs.map → chunk-ZRZDX2ZA.cjs.map} +1 -1
- package/bin/git.cjs +179 -184
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +43 -48
- 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-3ISKKN7V.cjs → chunk-2KO5IEIY.cjs} +2 -2
- package/dist/{chunk-3NDL3NYQ.cjs → chunk-46DT23BR.cjs} +6 -2
- package/dist/{chunk-22KHZEQ7.js → chunk-4KMJAFZI.js} +1 -1
- package/dist/{chunk-MWHYSQOS.cjs → chunk-6HBRIYPP.cjs} +3 -3
- package/dist/{chunk-HLX2O3W5.js → chunk-BNXSIXM2.js} +5 -16
- package/dist/{chunk-PV25OROZ.js → chunk-BPDSCBOI.js} +6 -2
- package/dist/{chunk-4SXK4XZ7.js → chunk-C53K5W6J.js} +1 -1
- package/dist/{chunk-Q22WRFSZ.cjs → chunk-CUC73XZD.cjs} +15 -26
- package/dist/{chunk-PUNY63CE.cjs → chunk-D2TE2WQZ.cjs} +2 -2
- package/dist/{chunk-ICTL4AOJ.js → chunk-FBGULNA7.js} +1 -1
- package/dist/{chunk-BBFGZEK2.cjs → chunk-GNPQRGZ2.cjs} +4 -4
- package/dist/{chunk-JOWTWLTO.js → chunk-HRYBIFJL.js} +1 -1
- package/dist/{chunk-K6YQY3XT.cjs → chunk-IDG5O4UL.cjs} +2 -2
- package/dist/{chunk-GQZU3KQU.cjs → chunk-KVTWY6IN.cjs} +2 -2
- package/dist/{chunk-GPIIJKQ7.js → chunk-NABJ2MII.js} +1 -1
- package/dist/{chunk-TUICLGR7.js → chunk-UVEWNW75.js} +1 -1
- package/dist/{chunk-VVDS3FJO.js → chunk-WVCBWTDU.js} +1 -1
- package/dist/{chunk-OWXRRH4A.cjs → chunk-YOBEA3QU.cjs} +2 -2
- 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 +6 -6
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 chunkNKCKZ3E3_cjs = require('./chunk-NKCKZ3E3.cjs');
|
|
5
|
+
var chunkKHPLFH3X_cjs = require('./chunk-KHPLFH3X.cjs');
|
|
6
|
+
var chunkFNM5AXPR_cjs = require('./chunk-FNM5AXPR.cjs');
|
|
7
|
+
var chunkZ5SKX5XN_cjs = require('./chunk-Z5SKX5XN.cjs');
|
|
8
|
+
require('./chunk-ZRZDX2ZA.cjs');
|
|
9
|
+
var chunk7I4XZL7P_cjs = require('./chunk-7I4XZL7P.cjs');
|
|
10
10
|
require('./chunk-YHZNDNCW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunk77NN2DPB_cjs = require('./chunk-77NN2DPB.cjs');
|
|
12
12
|
var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkAU2HBQCB_cjs = require('./chunk-AU2HBQCB.cjs');
|
|
14
14
|
var TOML = require('@ltd/j-toml');
|
|
15
15
|
var commander = require('commander');
|
|
16
16
|
require('@inquirer/checkbox');
|
|
@@ -431,9 +431,9 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
431
431
|
|
|
432
432
|
// ../conventional-changelog/src/index.ts
|
|
433
433
|
async function createPreset(variant = "monorepo") {
|
|
434
|
-
const workspaceConfig = await
|
|
434
|
+
const workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
|
|
435
435
|
if (variant === "minimal") {
|
|
436
|
-
return
|
|
436
|
+
return chunkAU2HBQCB_cjs.defu(
|
|
437
437
|
await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
|
|
438
438
|
{
|
|
439
439
|
...COMMIT_CONFIGS.minimal,
|
|
@@ -447,7 +447,7 @@ async function createPreset(variant = "monorepo") {
|
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
449
|
const nxScopes = await getNxScopes({ config: workspaceConfig });
|
|
450
|
-
return
|
|
450
|
+
return chunkAU2HBQCB_cjs.defu(
|
|
451
451
|
await createBasePreset__default.default({
|
|
452
452
|
...COMMIT_CONFIGS.monorepo.changelogs.props,
|
|
453
453
|
scope: nxScopes
|
|
@@ -1011,7 +1011,7 @@ async function lint(message, config5) {
|
|
|
1011
1011
|
// src/commitlint/run.ts
|
|
1012
1012
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
1013
1013
|
async function runCommitLint(workspaceConfig, options) {
|
|
1014
|
-
|
|
1014
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
1015
1015
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
1016
1016
|
workspaceConfig
|
|
1017
1017
|
);
|
|
@@ -1019,7 +1019,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1019
1019
|
if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
|
|
1020
1020
|
commitMessage = options.message;
|
|
1021
1021
|
} else {
|
|
1022
|
-
const commitFile =
|
|
1022
|
+
const commitFile = chunkAU2HBQCB_cjs.joinPaths(
|
|
1023
1023
|
workspaceConfig.workspaceRoot,
|
|
1024
1024
|
options.file || options.message || COMMIT_EDITMSG_PATH
|
|
1025
1025
|
);
|
|
@@ -1036,17 +1036,17 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1036
1036
|
if (upstreamRemote) {
|
|
1037
1037
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
1038
1038
|
if (!upstreamRemoteIdentifier) {
|
|
1039
|
-
|
|
1039
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
1040
1040
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
|
|
1041
1041
|
workspaceConfig
|
|
1042
1042
|
);
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
|
-
|
|
1045
|
+
chunkAU2HBQCB_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
1046
1046
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
1047
1047
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
1048
1048
|
} else {
|
|
1049
|
-
|
|
1049
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
1050
1050
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
|
|
1051
1051
|
workspaceConfig
|
|
1052
1052
|
);
|
|
@@ -1054,7 +1054,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
1056
1056
|
if (!commitMessage) {
|
|
1057
|
-
|
|
1057
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
1058
1058
|
"No commits found. Skipping commit message validation.",
|
|
1059
1059
|
workspaceConfig
|
|
1060
1060
|
);
|
|
@@ -1064,7 +1064,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1064
1064
|
const preset = await createPreset(workspaceConfig.variant);
|
|
1065
1065
|
const report = await lint(commitMessage, preset);
|
|
1066
1066
|
if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1067
|
-
|
|
1067
|
+
chunkAU2HBQCB_cjs.writeSuccess(
|
|
1068
1068
|
`Commit was processing completed successfully!`,
|
|
1069
1069
|
workspaceConfig
|
|
1070
1070
|
);
|
|
@@ -1276,7 +1276,7 @@ async function createState(workspaceConfig, configPath) {
|
|
|
1276
1276
|
const project = projectConfigurations.projects[scope];
|
|
1277
1277
|
if (project) {
|
|
1278
1278
|
let description = `${project.name} - ${project.root}`;
|
|
1279
|
-
const packageJsonPath =
|
|
1279
|
+
const packageJsonPath = chunkAU2HBQCB_cjs.joinPaths(project.root, "package.json");
|
|
1280
1280
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1281
1281
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1282
1282
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1350,20 +1350,20 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
|
|
|
1350
1350
|
|
|
1351
1351
|
// src/commit/run.ts
|
|
1352
1352
|
async function runCommit(commitizenFile, dryRun = false) {
|
|
1353
|
-
const workspaceConfig = await
|
|
1353
|
+
const workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
|
|
1354
1354
|
const state = await createState(workspaceConfig);
|
|
1355
1355
|
if (dryRun) {
|
|
1356
|
-
|
|
1356
|
+
chunkAU2HBQCB_cjs.writeInfo("Running in dry mode.", workspaceConfig);
|
|
1357
1357
|
}
|
|
1358
1358
|
console.log(chalkTemplate__default.default`
|
|
1359
1359
|
{bold.#999999 ----------------------------------------}
|
|
1360
1360
|
|
|
1361
|
-
{bold.#FFFFFF ${
|
|
1361
|
+
{bold.#FFFFFF ${chunkAU2HBQCB_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
|
|
1362
1362
|
{#CCCCCC Please provide the requested details below...}
|
|
1363
1363
|
`);
|
|
1364
1364
|
state.answers = await askQuestions(state);
|
|
1365
1365
|
const message = formatCommitMessage(state, workspaceConfig);
|
|
1366
|
-
const commitMsgFile =
|
|
1366
|
+
const commitMsgFile = chunkAU2HBQCB_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1367
1367
|
console.log(chalkTemplate__default.default`
|
|
1368
1368
|
{bold.#999999 ----------------------------------------}
|
|
1369
1369
|
|
|
@@ -1376,11 +1376,11 @@ async function runCommit(commitizenFile, dryRun = false) {
|
|
|
1376
1376
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1377
1377
|
const command = shellescape__default.default(commandItems);
|
|
1378
1378
|
if (dryRun) {
|
|
1379
|
-
|
|
1379
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
1380
1380
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1381
1381
|
workspaceConfig
|
|
1382
1382
|
);
|
|
1383
|
-
|
|
1383
|
+
chunkAU2HBQCB_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1384
1384
|
} else {
|
|
1385
1385
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1386
1386
|
chunkMTAYUS7E_cjs.run(workspaceConfig, command);
|
|
@@ -2039,7 +2039,7 @@ var runReadme = async ({
|
|
|
2039
2039
|
exitOnError: true
|
|
2040
2040
|
});
|
|
2041
2041
|
const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
2042
|
-
const workspaceRoot =
|
|
2042
|
+
const workspaceRoot = chunkAU2HBQCB_cjs.findWorkspaceRootSafe(process.cwd());
|
|
2043
2043
|
if (!workspaceRoot) {
|
|
2044
2044
|
throw new Error(
|
|
2045
2045
|
"Unable to find the workspace root. Please ensure you are running this command from within a workspace."
|
|
@@ -2456,7 +2456,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2456
2456
|
const header = await prettier.format(
|
|
2457
2457
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkAU2HBQCB_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2460
2460
|
|
|
2461
2461
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2462
2462
|
|
|
@@ -2632,12 +2632,12 @@ async function generateChangelogForProjects({
|
|
|
2632
2632
|
projectChangelogs
|
|
2633
2633
|
)) {
|
|
2634
2634
|
if (!projectGraph.nodes[projectName]?.data.root) {
|
|
2635
|
-
|
|
2635
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
2636
2636
|
`A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
|
|
2637
2637
|
workspaceConfig
|
|
2638
2638
|
);
|
|
2639
2639
|
} else if (projectChangelog.contents) {
|
|
2640
|
-
const filePath =
|
|
2640
|
+
const filePath = chunkAU2HBQCB_cjs.joinPaths(
|
|
2641
2641
|
projectGraph.nodes[projectName].data.root,
|
|
2642
2642
|
"CHANGELOG.md"
|
|
2643
2643
|
);
|
|
@@ -2645,7 +2645,7 @@ async function generateChangelogForProjects({
|
|
|
2645
2645
|
if (fs$1.existsSync(filePath)) {
|
|
2646
2646
|
currentContent = await fs.readFile(filePath, "utf8");
|
|
2647
2647
|
}
|
|
2648
|
-
|
|
2648
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
2649
2649
|
`\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
|
|
2650
2650
|
workspaceConfig
|
|
2651
2651
|
);
|
|
@@ -2868,7 +2868,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
|
|
|
2868
2868
|
}
|
|
2869
2869
|
async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
|
|
2870
2870
|
if (!this.workspaceConfig) {
|
|
2871
|
-
this.workspaceConfig = await
|
|
2871
|
+
this.workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
|
|
2872
2872
|
}
|
|
2873
2873
|
const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
|
|
2874
2874
|
return super.createOrUpdateRelease(
|
|
@@ -3061,7 +3061,7 @@ async function format3(path, data) {
|
|
|
3061
3061
|
if (resolvedConfig) {
|
|
3062
3062
|
code = await prettier.format(
|
|
3063
3063
|
data,
|
|
3064
|
-
|
|
3064
|
+
chunkAU2HBQCB_cjs.defu(
|
|
3065
3065
|
{
|
|
3066
3066
|
absolutePath: path,
|
|
3067
3067
|
...resolvedConfig
|
|
@@ -3117,7 +3117,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
3117
3117
|
}
|
|
3118
3118
|
async render() {
|
|
3119
3119
|
if (!this.workspaceConfig) {
|
|
3120
|
-
this.workspaceConfig = await
|
|
3120
|
+
this.workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
|
|
3121
3121
|
}
|
|
3122
3122
|
return super.render();
|
|
3123
3123
|
}
|
|
@@ -3427,7 +3427,7 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
|
|
|
3427
3427
|
var DEFAULT_RELEASE_CONFIG = {
|
|
3428
3428
|
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
|
|
3429
3429
|
groups: {
|
|
3430
|
-
packages:
|
|
3430
|
+
packages: chunkAU2HBQCB_cjs.defu(
|
|
3431
3431
|
{
|
|
3432
3432
|
projects: ["packages/*"]
|
|
3433
3433
|
},
|
|
@@ -3435,7 +3435,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3435
3435
|
DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3436
3436
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
3437
3437
|
),
|
|
3438
|
-
crates:
|
|
3438
|
+
crates: chunkAU2HBQCB_cjs.defu(
|
|
3439
3439
|
{
|
|
3440
3440
|
projects: ["crates/*"]
|
|
3441
3441
|
},
|
|
@@ -3459,7 +3459,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3459
3459
|
}
|
|
3460
3460
|
};
|
|
3461
3461
|
function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
|
|
3462
|
-
return
|
|
3462
|
+
return chunkAU2HBQCB_cjs.defu(
|
|
3463
3463
|
{
|
|
3464
3464
|
...omit(defaultConfig, ["changelog", "version"]),
|
|
3465
3465
|
...config5
|
|
@@ -3490,7 +3490,7 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3490
3490
|
projectGraph.nodes
|
|
3491
3491
|
);
|
|
3492
3492
|
if (!matchingProjects.length) {
|
|
3493
|
-
|
|
3493
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
3494
3494
|
`Release group "${name}" does not have any matching projects.`
|
|
3495
3495
|
);
|
|
3496
3496
|
return void 0;
|
|
@@ -3510,13 +3510,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3510
3510
|
ProjectTagConstants.Language.TAG_ID,
|
|
3511
3511
|
ProjectTagConstants.Language.TYPESCRIPT
|
|
3512
3512
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3513
|
-
|
|
3513
|
+
chunkAU2HBQCB_cjs.joinPaths(
|
|
3514
3514
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3515
3515
|
"package.json"
|
|
3516
3516
|
)
|
|
3517
3517
|
))
|
|
3518
3518
|
)) {
|
|
3519
|
-
defaultConfig =
|
|
3519
|
+
defaultConfig = chunkAU2HBQCB_cjs.defu(
|
|
3520
3520
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3521
3521
|
DEFAULT_JS_RELEASE_GROUP_CONFIG,
|
|
3522
3522
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3527,13 +3527,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3527
3527
|
ProjectTagConstants.Language.TAG_ID,
|
|
3528
3528
|
ProjectTagConstants.Language.RUST
|
|
3529
3529
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3530
|
-
|
|
3530
|
+
chunkAU2HBQCB_cjs.joinPaths(
|
|
3531
3531
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3532
3532
|
"Cargo.toml"
|
|
3533
3533
|
)
|
|
3534
3534
|
))
|
|
3535
3535
|
)) {
|
|
3536
|
-
defaultConfig =
|
|
3536
|
+
defaultConfig = chunkAU2HBQCB_cjs.defu(
|
|
3537
3537
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3538
3538
|
DEFAULT_RUST_RELEASE_GROUP_CONFIG,
|
|
3539
3539
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3547,13 +3547,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3547
3547
|
config5.projects = matchingProjects;
|
|
3548
3548
|
if (workspaceConfig?.workspaceRoot) {
|
|
3549
3549
|
if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
|
|
3550
|
-
config5.changelog.renderer =
|
|
3550
|
+
config5.changelog.renderer = chunkAU2HBQCB_cjs.joinPaths(
|
|
3551
3551
|
workspaceConfig.workspaceRoot,
|
|
3552
3552
|
config5.changelog.renderer
|
|
3553
3553
|
);
|
|
3554
3554
|
}
|
|
3555
3555
|
if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
|
|
3556
|
-
config5.version.versionActions =
|
|
3556
|
+
config5.version.versionActions = chunkAU2HBQCB_cjs.joinPaths(
|
|
3557
3557
|
workspaceConfig.workspaceRoot,
|
|
3558
3558
|
config5.version?.versionActions
|
|
3559
3559
|
);
|
|
@@ -3565,10 +3565,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
|
|
3567
3567
|
let nxJson$1 = {};
|
|
3568
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(
|
|
3568
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunkAU2HBQCB_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3569
3569
|
nxJson$1 = nxJson.readNxJson();
|
|
3570
3570
|
}
|
|
3571
|
-
const baseConfig =
|
|
3571
|
+
const baseConfig = chunkAU2HBQCB_cjs.defu(
|
|
3572
3572
|
{
|
|
3573
3573
|
changelog: {
|
|
3574
3574
|
renderOptions: {
|
|
@@ -3585,7 +3585,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3585
3585
|
if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
|
|
3586
3586
|
groups = releaseConfig.groups;
|
|
3587
3587
|
if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
|
|
3588
|
-
groups =
|
|
3588
|
+
groups = chunkAU2HBQCB_cjs.defu(
|
|
3589
3589
|
groups,
|
|
3590
3590
|
nxJson$1.release.groups
|
|
3591
3591
|
);
|
|
@@ -3605,21 +3605,10 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3605
3605
|
};
|
|
3606
3606
|
}
|
|
3607
3607
|
function formatConfigLog(config5) {
|
|
3608
|
-
return
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
Object.entries(config5.groups ?? {}).map(([name, group]) => [
|
|
3613
|
-
name,
|
|
3614
|
-
{
|
|
3615
|
-
...omit(group, ["projects"]),
|
|
3616
|
-
projects: group.projects.length ? group.projects : "No projects"
|
|
3617
|
-
}
|
|
3618
|
-
])
|
|
3619
|
-
)
|
|
3620
|
-
},
|
|
3621
|
-
{ sort: true, skip: ["workspaceConfig"] }
|
|
3622
|
-
);
|
|
3608
|
+
return chunkAU2HBQCB_cjs.formatLogMessage(config5, {
|
|
3609
|
+
sort: true,
|
|
3610
|
+
skip: ["workspaceConfig", "conventionalCommits"]
|
|
3611
|
+
});
|
|
3623
3612
|
}
|
|
3624
3613
|
var validReleaseVersionPrefixes = ["auto", "", "~", "^", "="];
|
|
3625
3614
|
var ReleaseGraph = class _ReleaseGraph {
|
|
@@ -4027,7 +4016,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
4027
4016
|
this.resolveRepositoryTags.bind(this),
|
|
4028
4017
|
options
|
|
4029
4018
|
);
|
|
4030
|
-
|
|
4019
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
4031
4020
|
`Group release tag pattern: ${releaseTagPattern}
|
|
4032
4021
|
Project release tag pattern: ${projectReleaseTagPattern}
|
|
4033
4022
|
Group release tag: ${groupReleaseTag?.tag}
|
|
@@ -4316,7 +4305,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4316
4305
|
constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
|
|
4317
4306
|
super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
|
|
4318
4307
|
dryRun: !!versionOptions.dryRun,
|
|
4319
|
-
verbose: versionOptions.verbose ||
|
|
4308
|
+
verbose: versionOptions.verbose || chunkAU2HBQCB_cjs.isVerbose(workspaceConfig.logLevel),
|
|
4320
4309
|
firstRelease: !!versionOptions.firstRelease,
|
|
4321
4310
|
preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
|
|
4322
4311
|
userGivenSpecifier: versionOptions.specifier,
|
|
@@ -4414,7 +4403,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4414
4403
|
deletedFiles: deletedFilesForVersionActions
|
|
4415
4404
|
} = await afterAllProjectsVersioned(this.#tree.root, {
|
|
4416
4405
|
dryRun: this.versionOptions.dryRun,
|
|
4417
|
-
verbose: this.versionOptions.verbose ||
|
|
4406
|
+
verbose: this.versionOptions.verbose || chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel),
|
|
4418
4407
|
rootVersionActionsOptions
|
|
4419
4408
|
});
|
|
4420
4409
|
for (const file of changedFilesForVersionActions) {
|
|
@@ -4447,7 +4436,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4447
4436
|
let handleDockerVersion;
|
|
4448
4437
|
try {
|
|
4449
4438
|
const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
|
|
4450
|
-
const { handleDockerVersion: _handleDockerVersion } =
|
|
4439
|
+
const { handleDockerVersion: _handleDockerVersion } = chunkAU2HBQCB_cjs.__require(dockerVersionUtilsPath);
|
|
4451
4440
|
handleDockerVersion = _handleDockerVersion;
|
|
4452
4441
|
} catch (e) {
|
|
4453
4442
|
console.error(
|
|
@@ -4535,12 +4524,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4535
4524
|
for (const project of releaseGroup.projects) {
|
|
4536
4525
|
const currentVersion = this.#getCurrentCachedVersionForProject(project);
|
|
4537
4526
|
if (!currentVersion) {
|
|
4538
|
-
|
|
4527
|
+
chunkAU2HBQCB_cjs.writeTrace(
|
|
4539
4528
|
`No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
4540
4529
|
this.workspaceConfig
|
|
4541
4530
|
);
|
|
4542
4531
|
} else {
|
|
4543
|
-
|
|
4532
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
4544
4533
|
`Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
|
|
4545
4534
|
this.workspaceConfig
|
|
4546
4535
|
);
|
|
@@ -4566,7 +4555,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4566
4555
|
reasonData: newVersionInputReasonData
|
|
4567
4556
|
};
|
|
4568
4557
|
}
|
|
4569
|
-
|
|
4558
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
4570
4559
|
`Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
|
|
4571
4560
|
this.workspaceConfig
|
|
4572
4561
|
);
|
|
@@ -5019,7 +5008,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
5019
5008
|
var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
|
|
5020
5009
|
static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
|
|
5021
5010
|
if (!workspaceConfig) {
|
|
5022
|
-
workspaceConfig = await
|
|
5011
|
+
workspaceConfig = await chunkAU2HBQCB_cjs.getWorkspaceConfig();
|
|
5023
5012
|
}
|
|
5024
5013
|
const projectGraph = await devkit.createProjectGraphAsync({
|
|
5025
5014
|
exitOnError: true,
|
|
@@ -5030,7 +5019,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
5030
5019
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
5031
5020
|
);
|
|
5032
5021
|
}
|
|
5033
|
-
|
|
5022
|
+
chunkAU2HBQCB_cjs.writeTrace(
|
|
5034
5023
|
`Provided release configuration:
|
|
5035
5024
|
${formatConfigLog(releaseConfig)}`,
|
|
5036
5025
|
workspaceConfig
|
|
@@ -5041,7 +5030,7 @@ ${formatConfigLog(releaseConfig)}`,
|
|
|
5041
5030
|
workspaceConfig,
|
|
5042
5031
|
ignoreNxJsonConfig
|
|
5043
5032
|
);
|
|
5044
|
-
|
|
5033
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5045
5034
|
`Resolved release configuration:
|
|
5046
5035
|
${formatConfigLog(config5)}`,
|
|
5047
5036
|
workspaceConfig
|
|
@@ -5078,11 +5067,11 @@ ${formatConfigLog(config5)}`,
|
|
|
5078
5067
|
*/
|
|
5079
5068
|
constructor(projectGraph, releaseConfig, workspaceConfig) {
|
|
5080
5069
|
super(releaseConfig, true);
|
|
5081
|
-
|
|
5070
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5082
5071
|
"Executing release with the following configuration",
|
|
5083
5072
|
workspaceConfig
|
|
5084
5073
|
);
|
|
5085
|
-
|
|
5074
|
+
chunkAU2HBQCB_cjs.writeDebug(releaseConfig, workspaceConfig);
|
|
5086
5075
|
this.projectGraph = projectGraph;
|
|
5087
5076
|
this.releaseConfig = releaseConfig;
|
|
5088
5077
|
this.workspaceConfig = workspaceConfig;
|
|
@@ -5100,17 +5089,20 @@ ${formatConfigLog(config5)}`,
|
|
|
5100
5089
|
v.newVersion ? extractPreid(v.newVersion) : void 0
|
|
5101
5090
|
])
|
|
5102
5091
|
);
|
|
5103
|
-
const releaseGraph = await createReleaseGraph(
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5092
|
+
const releaseGraph = await createReleaseGraph(
|
|
5093
|
+
{
|
|
5094
|
+
tree: this.tree,
|
|
5095
|
+
projectGraph: this.projectGraph,
|
|
5096
|
+
nxReleaseConfig: this.releaseConfig,
|
|
5097
|
+
filters: {
|
|
5098
|
+
projects: options.projects,
|
|
5099
|
+
groups: options.groups
|
|
5100
|
+
},
|
|
5101
|
+
firstRelease: !!options.firstRelease,
|
|
5102
|
+
verbose: chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel)
|
|
5110
5103
|
},
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
});
|
|
5104
|
+
this.workspaceConfig
|
|
5105
|
+
);
|
|
5114
5106
|
const projectToAdditionalDependencyBumps = /* @__PURE__ */ new Map();
|
|
5115
5107
|
for (const releaseGroup of releaseGraph.releaseGroups) {
|
|
5116
5108
|
if (releaseGroup.projectsRelationship !== "independent") {
|
|
@@ -5236,7 +5228,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5236
5228
|
})),
|
|
5237
5229
|
this.releaseConfig.conventionalCommits
|
|
5238
5230
|
);
|
|
5239
|
-
|
|
5231
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5240
5232
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5241
5233
|
this.workspaceConfig
|
|
5242
5234
|
);
|
|
@@ -5310,7 +5302,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5310
5302
|
})),
|
|
5311
5303
|
this.releaseConfig.conventionalCommits
|
|
5312
5304
|
);
|
|
5313
|
-
|
|
5305
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5314
5306
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5315
5307
|
this.workspaceConfig
|
|
5316
5308
|
);
|
|
@@ -5339,7 +5331,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5339
5331
|
}
|
|
5340
5332
|
}
|
|
5341
5333
|
}
|
|
5342
|
-
|
|
5334
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5343
5335
|
`Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
|
|
5344
5336
|
${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
5345
5337
|
`,
|
|
@@ -5368,7 +5360,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5368
5360
|
);
|
|
5369
5361
|
const changes = this.tree.listChanges();
|
|
5370
5362
|
if (!changes.length) {
|
|
5371
|
-
|
|
5363
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
5372
5364
|
"No changes were detected for any changelog files, so no changelog entries will be generated.",
|
|
5373
5365
|
this.workspaceConfig
|
|
5374
5366
|
);
|
|
@@ -5390,7 +5382,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5390
5382
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
|
|
5391
5383
|
});
|
|
5392
5384
|
latestCommit = await git.getCommitHash("HEAD");
|
|
5393
|
-
|
|
5385
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5394
5386
|
`Creating git tags: ${gitTagValues.join(", ")}`,
|
|
5395
5387
|
this.workspaceConfig
|
|
5396
5388
|
);
|
|
@@ -5403,7 +5395,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5403
5395
|
verbose: options.verbose
|
|
5404
5396
|
});
|
|
5405
5397
|
}
|
|
5406
|
-
|
|
5398
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5407
5399
|
`Pushing to git remote "${options.gitRemote ?? "origin"}"`,
|
|
5408
5400
|
this.workspaceConfig
|
|
5409
5401
|
);
|
|
@@ -5419,7 +5411,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5419
5411
|
return;
|
|
5420
5412
|
};
|
|
5421
5413
|
releaseVersion = async (options) => {
|
|
5422
|
-
const verbose = options.verbose ||
|
|
5414
|
+
const verbose = options.verbose || chunkAU2HBQCB_cjs.isVerbose(this.workspaceConfig.logLevel);
|
|
5423
5415
|
this.projectGraph = await devkit.createProjectGraphAsync({
|
|
5424
5416
|
exitOnError: true,
|
|
5425
5417
|
resetDaemonClient: true
|
|
@@ -5429,21 +5421,24 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5429
5421
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
5430
5422
|
);
|
|
5431
5423
|
}
|
|
5432
|
-
const releaseGraph = await createReleaseGraph(
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5424
|
+
const releaseGraph = await createReleaseGraph(
|
|
5425
|
+
{
|
|
5426
|
+
tree: this.tree,
|
|
5427
|
+
projectGraph: this.projectGraph,
|
|
5428
|
+
nxReleaseConfig: this.releaseConfig,
|
|
5429
|
+
filters: {
|
|
5430
|
+
projects: options.projects,
|
|
5431
|
+
groups: options.groups
|
|
5432
|
+
},
|
|
5433
|
+
firstRelease: !!options.firstRelease,
|
|
5434
|
+
verbose,
|
|
5435
|
+
preid: options.preid ?? this.workspaceConfig.preid,
|
|
5436
|
+
versionActionsOptionsOverrides: options.versionActionsOptionsOverrides
|
|
5439
5437
|
},
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
preid: options.preid ?? this.workspaceConfig.preid,
|
|
5443
|
-
versionActionsOptionsOverrides: options.versionActionsOptionsOverrides
|
|
5444
|
-
});
|
|
5438
|
+
this.workspaceConfig
|
|
5439
|
+
);
|
|
5445
5440
|
if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
|
|
5446
|
-
|
|
5441
|
+
chunkAU2HBQCB_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
|
|
5447
5442
|
}
|
|
5448
5443
|
if (!options.specifier) {
|
|
5449
5444
|
const rawVersionPlans = await versionPlans.readRawVersionPlans();
|
|
@@ -5462,7 +5457,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5462
5457
|
}
|
|
5463
5458
|
} else {
|
|
5464
5459
|
if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
|
|
5465
|
-
|
|
5460
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5466
5461
|
`Skipping version plan discovery as a specifier was provided`,
|
|
5467
5462
|
this.workspaceConfig
|
|
5468
5463
|
);
|
|
@@ -5472,7 +5467,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5472
5467
|
options.deleteVersionPlans = false;
|
|
5473
5468
|
}
|
|
5474
5469
|
if (this.releaseConfig.version?.preVersionCommand) {
|
|
5475
|
-
|
|
5470
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5476
5471
|
"Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
|
|
5477
5472
|
this.workspaceConfig
|
|
5478
5473
|
);
|
|
@@ -5508,7 +5503,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5508
5503
|
continue;
|
|
5509
5504
|
}
|
|
5510
5505
|
if (releaseGroup.version?.groupPreVersionCommand) {
|
|
5511
|
-
|
|
5506
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5512
5507
|
`Executing the ${releaseGroup.name} release group's pre-version command:
|
|
5513
5508
|
` + releaseGroup.version?.groupPreVersionCommand,
|
|
5514
5509
|
this.workspaceConfig
|
|
@@ -5568,7 +5563,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5568
5563
|
changed.forEach((f) => additionalChangedFiles.add(f));
|
|
5569
5564
|
deleted.forEach((f) => additionalDeletedFiles.add(f));
|
|
5570
5565
|
if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
|
|
5571
|
-
|
|
5566
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5572
5567
|
`Executing the docker pre-version command:
|
|
5573
5568
|
` + this.releaseConfig.docker.preVersionCommand,
|
|
5574
5569
|
this.workspaceConfig
|
|
@@ -5605,7 +5600,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5605
5600
|
continue;
|
|
5606
5601
|
}
|
|
5607
5602
|
if (releaseGroup.docker?.groupPreVersionCommand) {
|
|
5608
|
-
|
|
5603
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5609
5604
|
`Executing the ${releaseGroup.name} release group's docker pre-version command:
|
|
5610
5605
|
` + releaseGroup.docker?.groupPreVersionCommand,
|
|
5611
5606
|
this.workspaceConfig
|
|
@@ -5636,7 +5631,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5636
5631
|
}
|
|
5637
5632
|
}
|
|
5638
5633
|
if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
|
|
5639
|
-
|
|
5634
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
5640
5635
|
formatNxLog({
|
|
5641
5636
|
title: "Warning",
|
|
5642
5637
|
bodyLines: [
|
|
@@ -5693,7 +5688,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5693
5688
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
|
|
5694
5689
|
});
|
|
5695
5690
|
} else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
|
|
5696
|
-
|
|
5691
|
+
chunkAU2HBQCB_cjs.writeDebug(`Staging changed files with git`);
|
|
5697
5692
|
await git.gitAdd({
|
|
5698
5693
|
changedFiles,
|
|
5699
5694
|
deletedFiles,
|
|
@@ -5702,7 +5697,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5702
5697
|
});
|
|
5703
5698
|
}
|
|
5704
5699
|
if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
|
|
5705
|
-
|
|
5700
|
+
chunkAU2HBQCB_cjs.writeDebug(`Tagging commit with git`);
|
|
5706
5701
|
for (const tag of gitTagValues) {
|
|
5707
5702
|
await gitTag({
|
|
5708
5703
|
tag,
|
|
@@ -5714,7 +5709,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5714
5709
|
}
|
|
5715
5710
|
}
|
|
5716
5711
|
if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
|
|
5717
|
-
|
|
5712
|
+
chunkAU2HBQCB_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
|
|
5718
5713
|
await git.gitPush({
|
|
5719
5714
|
gitRemote: options.gitRemote,
|
|
5720
5715
|
dryRun: options.dryRun,
|
|
@@ -5745,7 +5740,7 @@ var runRelease = async (config5, {
|
|
|
5745
5740
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
5746
5741
|
}
|
|
5747
5742
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
5748
|
-
|
|
5743
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
5749
5744
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
5750
5745
|
config5
|
|
5751
5746
|
);
|
|
@@ -5762,26 +5757,26 @@ var runRelease = async (config5, {
|
|
|
5762
5757
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5763
5758
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5764
5759
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
5765
|
-
|
|
5760
|
+
chunkAU2HBQCB_cjs.writeDebug("Creating Storm release client...", config5);
|
|
5766
5761
|
const releaseClient = await StormReleaseClient.create(
|
|
5767
5762
|
releaseConfig,
|
|
5768
5763
|
ignoreNxJsonConfig,
|
|
5769
5764
|
config5
|
|
5770
5765
|
);
|
|
5771
|
-
|
|
5766
|
+
chunkAU2HBQCB_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
5772
5767
|
const to = head || process.env.NX_HEAD;
|
|
5773
5768
|
const from = base || process.env.NX_BASE;
|
|
5774
|
-
|
|
5769
|
+
chunkAU2HBQCB_cjs.writeDebug(
|
|
5775
5770
|
`Using the following Git SHAs to determine the release content:
|
|
5776
5771
|
- From: ${from}
|
|
5777
5772
|
- To: ${to}
|
|
5778
5773
|
`,
|
|
5779
5774
|
config5
|
|
5780
5775
|
);
|
|
5781
|
-
|
|
5776
|
+
chunkAU2HBQCB_cjs.writeDebug("Determining the current release versions...", config5);
|
|
5782
5777
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
5783
5778
|
dryRun,
|
|
5784
|
-
verbose:
|
|
5779
|
+
verbose: true,
|
|
5785
5780
|
preid: config5.preid,
|
|
5786
5781
|
stageChanges: true,
|
|
5787
5782
|
gitCommit: false
|
|
@@ -5790,14 +5785,14 @@ var runRelease = async (config5, {
|
|
|
5790
5785
|
version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
|
|
5791
5786
|
versionData: projectsVersionData,
|
|
5792
5787
|
dryRun,
|
|
5793
|
-
verbose:
|
|
5788
|
+
verbose: true,
|
|
5794
5789
|
to,
|
|
5795
5790
|
from,
|
|
5796
5791
|
releaseGraph
|
|
5797
5792
|
});
|
|
5798
|
-
|
|
5793
|
+
chunkAU2HBQCB_cjs.writeDebug("Tagging commit with git", config5);
|
|
5799
5794
|
if (skipPublish) {
|
|
5800
|
-
|
|
5795
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
5801
5796
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
5802
5797
|
config5
|
|
5803
5798
|
);
|
|
@@ -5806,7 +5801,7 @@ var runRelease = async (config5, {
|
|
|
5806
5801
|
(key) => projectsVersionData[key]?.newVersion
|
|
5807
5802
|
);
|
|
5808
5803
|
if (changedProjects.length > 0) {
|
|
5809
|
-
|
|
5804
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
5810
5805
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
5811
5806
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
5812
5807
|
`,
|
|
@@ -5815,7 +5810,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
5815
5810
|
await updatePackageManifests(projectsVersionData, config5);
|
|
5816
5811
|
const result = await releaseClient.releasePublish({
|
|
5817
5812
|
dryRun,
|
|
5818
|
-
verbose:
|
|
5813
|
+
verbose: true
|
|
5819
5814
|
});
|
|
5820
5815
|
const failedProjects = Object.keys(result).filter(
|
|
5821
5816
|
(key) => result[key]?.code && result[key]?.code > 0
|
|
@@ -5830,10 +5825,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
5830
5825
|
);
|
|
5831
5826
|
}
|
|
5832
5827
|
} else {
|
|
5833
|
-
|
|
5828
|
+
chunkAU2HBQCB_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
5834
5829
|
}
|
|
5835
5830
|
}
|
|
5836
|
-
|
|
5831
|
+
chunkAU2HBQCB_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
5837
5832
|
};
|
|
5838
5833
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
5839
5834
|
let projectGraph;
|
|
@@ -5848,7 +5843,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5848
5843
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
5849
5844
|
const projectNode = projectGraph.nodes[node];
|
|
5850
5845
|
if (!projectNode?.data.root) {
|
|
5851
|
-
|
|
5846
|
+
chunkAU2HBQCB_cjs.writeWarning(
|
|
5852
5847
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
5853
5848
|
config5
|
|
5854
5849
|
);
|
|
@@ -5856,17 +5851,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5856
5851
|
}
|
|
5857
5852
|
const versionData = projectsVersionData[node];
|
|
5858
5853
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
5859
|
-
|
|
5854
|
+
chunkAU2HBQCB_cjs.writeTrace(
|
|
5860
5855
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
5861
5856
|
`,
|
|
5862
5857
|
config5
|
|
5863
5858
|
);
|
|
5864
|
-
const projectRoot =
|
|
5859
|
+
const projectRoot = chunkAU2HBQCB_cjs.joinPaths(
|
|
5865
5860
|
config5.workspaceRoot,
|
|
5866
5861
|
projectNode.data.root
|
|
5867
5862
|
);
|
|
5868
|
-
const packageJsonPath =
|
|
5869
|
-
const cargoTomlPath =
|
|
5863
|
+
const packageJsonPath = chunkAU2HBQCB_cjs.joinPaths(projectRoot, "package.json");
|
|
5864
|
+
const cargoTomlPath = chunkAU2HBQCB_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
5870
5865
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
5871
5866
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
5872
5867
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -5884,7 +5879,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5884
5879
|
})
|
|
5885
5880
|
);
|
|
5886
5881
|
} else {
|
|
5887
|
-
|
|
5882
|
+
chunkAU2HBQCB_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
5888
5883
|
}
|
|
5889
5884
|
}
|
|
5890
5885
|
|
|
@@ -5892,8 +5887,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5892
5887
|
var _config = {};
|
|
5893
5888
|
function createProgram(config5) {
|
|
5894
5889
|
_config = config5;
|
|
5895
|
-
|
|
5896
|
-
const root =
|
|
5890
|
+
chunkAU2HBQCB_cjs.writeInfo(`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
|
|
5891
|
+
const root = chunkAU2HBQCB_cjs.findWorkspaceRootSafe(process.cwd());
|
|
5897
5892
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
5898
5893
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
5899
5894
|
if (root) {
|
|
@@ -5940,12 +5935,12 @@ async function commitAction({
|
|
|
5940
5935
|
dryRun = false
|
|
5941
5936
|
}) {
|
|
5942
5937
|
try {
|
|
5943
|
-
|
|
5944
|
-
`${
|
|
5938
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
5939
|
+
`${chunkAU2HBQCB_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
|
|
5945
5940
|
_config
|
|
5946
5941
|
);
|
|
5947
5942
|
await runCommit(config5, dryRun);
|
|
5948
|
-
|
|
5943
|
+
chunkAU2HBQCB_cjs.writeSuccess(
|
|
5949
5944
|
`\u2714 Storm Commit processing completed successfully!
|
|
5950
5945
|
|
|
5951
5946
|
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}
|
|
@@ -5953,7 +5948,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
5953
5948
|
_config
|
|
5954
5949
|
);
|
|
5955
5950
|
} catch (error) {
|
|
5956
|
-
|
|
5951
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
5957
5952
|
`A fatal error occurred while running commit action:
|
|
5958
5953
|
|
|
5959
5954
|
${error.message}${error.stack ? `
|
|
@@ -5968,17 +5963,17 @@ Please fix any errors and try committing again.`,
|
|
|
5968
5963
|
}
|
|
5969
5964
|
async function readmeAction(options) {
|
|
5970
5965
|
try {
|
|
5971
|
-
|
|
5972
|
-
`${
|
|
5966
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
5967
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
|
|
5973
5968
|
_config
|
|
5974
5969
|
);
|
|
5975
5970
|
await runReadme(options);
|
|
5976
|
-
|
|
5971
|
+
chunkAU2HBQCB_cjs.writeSuccess(
|
|
5977
5972
|
"\u2714 Formatting of the workspace's README.md files is complete\n",
|
|
5978
5973
|
_config
|
|
5979
5974
|
);
|
|
5980
5975
|
} catch (error) {
|
|
5981
|
-
|
|
5976
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
5982
5977
|
`A fatal error occurred while running README format action:
|
|
5983
5978
|
|
|
5984
5979
|
${error.message}`
|
|
@@ -5993,8 +5988,8 @@ async function releaseAction({
|
|
|
5993
5988
|
dryRun
|
|
5994
5989
|
}) {
|
|
5995
5990
|
try {
|
|
5996
|
-
|
|
5997
|
-
`${
|
|
5991
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
5992
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
|
|
5998
5993
|
_config
|
|
5999
5994
|
);
|
|
6000
5995
|
await runRelease(_config, {
|
|
@@ -6003,9 +5998,9 @@ async function releaseAction({
|
|
|
6003
5998
|
base,
|
|
6004
5999
|
head
|
|
6005
6000
|
});
|
|
6006
|
-
|
|
6001
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
|
|
6007
6002
|
} catch (error) {
|
|
6008
|
-
|
|
6003
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6009
6004
|
`A fatal error occurred while running release action:
|
|
6010
6005
|
|
|
6011
6006
|
${error.message} ${error.stack ? `
|
|
@@ -6019,17 +6014,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
6019
6014
|
}
|
|
6020
6015
|
async function commitLintAction(options) {
|
|
6021
6016
|
try {
|
|
6022
|
-
|
|
6023
|
-
`${
|
|
6017
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6018
|
+
`${chunkAU2HBQCB_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.`,
|
|
6024
6019
|
_config
|
|
6025
6020
|
);
|
|
6026
6021
|
await runCommitLint(_config, options);
|
|
6027
|
-
|
|
6022
|
+
chunkAU2HBQCB_cjs.writeSuccess(
|
|
6028
6023
|
"\u2714 Linting the commit messages completed successfully!\n",
|
|
6029
6024
|
_config
|
|
6030
6025
|
);
|
|
6031
6026
|
} catch (error) {
|
|
6032
|
-
|
|
6027
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6033
6028
|
`A fatal error occurred while linting the commit messages:
|
|
6034
6029
|
|
|
6035
6030
|
${error.message}`,
|
|
@@ -6040,14 +6035,14 @@ ${error.message}`,
|
|
|
6040
6035
|
}
|
|
6041
6036
|
async function postCheckoutAction({ files }) {
|
|
6042
6037
|
try {
|
|
6043
|
-
|
|
6044
|
-
`${
|
|
6038
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6039
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
6045
6040
|
_config
|
|
6046
6041
|
);
|
|
6047
|
-
await
|
|
6048
|
-
|
|
6042
|
+
await chunkNKCKZ3E3_cjs.postCheckoutHook(_config, files);
|
|
6043
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
|
|
6049
6044
|
} catch (error) {
|
|
6050
|
-
|
|
6045
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6051
6046
|
`A fatal error occurred while running the post-checkout hook:
|
|
6052
6047
|
|
|
6053
6048
|
${error.message}`,
|
|
@@ -6058,14 +6053,14 @@ ${error.message}`,
|
|
|
6058
6053
|
}
|
|
6059
6054
|
async function postCommitAction({ files }) {
|
|
6060
6055
|
try {
|
|
6061
|
-
|
|
6062
|
-
`${
|
|
6056
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6057
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
6063
6058
|
_config
|
|
6064
6059
|
);
|
|
6065
|
-
await
|
|
6066
|
-
|
|
6060
|
+
await chunkKHPLFH3X_cjs.postCommitHook(_config, files);
|
|
6061
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
|
|
6067
6062
|
} catch (error) {
|
|
6068
|
-
|
|
6063
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6069
6064
|
`A fatal error occurred while running the post-commit hook:
|
|
6070
6065
|
|
|
6071
6066
|
${error.message}`,
|
|
@@ -6076,14 +6071,14 @@ ${error.message}`,
|
|
|
6076
6071
|
}
|
|
6077
6072
|
async function postMergeAction({ files }) {
|
|
6078
6073
|
try {
|
|
6079
|
-
|
|
6080
|
-
`${
|
|
6074
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6075
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
6081
6076
|
_config
|
|
6082
6077
|
);
|
|
6083
|
-
await
|
|
6084
|
-
|
|
6078
|
+
await chunkFNM5AXPR_cjs.postMergeHook(_config, files);
|
|
6079
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
|
|
6085
6080
|
} catch (error) {
|
|
6086
|
-
|
|
6081
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6087
6082
|
`A fatal error occurred while running the post-merge hook:
|
|
6088
6083
|
|
|
6089
6084
|
${error.message}`,
|
|
@@ -6094,14 +6089,14 @@ ${error.message}`,
|
|
|
6094
6089
|
}
|
|
6095
6090
|
async function preCommitAction({ files }) {
|
|
6096
6091
|
try {
|
|
6097
|
-
|
|
6098
|
-
`${
|
|
6092
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6093
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
6099
6094
|
_config
|
|
6100
6095
|
);
|
|
6101
|
-
await
|
|
6102
|
-
|
|
6096
|
+
await chunkZ5SKX5XN_cjs.preCommitHook(_config, files);
|
|
6097
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
|
|
6103
6098
|
} catch (error) {
|
|
6104
|
-
|
|
6099
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6105
6100
|
`A fatal error occurred while running the pre-commit hook:
|
|
6106
6101
|
|
|
6107
6102
|
${error.message}`,
|
|
@@ -6112,14 +6107,14 @@ ${error.message}`,
|
|
|
6112
6107
|
}
|
|
6113
6108
|
async function prePushAction({ files }) {
|
|
6114
6109
|
try {
|
|
6115
|
-
|
|
6116
|
-
`${
|
|
6110
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6111
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
6117
6112
|
_config
|
|
6118
6113
|
);
|
|
6119
|
-
await
|
|
6120
|
-
|
|
6114
|
+
await chunk7I4XZL7P_cjs.prePushHook(_config, files);
|
|
6115
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
|
|
6121
6116
|
} catch (error) {
|
|
6122
|
-
|
|
6117
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6123
6118
|
`A fatal error occurred while running the pre-push hook:
|
|
6124
6119
|
|
|
6125
6120
|
${error.message}`,
|
|
@@ -6130,14 +6125,14 @@ ${error.message}`,
|
|
|
6130
6125
|
}
|
|
6131
6126
|
async function prepareAction() {
|
|
6132
6127
|
try {
|
|
6133
|
-
|
|
6134
|
-
`${
|
|
6128
|
+
chunkAU2HBQCB_cjs.writeInfo(
|
|
6129
|
+
`${chunkAU2HBQCB_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
6135
6130
|
_config
|
|
6136
6131
|
);
|
|
6137
|
-
await
|
|
6138
|
-
|
|
6132
|
+
await chunk77NN2DPB_cjs.prepareHook(_config);
|
|
6133
|
+
chunkAU2HBQCB_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
|
|
6139
6134
|
} catch (error) {
|
|
6140
|
-
|
|
6135
|
+
chunkAU2HBQCB_cjs.writeFatal(
|
|
6141
6136
|
`A fatal error occurred while running the prepare hook:
|
|
6142
6137
|
|
|
6143
6138
|
${error.message}`,
|
|
@@ -6149,18 +6144,18 @@ ${error.message}`,
|
|
|
6149
6144
|
|
|
6150
6145
|
// bin/git.ts
|
|
6151
6146
|
void (async () => {
|
|
6152
|
-
const config5 = await
|
|
6147
|
+
const config5 = await chunkAU2HBQCB_cjs.getConfig();
|
|
6153
6148
|
try {
|
|
6154
|
-
|
|
6149
|
+
chunkAU2HBQCB_cjs.handleProcess(config5);
|
|
6155
6150
|
const program = createProgram(config5);
|
|
6156
6151
|
await program.parseAsync(process.argv);
|
|
6157
|
-
|
|
6152
|
+
chunkAU2HBQCB_cjs.writeSuccess(
|
|
6158
6153
|
`\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
6159
6154
|
config5
|
|
6160
6155
|
);
|
|
6161
|
-
|
|
6156
|
+
chunkAU2HBQCB_cjs.exitWithSuccess(config5);
|
|
6162
6157
|
} catch (error) {
|
|
6163
|
-
|
|
6158
|
+
chunkAU2HBQCB_cjs.exitWithError(config5);
|
|
6164
6159
|
process.exit(1);
|
|
6165
6160
|
}
|
|
6166
6161
|
})();
|