@storm-software/git-tools 2.131.100 → 2.131.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/{chunk-VWM473G5.js → chunk-2YVIE3BK.js} +3 -3
- package/bin/{chunk-VWM473G5.js.map → chunk-2YVIE3BK.js.map} +1 -1
- package/bin/{chunk-4ZNUGFUK.js → chunk-42Y4PTRA.js} +5 -3
- package/bin/chunk-42Y4PTRA.js.map +1 -0
- package/bin/{chunk-3NXGC5ST.js → chunk-DKB6PGG3.js} +3 -3
- package/bin/{chunk-3NXGC5ST.js.map → chunk-DKB6PGG3.js.map} +1 -1
- package/bin/{chunk-DYZLP2KW.cjs → chunk-EQSXP2RC.cjs} +6 -6
- package/bin/{chunk-DYZLP2KW.cjs.map → chunk-EQSXP2RC.cjs.map} +1 -1
- package/bin/{chunk-6G73LSPC.cjs → chunk-FG3I2VCP.cjs} +4 -4
- package/bin/{chunk-6G73LSPC.cjs.map → chunk-FG3I2VCP.cjs.map} +1 -1
- package/bin/{chunk-MEXEBGMK.cjs → chunk-FNMZLTI2.cjs} +4 -4
- package/bin/{chunk-MEXEBGMK.cjs.map → chunk-FNMZLTI2.cjs.map} +1 -1
- package/bin/{chunk-7NZOOZ4Y.js → chunk-GUKZHV4C.js} +3 -3
- package/bin/{chunk-7NZOOZ4Y.js.map → chunk-GUKZHV4C.js.map} +1 -1
- package/bin/{chunk-G6BAFKYK.js → chunk-IFGNDIXB.js} +3 -3
- package/bin/{chunk-G6BAFKYK.js.map → chunk-IFGNDIXB.js.map} +1 -1
- package/bin/{chunk-PNNIWPDQ.js → chunk-JJVQKQSQ.js} +3 -3
- package/bin/{chunk-PNNIWPDQ.js.map → chunk-JJVQKQSQ.js.map} +1 -1
- package/bin/{chunk-UDTVAYLD.cjs → chunk-K6GWYEPW.cjs} +4 -4
- package/bin/{chunk-UDTVAYLD.cjs.map → chunk-K6GWYEPW.cjs.map} +1 -1
- package/bin/{chunk-HHHCNXKG.js → chunk-KMPLSTO3.js} +3 -3
- package/bin/{chunk-HHHCNXKG.js.map → chunk-KMPLSTO3.js.map} +1 -1
- package/bin/{chunk-EOUDKHXD.cjs → chunk-NJMSWUK7.cjs} +5 -3
- package/bin/chunk-NJMSWUK7.cjs.map +1 -0
- package/bin/{chunk-4FQ44OAT.cjs → chunk-PWU3UV75.cjs} +4 -4
- package/bin/{chunk-4FQ44OAT.cjs.map → chunk-PWU3UV75.cjs.map} +1 -1
- package/bin/{chunk-SGNASXPC.cjs → chunk-SGL3Y2VO.cjs} +5 -5
- package/bin/{chunk-SGNASXPC.cjs.map → chunk-SGL3Y2VO.cjs.map} +1 -1
- package/bin/{chunk-J4XLLB7C.cjs → chunk-TQGWTIZB.cjs} +4 -4
- package/bin/{chunk-J4XLLB7C.cjs.map → chunk-TQGWTIZB.cjs.map} +1 -1
- package/bin/{chunk-RTCFD7IE.js → chunk-WPUDOWXK.js} +3 -3
- package/bin/{chunk-RTCFD7IE.js.map → chunk-WPUDOWXK.js.map} +1 -1
- package/bin/git.cjs +155 -155
- package/bin/git.js +8 -8
- package/bin/post-checkout.cjs +7 -7
- package/bin/post-checkout.js +2 -2
- package/bin/post-commit.cjs +7 -7
- package/bin/post-commit.js +2 -2
- package/bin/post-merge.cjs +7 -7
- package/bin/post-merge.js +2 -2
- package/bin/pre-commit.cjs +7 -7
- package/bin/pre-commit.js +2 -2
- package/bin/pre-install.cjs +7 -7
- package/bin/pre-install.js +2 -2
- package/bin/pre-push.cjs +7 -7
- package/bin/pre-push.js +2 -2
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +2 -2
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-FSWYRWN4.cjs → chunk-FN4S2UNY.cjs} +3 -1
- package/dist/{chunk-BALS7LKN.js → chunk-UX5W5DUP.js} +3 -1
- package/dist/index.cjs +18 -18
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +18 -18
- package/dist/release/config.js +1 -1
- package/package.json +6 -6
- package/bin/chunk-4ZNUGFUK.js.map +0 -1
- package/bin/chunk-EOUDKHXD.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 chunkK6GWYEPW_cjs = require('./chunk-K6GWYEPW.cjs');
|
|
5
|
+
var chunkPWU3UV75_cjs = require('./chunk-PWU3UV75.cjs');
|
|
6
|
+
var chunkFG3I2VCP_cjs = require('./chunk-FG3I2VCP.cjs');
|
|
7
|
+
var chunkFNMZLTI2_cjs = require('./chunk-FNMZLTI2.cjs');
|
|
8
|
+
require('./chunk-SGL3Y2VO.cjs');
|
|
9
|
+
var chunkEQSXP2RC_cjs = require('./chunk-EQSXP2RC.cjs');
|
|
10
10
|
require('./chunk-YHZNDNCW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkTQGWTIZB_cjs = require('./chunk-TQGWTIZB.cjs');
|
|
12
12
|
var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkNJMSWUK7_cjs = require('./chunk-NJMSWUK7.cjs');
|
|
14
14
|
var TOML = require('@ltd/j-toml');
|
|
15
15
|
var commander = require('commander');
|
|
16
16
|
require('@inquirer/checkbox');
|
|
@@ -425,9 +425,9 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
425
425
|
|
|
426
426
|
// ../conventional-changelog/src/index.ts
|
|
427
427
|
async function createPreset(variant = "monorepo") {
|
|
428
|
-
const workspaceConfig = await
|
|
428
|
+
const workspaceConfig = await chunkNJMSWUK7_cjs.getWorkspaceConfig();
|
|
429
429
|
if (variant === "minimal") {
|
|
430
|
-
return
|
|
430
|
+
return chunkNJMSWUK7_cjs.defu(
|
|
431
431
|
await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
|
|
432
432
|
{
|
|
433
433
|
...COMMIT_CONFIGS.minimal,
|
|
@@ -441,7 +441,7 @@ async function createPreset(variant = "monorepo") {
|
|
|
441
441
|
);
|
|
442
442
|
}
|
|
443
443
|
const nxScopes = await getNxScopes({ config: workspaceConfig });
|
|
444
|
-
return
|
|
444
|
+
return chunkNJMSWUK7_cjs.defu(
|
|
445
445
|
await createBasePreset__default.default({
|
|
446
446
|
...COMMIT_CONFIGS.monorepo.changelogs.props,
|
|
447
447
|
scope: nxScopes
|
|
@@ -1005,7 +1005,7 @@ async function lint(message, config5) {
|
|
|
1005
1005
|
// src/commitlint/run.ts
|
|
1006
1006
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
1007
1007
|
async function runCommitLint(workspaceConfig, options) {
|
|
1008
|
-
|
|
1008
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
1009
1009
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
1010
1010
|
workspaceConfig
|
|
1011
1011
|
);
|
|
@@ -1013,7 +1013,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1013
1013
|
if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
|
|
1014
1014
|
commitMessage = options.message;
|
|
1015
1015
|
} else {
|
|
1016
|
-
const commitFile =
|
|
1016
|
+
const commitFile = chunkNJMSWUK7_cjs.joinPaths(
|
|
1017
1017
|
workspaceConfig.workspaceRoot,
|
|
1018
1018
|
options.file || options.message || COMMIT_EDITMSG_PATH
|
|
1019
1019
|
);
|
|
@@ -1030,17 +1030,17 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1030
1030
|
if (upstreamRemote) {
|
|
1031
1031
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
1032
1032
|
if (!upstreamRemoteIdentifier) {
|
|
1033
|
-
|
|
1033
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
1034
1034
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
|
|
1035
1035
|
workspaceConfig
|
|
1036
1036
|
);
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1039
|
+
chunkNJMSWUK7_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
1040
1040
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
1041
1041
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
1042
1042
|
} else {
|
|
1043
|
-
|
|
1043
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
1044
1044
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
|
|
1045
1045
|
workspaceConfig
|
|
1046
1046
|
);
|
|
@@ -1048,7 +1048,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
1050
1050
|
if (!commitMessage) {
|
|
1051
|
-
|
|
1051
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
1052
1052
|
"No commits found. Skipping commit message validation.",
|
|
1053
1053
|
workspaceConfig
|
|
1054
1054
|
);
|
|
@@ -1058,7 +1058,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1058
1058
|
const preset = await createPreset(workspaceConfig.variant);
|
|
1059
1059
|
const report = await lint(commitMessage, preset);
|
|
1060
1060
|
if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1061
|
-
|
|
1061
|
+
chunkNJMSWUK7_cjs.writeSuccess(
|
|
1062
1062
|
`Commit was processing completed successfully!`,
|
|
1063
1063
|
workspaceConfig
|
|
1064
1064
|
);
|
|
@@ -1270,7 +1270,7 @@ async function createState(workspaceConfig, configPath) {
|
|
|
1270
1270
|
const project = projectConfigurations.projects[scope];
|
|
1271
1271
|
if (project) {
|
|
1272
1272
|
let description = `${project.name} - ${project.root}`;
|
|
1273
|
-
const packageJsonPath =
|
|
1273
|
+
const packageJsonPath = chunkNJMSWUK7_cjs.joinPaths(project.root, "package.json");
|
|
1274
1274
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1275
1275
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1276
1276
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1344,19 +1344,19 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
|
|
|
1344
1344
|
|
|
1345
1345
|
// src/commit/run.ts
|
|
1346
1346
|
async function runCommit(commitizenFile, dryRun = false) {
|
|
1347
|
-
const workspaceConfig = await
|
|
1347
|
+
const workspaceConfig = await chunkNJMSWUK7_cjs.getWorkspaceConfig();
|
|
1348
1348
|
const state = await createState(workspaceConfig);
|
|
1349
1349
|
if (dryRun) {
|
|
1350
|
-
|
|
1350
|
+
chunkNJMSWUK7_cjs.writeInfo("Running in dry mode.", workspaceConfig);
|
|
1351
1351
|
}
|
|
1352
1352
|
console.log(
|
|
1353
1353
|
chalk2__default.default.bold.hex("#4b585b")("----------------------------------------") + "\n" + chalk2__default.default.bold.hex("#FFFFFF")(
|
|
1354
|
-
` ${
|
|
1354
|
+
` ${chunkNJMSWUK7_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit`
|
|
1355
1355
|
) + "\n" + chalk2__default.default.hex("#9ca8ab")("Please provide the requested details below...") + "\n"
|
|
1356
1356
|
);
|
|
1357
1357
|
state.answers = await askQuestions(state);
|
|
1358
1358
|
const message = formatCommitMessage(state, workspaceConfig);
|
|
1359
|
-
const commitMsgFile =
|
|
1359
|
+
const commitMsgFile = chunkNJMSWUK7_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1360
1360
|
console.log(
|
|
1361
1361
|
chalk2__default.default.bold.hex("#4b585b")("----------------------------------------") + `
|
|
1362
1362
|
|
|
@@ -1373,11 +1373,11 @@ ${chalk2__default.default.bold.hex("#FFFFFF")("Git-Commit File")}${chalk2__defau
|
|
|
1373
1373
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1374
1374
|
const command = shellescape__default.default(commandItems);
|
|
1375
1375
|
if (dryRun) {
|
|
1376
|
-
|
|
1376
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
1377
1377
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1378
1378
|
workspaceConfig
|
|
1379
1379
|
);
|
|
1380
|
-
|
|
1380
|
+
chunkNJMSWUK7_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1381
1381
|
} else {
|
|
1382
1382
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1383
1383
|
chunkMTAYUS7E_cjs.run(workspaceConfig, command);
|
|
@@ -2038,7 +2038,7 @@ var runReadme = async ({
|
|
|
2038
2038
|
exitOnError: true
|
|
2039
2039
|
});
|
|
2040
2040
|
const projectConfigs = projectGraph.readProjectsConfigurationFromProjectGraph(projectGraph$1);
|
|
2041
|
-
const workspaceRoot =
|
|
2041
|
+
const workspaceRoot = chunkNJMSWUK7_cjs.findWorkspaceRootSafe(process.cwd());
|
|
2042
2042
|
if (!workspaceRoot) {
|
|
2043
2043
|
throw new Error(
|
|
2044
2044
|
"Unable to find the workspace root. Please ensure you are running this command from within a workspace."
|
|
@@ -2455,7 +2455,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2455
2455
|
const header = await prettier.format(
|
|
2456
2456
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkNJMSWUK7_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2459
2459
|
|
|
2460
2460
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2461
2461
|
|
|
@@ -2631,12 +2631,12 @@ async function generateChangelogForProjects({
|
|
|
2631
2631
|
projectChangelogs
|
|
2632
2632
|
)) {
|
|
2633
2633
|
if (!projectGraph.nodes[projectName]?.data.root) {
|
|
2634
|
-
|
|
2634
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
2635
2635
|
`A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
|
|
2636
2636
|
workspaceConfig
|
|
2637
2637
|
);
|
|
2638
2638
|
} else if (projectChangelog.contents) {
|
|
2639
|
-
const filePath =
|
|
2639
|
+
const filePath = chunkNJMSWUK7_cjs.joinPaths(
|
|
2640
2640
|
projectGraph.nodes[projectName].data.root,
|
|
2641
2641
|
"CHANGELOG.md"
|
|
2642
2642
|
);
|
|
@@ -2644,7 +2644,7 @@ async function generateChangelogForProjects({
|
|
|
2644
2644
|
if (fs$1.existsSync(filePath)) {
|
|
2645
2645
|
currentContent = await fs.readFile(filePath, "utf8");
|
|
2646
2646
|
}
|
|
2647
|
-
|
|
2647
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2648
2648
|
`\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
|
|
2649
2649
|
workspaceConfig
|
|
2650
2650
|
);
|
|
@@ -2862,12 +2862,12 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2862
2862
|
if (!matchingTags.length) {
|
|
2863
2863
|
return null;
|
|
2864
2864
|
}
|
|
2865
|
-
|
|
2865
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2866
2866
|
`Found ${matchingTags.length} matching tags out of ${tags.length} total tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2867
2867
|
workspaceConfig
|
|
2868
2868
|
);
|
|
2869
2869
|
if (!strictPreid) {
|
|
2870
|
-
|
|
2870
|
+
chunkNJMSWUK7_cjs.writeTrace(
|
|
2871
2871
|
`Not using strict preid, will use the greatest matching tag of project "${additionalInterpolationData.projectName}"`,
|
|
2872
2872
|
workspaceConfig
|
|
2873
2873
|
);
|
|
@@ -2879,7 +2879,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2879
2879
|
const [, version] = matches;
|
|
2880
2880
|
return version && !shared.isPrerelease(version);
|
|
2881
2881
|
});
|
|
2882
|
-
|
|
2882
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2883
2883
|
`Found ${stableReleaseTags.length} stable tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2884
2884
|
workspaceConfig
|
|
2885
2885
|
);
|
|
@@ -2890,7 +2890,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2890
2890
|
const version = match.find((part) => part.match(SEMVER_REGEX));
|
|
2891
2891
|
return version && version.includes(`-${preid}.`);
|
|
2892
2892
|
});
|
|
2893
|
-
|
|
2893
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2894
2894
|
`Found ${preidReleaseTags.length} preid tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2895
2895
|
workspaceConfig
|
|
2896
2896
|
);
|
|
@@ -2899,12 +2899,12 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2899
2899
|
const stableResult = compareTags(stableReleaseTags, tagRegexp, options);
|
|
2900
2900
|
const preidBaseVersion = semver.coerce(preidResult.extractedVersion)?.version;
|
|
2901
2901
|
const stableVersion = semver.coerce(stableResult.extractedVersion)?.version;
|
|
2902
|
-
|
|
2902
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2903
2903
|
`Extracted preid version: ${preidBaseVersion} and stable version: ${stableVersion} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2904
2904
|
workspaceConfig
|
|
2905
2905
|
);
|
|
2906
2906
|
if (preidBaseVersion && stableVersion && semver.gte(stableVersion, preidBaseVersion)) {
|
|
2907
|
-
|
|
2907
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2908
2908
|
`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})`,
|
|
2909
2909
|
workspaceConfig
|
|
2910
2910
|
);
|
|
@@ -2913,7 +2913,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2913
2913
|
return preidResult;
|
|
2914
2914
|
}
|
|
2915
2915
|
if (preidReleaseTags.length > 0) {
|
|
2916
|
-
|
|
2916
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2917
2917
|
`Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2918
2918
|
workspaceConfig
|
|
2919
2919
|
);
|
|
@@ -2921,7 +2921,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
2923
|
if (stableReleaseTags.length > 0) {
|
|
2924
|
-
|
|
2924
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
2925
2925
|
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2926
2926
|
workspaceConfig
|
|
2927
2927
|
);
|
|
@@ -2975,7 +2975,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
|
|
|
2975
2975
|
}
|
|
2976
2976
|
async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
|
|
2977
2977
|
if (!this.workspaceConfig) {
|
|
2978
|
-
this.workspaceConfig = await
|
|
2978
|
+
this.workspaceConfig = await chunkNJMSWUK7_cjs.getWorkspaceConfig();
|
|
2979
2979
|
}
|
|
2980
2980
|
const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
|
|
2981
2981
|
return super.createOrUpdateRelease(
|
|
@@ -3168,7 +3168,7 @@ async function format3(path, data) {
|
|
|
3168
3168
|
if (resolvedConfig) {
|
|
3169
3169
|
code = await prettier.format(
|
|
3170
3170
|
data,
|
|
3171
|
-
|
|
3171
|
+
chunkNJMSWUK7_cjs.defu(
|
|
3172
3172
|
{
|
|
3173
3173
|
absolutePath: path,
|
|
3174
3174
|
...resolvedConfig
|
|
@@ -3224,7 +3224,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
3224
3224
|
}
|
|
3225
3225
|
async render() {
|
|
3226
3226
|
if (!this.workspaceConfig) {
|
|
3227
|
-
this.workspaceConfig = await
|
|
3227
|
+
this.workspaceConfig = await chunkNJMSWUK7_cjs.getWorkspaceConfig();
|
|
3228
3228
|
}
|
|
3229
3229
|
return super.render();
|
|
3230
3230
|
}
|
|
@@ -3531,7 +3531,7 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
|
|
|
3531
3531
|
var DEFAULT_RELEASE_CONFIG = {
|
|
3532
3532
|
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
|
|
3533
3533
|
groups: {
|
|
3534
|
-
packages:
|
|
3534
|
+
packages: chunkNJMSWUK7_cjs.defu(
|
|
3535
3535
|
{
|
|
3536
3536
|
projects: ["packages/*"]
|
|
3537
3537
|
},
|
|
@@ -3539,7 +3539,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3539
3539
|
DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3540
3540
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
3541
3541
|
),
|
|
3542
|
-
crates:
|
|
3542
|
+
crates: chunkNJMSWUK7_cjs.defu(
|
|
3543
3543
|
{
|
|
3544
3544
|
projects: ["crates/*"]
|
|
3545
3545
|
},
|
|
@@ -3562,7 +3562,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
};
|
|
3564
3564
|
function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
|
|
3565
|
-
return
|
|
3565
|
+
return chunkNJMSWUK7_cjs.defu(
|
|
3566
3566
|
{
|
|
3567
3567
|
...omit(defaultConfig, ["changelog", "version"]),
|
|
3568
3568
|
...config5
|
|
@@ -3593,7 +3593,7 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3593
3593
|
projectGraph.nodes
|
|
3594
3594
|
);
|
|
3595
3595
|
if (!matchingProjects.length) {
|
|
3596
|
-
|
|
3596
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
3597
3597
|
`Release group "${name}" does not have any matching projects.`
|
|
3598
3598
|
);
|
|
3599
3599
|
return void 0;
|
|
@@ -3613,13 +3613,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3613
3613
|
ProjectTagConstants.Language.TAG_ID,
|
|
3614
3614
|
ProjectTagConstants.Language.TYPESCRIPT
|
|
3615
3615
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3616
|
-
|
|
3616
|
+
chunkNJMSWUK7_cjs.joinPaths(
|
|
3617
3617
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3618
3618
|
"package.json"
|
|
3619
3619
|
)
|
|
3620
3620
|
))
|
|
3621
3621
|
)) {
|
|
3622
|
-
defaultConfig =
|
|
3622
|
+
defaultConfig = chunkNJMSWUK7_cjs.defu(
|
|
3623
3623
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3624
3624
|
DEFAULT_JS_RELEASE_GROUP_CONFIG,
|
|
3625
3625
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3630,13 +3630,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3630
3630
|
ProjectTagConstants.Language.TAG_ID,
|
|
3631
3631
|
ProjectTagConstants.Language.RUST
|
|
3632
3632
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3633
|
-
|
|
3633
|
+
chunkNJMSWUK7_cjs.joinPaths(
|
|
3634
3634
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3635
3635
|
"Cargo.toml"
|
|
3636
3636
|
)
|
|
3637
3637
|
))
|
|
3638
3638
|
)) {
|
|
3639
|
-
defaultConfig =
|
|
3639
|
+
defaultConfig = chunkNJMSWUK7_cjs.defu(
|
|
3640
3640
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3641
3641
|
DEFAULT_RUST_RELEASE_GROUP_CONFIG,
|
|
3642
3642
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3650,13 +3650,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3650
3650
|
config5.projects = matchingProjects;
|
|
3651
3651
|
if (workspaceConfig?.workspaceRoot) {
|
|
3652
3652
|
if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
|
|
3653
|
-
config5.changelog.renderer =
|
|
3653
|
+
config5.changelog.renderer = chunkNJMSWUK7_cjs.joinPaths(
|
|
3654
3654
|
workspaceConfig.workspaceRoot,
|
|
3655
3655
|
config5.changelog.renderer
|
|
3656
3656
|
);
|
|
3657
3657
|
}
|
|
3658
3658
|
if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
|
|
3659
|
-
config5.version.versionActions =
|
|
3659
|
+
config5.version.versionActions = chunkNJMSWUK7_cjs.joinPaths(
|
|
3660
3660
|
workspaceConfig.workspaceRoot,
|
|
3661
3661
|
config5.version?.versionActions
|
|
3662
3662
|
);
|
|
@@ -3668,10 +3668,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3668
3668
|
}
|
|
3669
3669
|
function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
|
|
3670
3670
|
let nxJson$1 = {};
|
|
3671
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(
|
|
3671
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunkNJMSWUK7_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3672
3672
|
nxJson$1 = nxJson.readNxJson();
|
|
3673
3673
|
}
|
|
3674
|
-
const baseConfig =
|
|
3674
|
+
const baseConfig = chunkNJMSWUK7_cjs.defu(
|
|
3675
3675
|
{
|
|
3676
3676
|
changelog: {
|
|
3677
3677
|
renderOptions: {
|
|
@@ -3688,7 +3688,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3688
3688
|
if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
|
|
3689
3689
|
groups = releaseConfig.groups;
|
|
3690
3690
|
if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
|
|
3691
|
-
groups =
|
|
3691
|
+
groups = chunkNJMSWUK7_cjs.defu(
|
|
3692
3692
|
groups,
|
|
3693
3693
|
nxJson$1.release.groups
|
|
3694
3694
|
);
|
|
@@ -3708,7 +3708,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3708
3708
|
};
|
|
3709
3709
|
}
|
|
3710
3710
|
function formatConfigLog(config5) {
|
|
3711
|
-
return
|
|
3711
|
+
return chunkNJMSWUK7_cjs.formatLogMessage(config5, {
|
|
3712
3712
|
sort: true,
|
|
3713
3713
|
skip: ["workspaceConfig", "conventionalCommits"]
|
|
3714
3714
|
});
|
|
@@ -4121,7 +4121,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
4121
4121
|
this.resolveRepositoryTags.bind(this),
|
|
4122
4122
|
options
|
|
4123
4123
|
);
|
|
4124
|
-
|
|
4124
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
4125
4125
|
`Group release tag pattern: ${releaseTagPattern}
|
|
4126
4126
|
Project release tag pattern: ${projectReleaseTagPattern}
|
|
4127
4127
|
Group release tag: ${groupReleaseTag?.tag}
|
|
@@ -4145,7 +4145,7 @@ Project release tag: ${projectReleaseTag?.tag}`,
|
|
|
4145
4145
|
options
|
|
4146
4146
|
);
|
|
4147
4147
|
}
|
|
4148
|
-
|
|
4148
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
4149
4149
|
`Resolved latest matching git tag for "${projectName}": ${latestMatchingGitTag?.tag} (version: ${latestMatchingGitTag?.extractedVersion})`,
|
|
4150
4150
|
this.workspaceConfig
|
|
4151
4151
|
);
|
|
@@ -4415,7 +4415,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4415
4415
|
constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
|
|
4416
4416
|
super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
|
|
4417
4417
|
dryRun: !!versionOptions.dryRun,
|
|
4418
|
-
verbose: versionOptions.verbose ||
|
|
4418
|
+
verbose: versionOptions.verbose || chunkNJMSWUK7_cjs.isVerbose(workspaceConfig.logLevel),
|
|
4419
4419
|
firstRelease: !!versionOptions.firstRelease,
|
|
4420
4420
|
preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
|
|
4421
4421
|
userGivenSpecifier: versionOptions.specifier,
|
|
@@ -4513,7 +4513,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4513
4513
|
deletedFiles: deletedFilesForVersionActions
|
|
4514
4514
|
} = await afterAllProjectsVersioned(this.#tree.root, {
|
|
4515
4515
|
dryRun: this.versionOptions.dryRun,
|
|
4516
|
-
verbose: this.versionOptions.verbose ||
|
|
4516
|
+
verbose: this.versionOptions.verbose || chunkNJMSWUK7_cjs.isVerbose(this.workspaceConfig.logLevel),
|
|
4517
4517
|
rootVersionActionsOptions
|
|
4518
4518
|
});
|
|
4519
4519
|
for (const file of changedFilesForVersionActions) {
|
|
@@ -4546,7 +4546,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4546
4546
|
let handleDockerVersion;
|
|
4547
4547
|
try {
|
|
4548
4548
|
const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
|
|
4549
|
-
const { handleDockerVersion: _handleDockerVersion } =
|
|
4549
|
+
const { handleDockerVersion: _handleDockerVersion } = chunkNJMSWUK7_cjs.__require(dockerVersionUtilsPath);
|
|
4550
4550
|
handleDockerVersion = _handleDockerVersion;
|
|
4551
4551
|
} catch (e) {
|
|
4552
4552
|
console.error(
|
|
@@ -4634,12 +4634,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4634
4634
|
for (const project of releaseGroup.projects) {
|
|
4635
4635
|
const currentVersion = this.#getCurrentCachedVersionForProject(project);
|
|
4636
4636
|
if (!currentVersion) {
|
|
4637
|
-
|
|
4637
|
+
chunkNJMSWUK7_cjs.writeTrace(
|
|
4638
4638
|
`No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
4639
4639
|
this.workspaceConfig
|
|
4640
4640
|
);
|
|
4641
4641
|
} else {
|
|
4642
|
-
|
|
4642
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
4643
4643
|
`Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
|
|
4644
4644
|
this.workspaceConfig
|
|
4645
4645
|
);
|
|
@@ -4665,7 +4665,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4665
4665
|
reasonData: newVersionInputReasonData
|
|
4666
4666
|
};
|
|
4667
4667
|
}
|
|
4668
|
-
|
|
4668
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
4669
4669
|
`Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
|
|
4670
4670
|
this.workspaceConfig
|
|
4671
4671
|
);
|
|
@@ -5118,7 +5118,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
5118
5118
|
var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
|
|
5119
5119
|
static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
|
|
5120
5120
|
if (!workspaceConfig) {
|
|
5121
|
-
workspaceConfig = await
|
|
5121
|
+
workspaceConfig = await chunkNJMSWUK7_cjs.getWorkspaceConfig();
|
|
5122
5122
|
}
|
|
5123
5123
|
const projectGraph = await devkit.createProjectGraphAsync({
|
|
5124
5124
|
exitOnError: true,
|
|
@@ -5129,7 +5129,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
5129
5129
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
5130
5130
|
);
|
|
5131
5131
|
}
|
|
5132
|
-
|
|
5132
|
+
chunkNJMSWUK7_cjs.writeTrace(
|
|
5133
5133
|
`Provided release configuration:
|
|
5134
5134
|
${formatConfigLog(releaseConfig)}`,
|
|
5135
5135
|
workspaceConfig
|
|
@@ -5140,7 +5140,7 @@ ${formatConfigLog(releaseConfig)}`,
|
|
|
5140
5140
|
workspaceConfig,
|
|
5141
5141
|
ignoreNxJsonConfig
|
|
5142
5142
|
);
|
|
5143
|
-
|
|
5143
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5144
5144
|
`Resolved release configuration:
|
|
5145
5145
|
${formatConfigLog(config5)}`,
|
|
5146
5146
|
workspaceConfig
|
|
@@ -5177,11 +5177,11 @@ ${formatConfigLog(config5)}`,
|
|
|
5177
5177
|
*/
|
|
5178
5178
|
constructor(projectGraph, releaseConfig, workspaceConfig) {
|
|
5179
5179
|
super(releaseConfig, true);
|
|
5180
|
-
|
|
5180
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5181
5181
|
"Executing release with the following configuration",
|
|
5182
5182
|
workspaceConfig
|
|
5183
5183
|
);
|
|
5184
|
-
|
|
5184
|
+
chunkNJMSWUK7_cjs.writeDebug(releaseConfig, workspaceConfig);
|
|
5185
5185
|
this.projectGraph = projectGraph;
|
|
5186
5186
|
this.releaseConfig = releaseConfig;
|
|
5187
5187
|
this.workspaceConfig = workspaceConfig;
|
|
@@ -5209,7 +5209,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5209
5209
|
groups: options.groups
|
|
5210
5210
|
},
|
|
5211
5211
|
firstRelease: !!options.firstRelease,
|
|
5212
|
-
verbose:
|
|
5212
|
+
verbose: chunkNJMSWUK7_cjs.isVerbose(this.workspaceConfig.logLevel)
|
|
5213
5213
|
},
|
|
5214
5214
|
this.workspaceConfig
|
|
5215
5215
|
);
|
|
@@ -5339,7 +5339,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5339
5339
|
})),
|
|
5340
5340
|
this.releaseConfig.conventionalCommits
|
|
5341
5341
|
);
|
|
5342
|
-
|
|
5342
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5343
5343
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5344
5344
|
this.workspaceConfig
|
|
5345
5345
|
);
|
|
@@ -5414,7 +5414,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5414
5414
|
})),
|
|
5415
5415
|
this.releaseConfig.conventionalCommits
|
|
5416
5416
|
);
|
|
5417
|
-
|
|
5417
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5418
5418
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5419
5419
|
this.workspaceConfig
|
|
5420
5420
|
);
|
|
@@ -5443,7 +5443,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5443
5443
|
}
|
|
5444
5444
|
}
|
|
5445
5445
|
}
|
|
5446
|
-
|
|
5446
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5447
5447
|
`Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
|
|
5448
5448
|
${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
5449
5449
|
`,
|
|
@@ -5472,7 +5472,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5472
5472
|
);
|
|
5473
5473
|
const changes = this.tree.listChanges();
|
|
5474
5474
|
if (!changes.length) {
|
|
5475
|
-
|
|
5475
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
5476
5476
|
"No changes were detected for any changelog files, so no changelog entries will be generated.",
|
|
5477
5477
|
this.workspaceConfig
|
|
5478
5478
|
);
|
|
@@ -5494,7 +5494,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5494
5494
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
|
|
5495
5495
|
});
|
|
5496
5496
|
latestCommit = await git.getCommitHash("HEAD");
|
|
5497
|
-
|
|
5497
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5498
5498
|
`Creating git tags: ${gitTagValues.join(", ")}`,
|
|
5499
5499
|
this.workspaceConfig
|
|
5500
5500
|
);
|
|
@@ -5507,7 +5507,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5507
5507
|
verbose: options.verbose
|
|
5508
5508
|
});
|
|
5509
5509
|
}
|
|
5510
|
-
|
|
5510
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5511
5511
|
`Pushing to git remote "${options.gitRemote ?? "origin"}"`,
|
|
5512
5512
|
this.workspaceConfig
|
|
5513
5513
|
);
|
|
@@ -5523,7 +5523,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5523
5523
|
return;
|
|
5524
5524
|
};
|
|
5525
5525
|
releaseVersion = async (options) => {
|
|
5526
|
-
const verbose = options.verbose ||
|
|
5526
|
+
const verbose = options.verbose || chunkNJMSWUK7_cjs.isVerbose(this.workspaceConfig.logLevel);
|
|
5527
5527
|
this.projectGraph = await devkit.createProjectGraphAsync({
|
|
5528
5528
|
exitOnError: true,
|
|
5529
5529
|
resetDaemonClient: true
|
|
@@ -5550,7 +5550,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5550
5550
|
this.workspaceConfig
|
|
5551
5551
|
);
|
|
5552
5552
|
if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
|
|
5553
|
-
|
|
5553
|
+
chunkNJMSWUK7_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
|
|
5554
5554
|
}
|
|
5555
5555
|
if (!options.specifier) {
|
|
5556
5556
|
const rawVersionPlans = await versionPlans.readRawVersionPlans();
|
|
@@ -5569,7 +5569,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5569
5569
|
}
|
|
5570
5570
|
} else {
|
|
5571
5571
|
if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
|
|
5572
|
-
|
|
5572
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5573
5573
|
`Skipping version plan discovery as a specifier was provided`,
|
|
5574
5574
|
this.workspaceConfig
|
|
5575
5575
|
);
|
|
@@ -5579,7 +5579,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5579
5579
|
options.deleteVersionPlans = false;
|
|
5580
5580
|
}
|
|
5581
5581
|
if (this.releaseConfig.version?.preVersionCommand) {
|
|
5582
|
-
|
|
5582
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5583
5583
|
"Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
|
|
5584
5584
|
this.workspaceConfig
|
|
5585
5585
|
);
|
|
@@ -5615,7 +5615,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5615
5615
|
continue;
|
|
5616
5616
|
}
|
|
5617
5617
|
if (releaseGroup.version?.groupPreVersionCommand) {
|
|
5618
|
-
|
|
5618
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5619
5619
|
`Executing the ${releaseGroup.name} release group's pre-version command:
|
|
5620
5620
|
` + releaseGroup.version?.groupPreVersionCommand,
|
|
5621
5621
|
this.workspaceConfig
|
|
@@ -5675,7 +5675,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5675
5675
|
changed.forEach((f) => additionalChangedFiles.add(f));
|
|
5676
5676
|
deleted.forEach((f) => additionalDeletedFiles.add(f));
|
|
5677
5677
|
if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
|
|
5678
|
-
|
|
5678
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5679
5679
|
`Executing the docker pre-version command:
|
|
5680
5680
|
` + this.releaseConfig.docker.preVersionCommand,
|
|
5681
5681
|
this.workspaceConfig
|
|
@@ -5712,7 +5712,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5712
5712
|
continue;
|
|
5713
5713
|
}
|
|
5714
5714
|
if (releaseGroup.docker?.groupPreVersionCommand) {
|
|
5715
|
-
|
|
5715
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5716
5716
|
`Executing the ${releaseGroup.name} release group's docker pre-version command:
|
|
5717
5717
|
` + releaseGroup.docker?.groupPreVersionCommand,
|
|
5718
5718
|
this.workspaceConfig
|
|
@@ -5743,7 +5743,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5743
5743
|
}
|
|
5744
5744
|
}
|
|
5745
5745
|
if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
|
|
5746
|
-
|
|
5746
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
5747
5747
|
formatNxLog({
|
|
5748
5748
|
title: "Warning",
|
|
5749
5749
|
bodyLines: [
|
|
@@ -5800,7 +5800,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5800
5800
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
|
|
5801
5801
|
});
|
|
5802
5802
|
} else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
|
|
5803
|
-
|
|
5803
|
+
chunkNJMSWUK7_cjs.writeDebug(`Staging changed files with git`);
|
|
5804
5804
|
await git.gitAdd({
|
|
5805
5805
|
changedFiles,
|
|
5806
5806
|
deletedFiles,
|
|
@@ -5809,7 +5809,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5809
5809
|
});
|
|
5810
5810
|
}
|
|
5811
5811
|
if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
|
|
5812
|
-
|
|
5812
|
+
chunkNJMSWUK7_cjs.writeDebug(`Tagging commit with git`);
|
|
5813
5813
|
for (const tag of gitTagValues) {
|
|
5814
5814
|
await gitTag({
|
|
5815
5815
|
tag,
|
|
@@ -5821,7 +5821,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5821
5821
|
}
|
|
5822
5822
|
}
|
|
5823
5823
|
if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
|
|
5824
|
-
|
|
5824
|
+
chunkNJMSWUK7_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
|
|
5825
5825
|
await git.gitPush({
|
|
5826
5826
|
gitRemote: options.gitRemote,
|
|
5827
5827
|
dryRun: options.dryRun,
|
|
@@ -5852,7 +5852,7 @@ var runRelease = async (config5, {
|
|
|
5852
5852
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
5853
5853
|
}
|
|
5854
5854
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
5855
|
-
|
|
5855
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
5856
5856
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
5857
5857
|
config5
|
|
5858
5858
|
);
|
|
@@ -5869,23 +5869,23 @@ var runRelease = async (config5, {
|
|
|
5869
5869
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5870
5870
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5871
5871
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
5872
|
-
|
|
5872
|
+
chunkNJMSWUK7_cjs.writeDebug("Creating Storm release client...", config5);
|
|
5873
5873
|
const releaseClient = await StormReleaseClient.create(
|
|
5874
5874
|
releaseConfig,
|
|
5875
5875
|
ignoreNxJsonConfig,
|
|
5876
5876
|
config5
|
|
5877
5877
|
);
|
|
5878
|
-
|
|
5878
|
+
chunkNJMSWUK7_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
5879
5879
|
const to = head || process.env.NX_HEAD;
|
|
5880
5880
|
const from = base || process.env.NX_BASE;
|
|
5881
|
-
|
|
5881
|
+
chunkNJMSWUK7_cjs.writeDebug(
|
|
5882
5882
|
`Using the following Git SHAs to determine the release content:
|
|
5883
5883
|
- From: ${from}
|
|
5884
5884
|
- To: ${to}
|
|
5885
5885
|
`,
|
|
5886
5886
|
config5
|
|
5887
5887
|
);
|
|
5888
|
-
|
|
5888
|
+
chunkNJMSWUK7_cjs.writeDebug("Determining the current release versions...", config5);
|
|
5889
5889
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
5890
5890
|
dryRun,
|
|
5891
5891
|
verbose: true,
|
|
@@ -5902,9 +5902,9 @@ var runRelease = async (config5, {
|
|
|
5902
5902
|
from,
|
|
5903
5903
|
releaseGraph
|
|
5904
5904
|
});
|
|
5905
|
-
|
|
5905
|
+
chunkNJMSWUK7_cjs.writeDebug("Tagging commit with git", config5);
|
|
5906
5906
|
if (skipPublish) {
|
|
5907
|
-
|
|
5907
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
5908
5908
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
5909
5909
|
config5
|
|
5910
5910
|
);
|
|
@@ -5913,7 +5913,7 @@ var runRelease = async (config5, {
|
|
|
5913
5913
|
(key) => projectsVersionData[key]?.newVersion
|
|
5914
5914
|
);
|
|
5915
5915
|
if (changedProjects.length > 0) {
|
|
5916
|
-
|
|
5916
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
5917
5917
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
5918
5918
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
5919
5919
|
`,
|
|
@@ -5937,10 +5937,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
5937
5937
|
);
|
|
5938
5938
|
}
|
|
5939
5939
|
} else {
|
|
5940
|
-
|
|
5940
|
+
chunkNJMSWUK7_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
5941
5941
|
}
|
|
5942
5942
|
}
|
|
5943
|
-
|
|
5943
|
+
chunkNJMSWUK7_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
5944
5944
|
};
|
|
5945
5945
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
5946
5946
|
let projectGraph;
|
|
@@ -5955,7 +5955,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5955
5955
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
5956
5956
|
const projectNode = projectGraph.nodes[node];
|
|
5957
5957
|
if (!projectNode?.data.root) {
|
|
5958
|
-
|
|
5958
|
+
chunkNJMSWUK7_cjs.writeWarning(
|
|
5959
5959
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
5960
5960
|
config5
|
|
5961
5961
|
);
|
|
@@ -5963,17 +5963,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5963
5963
|
}
|
|
5964
5964
|
const versionData = projectsVersionData[node];
|
|
5965
5965
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
5966
|
-
|
|
5966
|
+
chunkNJMSWUK7_cjs.writeTrace(
|
|
5967
5967
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
5968
5968
|
`,
|
|
5969
5969
|
config5
|
|
5970
5970
|
);
|
|
5971
|
-
const projectRoot =
|
|
5971
|
+
const projectRoot = chunkNJMSWUK7_cjs.joinPaths(
|
|
5972
5972
|
config5.workspaceRoot,
|
|
5973
5973
|
projectNode.data.root
|
|
5974
5974
|
);
|
|
5975
|
-
const packageJsonPath =
|
|
5976
|
-
const cargoTomlPath =
|
|
5975
|
+
const packageJsonPath = chunkNJMSWUK7_cjs.joinPaths(projectRoot, "package.json");
|
|
5976
|
+
const cargoTomlPath = chunkNJMSWUK7_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
5977
5977
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
5978
5978
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
5979
5979
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -5991,7 +5991,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5991
5991
|
})
|
|
5992
5992
|
);
|
|
5993
5993
|
} else {
|
|
5994
|
-
|
|
5994
|
+
chunkNJMSWUK7_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
5995
5995
|
}
|
|
5996
5996
|
}
|
|
5997
5997
|
|
|
@@ -5999,8 +5999,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5999
5999
|
var _config = {};
|
|
6000
6000
|
function createProgram(config5) {
|
|
6001
6001
|
_config = config5;
|
|
6002
|
-
|
|
6003
|
-
const root =
|
|
6002
|
+
chunkNJMSWUK7_cjs.writeInfo(`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
|
|
6003
|
+
const root = chunkNJMSWUK7_cjs.findWorkspaceRootSafe(process.cwd());
|
|
6004
6004
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
6005
6005
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
6006
6006
|
if (root) {
|
|
@@ -6047,12 +6047,12 @@ async function commitAction({
|
|
|
6047
6047
|
dryRun = false
|
|
6048
6048
|
}) {
|
|
6049
6049
|
try {
|
|
6050
|
-
|
|
6051
|
-
`${
|
|
6050
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6051
|
+
`${chunkNJMSWUK7_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
|
|
6052
6052
|
_config
|
|
6053
6053
|
);
|
|
6054
6054
|
await runCommit(config5, dryRun);
|
|
6055
|
-
|
|
6055
|
+
chunkNJMSWUK7_cjs.writeSuccess(
|
|
6056
6056
|
`\u2714 Storm Commit processing completed successfully!
|
|
6057
6057
|
|
|
6058
6058
|
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}
|
|
@@ -6060,7 +6060,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
6060
6060
|
_config
|
|
6061
6061
|
);
|
|
6062
6062
|
} catch (error) {
|
|
6063
|
-
|
|
6063
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6064
6064
|
`A fatal error occurred while running commit action:
|
|
6065
6065
|
|
|
6066
6066
|
${error.message}${error.stack ? `
|
|
@@ -6075,17 +6075,17 @@ Please fix any errors and try committing again.`,
|
|
|
6075
6075
|
}
|
|
6076
6076
|
async function readmeAction(options) {
|
|
6077
6077
|
try {
|
|
6078
|
-
|
|
6079
|
-
`${
|
|
6078
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6079
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
|
|
6080
6080
|
_config
|
|
6081
6081
|
);
|
|
6082
6082
|
await runReadme(options);
|
|
6083
|
-
|
|
6083
|
+
chunkNJMSWUK7_cjs.writeSuccess(
|
|
6084
6084
|
"\u2714 Formatting of the workspace's README.md files is complete\n",
|
|
6085
6085
|
_config
|
|
6086
6086
|
);
|
|
6087
6087
|
} catch (error) {
|
|
6088
|
-
|
|
6088
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6089
6089
|
`A fatal error occurred while running README format action:
|
|
6090
6090
|
|
|
6091
6091
|
${error.message}`
|
|
@@ -6100,8 +6100,8 @@ async function releaseAction({
|
|
|
6100
6100
|
dryRun
|
|
6101
6101
|
}) {
|
|
6102
6102
|
try {
|
|
6103
|
-
|
|
6104
|
-
`${
|
|
6103
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6104
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
|
|
6105
6105
|
_config
|
|
6106
6106
|
);
|
|
6107
6107
|
await runRelease(_config, {
|
|
@@ -6110,9 +6110,9 @@ async function releaseAction({
|
|
|
6110
6110
|
base,
|
|
6111
6111
|
head
|
|
6112
6112
|
});
|
|
6113
|
-
|
|
6113
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
|
|
6114
6114
|
} catch (error) {
|
|
6115
|
-
|
|
6115
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6116
6116
|
`A fatal error occurred while running release action:
|
|
6117
6117
|
|
|
6118
6118
|
${error.message} ${error.stack ? `
|
|
@@ -6126,17 +6126,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
6126
6126
|
}
|
|
6127
6127
|
async function commitLintAction(options) {
|
|
6128
6128
|
try {
|
|
6129
|
-
|
|
6130
|
-
`${
|
|
6129
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6130
|
+
`${chunkNJMSWUK7_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.`,
|
|
6131
6131
|
_config
|
|
6132
6132
|
);
|
|
6133
6133
|
await runCommitLint(_config, options);
|
|
6134
|
-
|
|
6134
|
+
chunkNJMSWUK7_cjs.writeSuccess(
|
|
6135
6135
|
"\u2714 Linting the commit messages completed successfully!\n",
|
|
6136
6136
|
_config
|
|
6137
6137
|
);
|
|
6138
6138
|
} catch (error) {
|
|
6139
|
-
|
|
6139
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6140
6140
|
`A fatal error occurred while linting the commit messages:
|
|
6141
6141
|
|
|
6142
6142
|
${error.message}`,
|
|
@@ -6147,14 +6147,14 @@ ${error.message}`,
|
|
|
6147
6147
|
}
|
|
6148
6148
|
async function postCheckoutAction({ files }) {
|
|
6149
6149
|
try {
|
|
6150
|
-
|
|
6151
|
-
`${
|
|
6150
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6151
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
6152
6152
|
_config
|
|
6153
6153
|
);
|
|
6154
|
-
await
|
|
6155
|
-
|
|
6154
|
+
await chunkK6GWYEPW_cjs.postCheckoutHook(_config, files);
|
|
6155
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
|
|
6156
6156
|
} catch (error) {
|
|
6157
|
-
|
|
6157
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6158
6158
|
`A fatal error occurred while running the post-checkout hook:
|
|
6159
6159
|
|
|
6160
6160
|
${error.message}`,
|
|
@@ -6165,14 +6165,14 @@ ${error.message}`,
|
|
|
6165
6165
|
}
|
|
6166
6166
|
async function postCommitAction({ files }) {
|
|
6167
6167
|
try {
|
|
6168
|
-
|
|
6169
|
-
`${
|
|
6168
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6169
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
6170
6170
|
_config
|
|
6171
6171
|
);
|
|
6172
|
-
await
|
|
6173
|
-
|
|
6172
|
+
await chunkPWU3UV75_cjs.postCommitHook(_config, files);
|
|
6173
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
|
|
6174
6174
|
} catch (error) {
|
|
6175
|
-
|
|
6175
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6176
6176
|
`A fatal error occurred while running the post-commit hook:
|
|
6177
6177
|
|
|
6178
6178
|
${error.message}`,
|
|
@@ -6183,14 +6183,14 @@ ${error.message}`,
|
|
|
6183
6183
|
}
|
|
6184
6184
|
async function postMergeAction({ files }) {
|
|
6185
6185
|
try {
|
|
6186
|
-
|
|
6187
|
-
`${
|
|
6186
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6187
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
6188
6188
|
_config
|
|
6189
6189
|
);
|
|
6190
|
-
await
|
|
6191
|
-
|
|
6190
|
+
await chunkFG3I2VCP_cjs.postMergeHook(_config, files);
|
|
6191
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
|
|
6192
6192
|
} catch (error) {
|
|
6193
|
-
|
|
6193
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6194
6194
|
`A fatal error occurred while running the post-merge hook:
|
|
6195
6195
|
|
|
6196
6196
|
${error.message}`,
|
|
@@ -6201,14 +6201,14 @@ ${error.message}`,
|
|
|
6201
6201
|
}
|
|
6202
6202
|
async function preCommitAction({ files }) {
|
|
6203
6203
|
try {
|
|
6204
|
-
|
|
6205
|
-
`${
|
|
6204
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6205
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
6206
6206
|
_config
|
|
6207
6207
|
);
|
|
6208
|
-
await
|
|
6209
|
-
|
|
6208
|
+
await chunkFNMZLTI2_cjs.preCommitHook(_config, files);
|
|
6209
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
|
|
6210
6210
|
} catch (error) {
|
|
6211
|
-
|
|
6211
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6212
6212
|
`A fatal error occurred while running the pre-commit hook:
|
|
6213
6213
|
|
|
6214
6214
|
${error.message}`,
|
|
@@ -6219,14 +6219,14 @@ ${error.message}`,
|
|
|
6219
6219
|
}
|
|
6220
6220
|
async function prePushAction({ files }) {
|
|
6221
6221
|
try {
|
|
6222
|
-
|
|
6223
|
-
`${
|
|
6222
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6223
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
6224
6224
|
_config
|
|
6225
6225
|
);
|
|
6226
|
-
await
|
|
6227
|
-
|
|
6226
|
+
await chunkEQSXP2RC_cjs.prePushHook(_config, files);
|
|
6227
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
|
|
6228
6228
|
} catch (error) {
|
|
6229
|
-
|
|
6229
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6230
6230
|
`A fatal error occurred while running the pre-push hook:
|
|
6231
6231
|
|
|
6232
6232
|
${error.message}`,
|
|
@@ -6237,14 +6237,14 @@ ${error.message}`,
|
|
|
6237
6237
|
}
|
|
6238
6238
|
async function prepareAction() {
|
|
6239
6239
|
try {
|
|
6240
|
-
|
|
6241
|
-
`${
|
|
6240
|
+
chunkNJMSWUK7_cjs.writeInfo(
|
|
6241
|
+
`${chunkNJMSWUK7_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
6242
6242
|
_config
|
|
6243
6243
|
);
|
|
6244
|
-
await
|
|
6245
|
-
|
|
6244
|
+
await chunkTQGWTIZB_cjs.prepareHook(_config);
|
|
6245
|
+
chunkNJMSWUK7_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
|
|
6246
6246
|
} catch (error) {
|
|
6247
|
-
|
|
6247
|
+
chunkNJMSWUK7_cjs.writeFatal(
|
|
6248
6248
|
`A fatal error occurred while running the prepare hook:
|
|
6249
6249
|
|
|
6250
6250
|
${error.message}`,
|
|
@@ -6256,18 +6256,18 @@ ${error.message}`,
|
|
|
6256
6256
|
|
|
6257
6257
|
// bin/git.ts
|
|
6258
6258
|
void (async () => {
|
|
6259
|
-
const config5 = await
|
|
6259
|
+
const config5 = await chunkNJMSWUK7_cjs.getConfig();
|
|
6260
6260
|
try {
|
|
6261
|
-
|
|
6261
|
+
chunkNJMSWUK7_cjs.handleProcess(config5);
|
|
6262
6262
|
const program = createProgram(config5);
|
|
6263
6263
|
await program.parseAsync(process.argv);
|
|
6264
|
-
|
|
6264
|
+
chunkNJMSWUK7_cjs.writeSuccess(
|
|
6265
6265
|
`\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
6266
6266
|
config5
|
|
6267
6267
|
);
|
|
6268
|
-
|
|
6268
|
+
chunkNJMSWUK7_cjs.exitWithSuccess(config5);
|
|
6269
6269
|
} catch (error) {
|
|
6270
|
-
|
|
6270
|
+
chunkNJMSWUK7_cjs.exitWithError(config5);
|
|
6271
6271
|
process.exit(1);
|
|
6272
6272
|
}
|
|
6273
6273
|
})();
|