@storm-software/git-tools 2.131.75 → 2.131.77
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 +7 -7
- package/bin/{chunk-GOHR7F5T.js → chunk-3NXGC5ST.js} +3 -3
- package/bin/{chunk-GOHR7F5T.js.map → chunk-3NXGC5ST.js.map} +1 -1
- package/bin/{chunk-JSI5AO4T.cjs → chunk-4FQ44OAT.cjs} +4 -4
- package/bin/{chunk-JSI5AO4T.cjs.map → chunk-4FQ44OAT.cjs.map} +1 -1
- package/bin/{chunk-MURFL6BB.js → chunk-4ZNUGFUK.js} +3 -3
- package/bin/{chunk-MURFL6BB.js.map → chunk-4ZNUGFUK.js.map} +1 -1
- package/bin/{chunk-HUNBUYVC.cjs → chunk-6G73LSPC.cjs} +4 -4
- package/bin/{chunk-HUNBUYVC.cjs.map → chunk-6G73LSPC.cjs.map} +1 -1
- package/bin/{chunk-L4IDLWWW.js → chunk-7NZOOZ4Y.js} +3 -3
- package/bin/{chunk-L4IDLWWW.js.map → chunk-7NZOOZ4Y.js.map} +1 -1
- package/bin/{chunk-WO432SEZ.cjs → chunk-DYZLP2KW.cjs} +6 -6
- package/bin/{chunk-WO432SEZ.cjs.map → chunk-DYZLP2KW.cjs.map} +1 -1
- package/bin/{chunk-5YEEPJM2.cjs → chunk-EOUDKHXD.cjs} +3 -3
- package/bin/{chunk-5YEEPJM2.cjs.map → chunk-EOUDKHXD.cjs.map} +1 -1
- package/bin/{chunk-IHYUNB2B.js → chunk-G6BAFKYK.js} +3 -3
- package/bin/{chunk-IHYUNB2B.js.map → chunk-G6BAFKYK.js.map} +1 -1
- package/bin/{chunk-W34H3XG2.js → chunk-HHHCNXKG.js} +3 -3
- package/bin/{chunk-W34H3XG2.js.map → chunk-HHHCNXKG.js.map} +1 -1
- package/bin/{chunk-B7J7QYQE.cjs → chunk-J4XLLB7C.cjs} +4 -4
- package/bin/{chunk-B7J7QYQE.cjs.map → chunk-J4XLLB7C.cjs.map} +1 -1
- package/bin/{chunk-5ATBB4TN.cjs → chunk-MEXEBGMK.cjs} +4 -4
- package/bin/{chunk-5ATBB4TN.cjs.map → chunk-MEXEBGMK.cjs.map} +1 -1
- package/bin/{chunk-KW4FEIVT.js → chunk-PNNIWPDQ.js} +3 -3
- package/bin/{chunk-KW4FEIVT.js.map → chunk-PNNIWPDQ.js.map} +1 -1
- package/bin/{chunk-RENIENIJ.js → chunk-RTCFD7IE.js} +3 -3
- package/bin/{chunk-RENIENIJ.js.map → chunk-RTCFD7IE.js.map} +1 -1
- package/bin/{chunk-JTWC65QP.cjs → chunk-SGNASXPC.cjs} +5 -5
- package/bin/{chunk-JTWC65QP.cjs.map → chunk-SGNASXPC.cjs.map} +1 -1
- package/bin/{chunk-5IKION45.cjs → chunk-UDTVAYLD.cjs} +4 -4
- package/bin/{chunk-5IKION45.cjs.map → chunk-UDTVAYLD.cjs.map} +1 -1
- package/bin/{chunk-LTBMRLM6.js → chunk-VWM473G5.js} +3 -3
- package/bin/{chunk-LTBMRLM6.js.map → chunk-VWM473G5.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/readme/templates/README.footer.md +3 -3
- package/dist/readme/templates/README.header.md +3 -3
- package/package.json +7 -7
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 chunkUDTVAYLD_cjs = require('./chunk-UDTVAYLD.cjs');
|
|
5
|
+
var chunk4FQ44OAT_cjs = require('./chunk-4FQ44OAT.cjs');
|
|
6
|
+
var chunk6G73LSPC_cjs = require('./chunk-6G73LSPC.cjs');
|
|
7
|
+
var chunkMEXEBGMK_cjs = require('./chunk-MEXEBGMK.cjs');
|
|
8
|
+
require('./chunk-SGNASXPC.cjs');
|
|
9
|
+
var chunkDYZLP2KW_cjs = require('./chunk-DYZLP2KW.cjs');
|
|
10
10
|
require('./chunk-YHZNDNCW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkJ4XLLB7C_cjs = require('./chunk-J4XLLB7C.cjs');
|
|
12
12
|
var chunkMTAYUS7E_cjs = require('./chunk-MTAYUS7E.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkEOUDKHXD_cjs = require('./chunk-EOUDKHXD.cjs');
|
|
14
14
|
var TOML = require('@ltd/j-toml');
|
|
15
15
|
var commander = require('commander');
|
|
16
16
|
require('@inquirer/checkbox');
|
|
@@ -430,9 +430,9 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
430
430
|
|
|
431
431
|
// ../conventional-changelog/src/index.ts
|
|
432
432
|
async function createPreset(variant = "monorepo") {
|
|
433
|
-
const workspaceConfig = await
|
|
433
|
+
const workspaceConfig = await chunkEOUDKHXD_cjs.getWorkspaceConfig();
|
|
434
434
|
if (variant === "minimal") {
|
|
435
|
-
return
|
|
435
|
+
return chunkEOUDKHXD_cjs.defu(
|
|
436
436
|
await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
|
|
437
437
|
{
|
|
438
438
|
...COMMIT_CONFIGS.minimal,
|
|
@@ -446,7 +446,7 @@ async function createPreset(variant = "monorepo") {
|
|
|
446
446
|
);
|
|
447
447
|
}
|
|
448
448
|
const nxScopes = await getNxScopes({ config: workspaceConfig });
|
|
449
|
-
return
|
|
449
|
+
return chunkEOUDKHXD_cjs.defu(
|
|
450
450
|
await createBasePreset__default.default({
|
|
451
451
|
...COMMIT_CONFIGS.monorepo.changelogs.props,
|
|
452
452
|
scope: nxScopes
|
|
@@ -1010,7 +1010,7 @@ async function lint(message, config5) {
|
|
|
1010
1010
|
// src/commitlint/run.ts
|
|
1011
1011
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
1012
1012
|
async function runCommitLint(workspaceConfig, options) {
|
|
1013
|
-
|
|
1013
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
1014
1014
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
1015
1015
|
workspaceConfig
|
|
1016
1016
|
);
|
|
@@ -1018,7 +1018,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1018
1018
|
if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
|
|
1019
1019
|
commitMessage = options.message;
|
|
1020
1020
|
} else {
|
|
1021
|
-
const commitFile =
|
|
1021
|
+
const commitFile = chunkEOUDKHXD_cjs.joinPaths(
|
|
1022
1022
|
workspaceConfig.workspaceRoot,
|
|
1023
1023
|
options.file || options.message || COMMIT_EDITMSG_PATH
|
|
1024
1024
|
);
|
|
@@ -1035,17 +1035,17 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1035
1035
|
if (upstreamRemote) {
|
|
1036
1036
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
1037
1037
|
if (!upstreamRemoteIdentifier) {
|
|
1038
|
-
|
|
1038
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
1039
1039
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
|
|
1040
1040
|
workspaceConfig
|
|
1041
1041
|
);
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1044
|
+
chunkEOUDKHXD_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
1045
1045
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
1046
1046
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
1047
1047
|
} else {
|
|
1048
|
-
|
|
1048
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
1049
1049
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
|
|
1050
1050
|
workspaceConfig
|
|
1051
1051
|
);
|
|
@@ -1053,7 +1053,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
1055
1055
|
if (!commitMessage) {
|
|
1056
|
-
|
|
1056
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
1057
1057
|
"No commits found. Skipping commit message validation.",
|
|
1058
1058
|
workspaceConfig
|
|
1059
1059
|
);
|
|
@@ -1063,7 +1063,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1063
1063
|
const preset = await createPreset(workspaceConfig.variant);
|
|
1064
1064
|
const report = await lint(commitMessage, preset);
|
|
1065
1065
|
if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1066
|
-
|
|
1066
|
+
chunkEOUDKHXD_cjs.writeSuccess(
|
|
1067
1067
|
`Commit was processing completed successfully!`,
|
|
1068
1068
|
workspaceConfig
|
|
1069
1069
|
);
|
|
@@ -1275,7 +1275,7 @@ async function createState(workspaceConfig, configPath) {
|
|
|
1275
1275
|
const project = projectConfigurations.projects[scope];
|
|
1276
1276
|
if (project) {
|
|
1277
1277
|
let description = `${project.name} - ${project.root}`;
|
|
1278
|
-
const packageJsonPath =
|
|
1278
|
+
const packageJsonPath = chunkEOUDKHXD_cjs.joinPaths(project.root, "package.json");
|
|
1279
1279
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1280
1280
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1281
1281
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1349,19 +1349,19 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
|
|
|
1349
1349
|
|
|
1350
1350
|
// src/commit/run.ts
|
|
1351
1351
|
async function runCommit(commitizenFile, dryRun = false) {
|
|
1352
|
-
const workspaceConfig = await
|
|
1352
|
+
const workspaceConfig = await chunkEOUDKHXD_cjs.getWorkspaceConfig();
|
|
1353
1353
|
const state = await createState(workspaceConfig);
|
|
1354
1354
|
if (dryRun) {
|
|
1355
|
-
|
|
1355
|
+
chunkEOUDKHXD_cjs.writeInfo("Running in dry mode.", workspaceConfig);
|
|
1356
1356
|
}
|
|
1357
1357
|
console.log(
|
|
1358
1358
|
chalk2__default.default.bold.hex("#4b585b")("----------------------------------------") + "\n" + chalk2__default.default.bold.hex("#FFFFFF")(
|
|
1359
|
-
` ${
|
|
1359
|
+
` ${chunkEOUDKHXD_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit`
|
|
1360
1360
|
) + "\n" + chalk2__default.default.hex("#9ca8ab")("Please provide the requested details below...") + "\n"
|
|
1361
1361
|
);
|
|
1362
1362
|
state.answers = await askQuestions(state);
|
|
1363
1363
|
const message = formatCommitMessage(state, workspaceConfig);
|
|
1364
|
-
const commitMsgFile =
|
|
1364
|
+
const commitMsgFile = chunkEOUDKHXD_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1365
1365
|
console.log(
|
|
1366
1366
|
chalk2__default.default.bold.hex("#4b585b")("----------------------------------------") + `
|
|
1367
1367
|
|
|
@@ -1378,11 +1378,11 @@ ${chalk2__default.default.bold.hex("#FFFFFF")("Git-Commit File")}${chalk2__defau
|
|
|
1378
1378
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1379
1379
|
const command = shellescape__default.default(commandItems);
|
|
1380
1380
|
if (dryRun) {
|
|
1381
|
-
|
|
1381
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
1382
1382
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1383
1383
|
workspaceConfig
|
|
1384
1384
|
);
|
|
1385
|
-
|
|
1385
|
+
chunkEOUDKHXD_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1386
1386
|
} else {
|
|
1387
1387
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1388
1388
|
chunkMTAYUS7E_cjs.run(workspaceConfig, command);
|
|
@@ -2043,7 +2043,7 @@ var runReadme = async ({
|
|
|
2043
2043
|
exitOnError: true
|
|
2044
2044
|
});
|
|
2045
2045
|
const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
2046
|
-
const workspaceRoot =
|
|
2046
|
+
const workspaceRoot = chunkEOUDKHXD_cjs.findWorkspaceRootSafe(process.cwd());
|
|
2047
2047
|
if (!workspaceRoot) {
|
|
2048
2048
|
throw new Error(
|
|
2049
2049
|
"Unable to find the workspace root. Please ensure you are running this command from within a workspace."
|
|
@@ -2460,7 +2460,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2460
2460
|
const header = await prettier.format(
|
|
2461
2461
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkEOUDKHXD_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2464
2464
|
|
|
2465
2465
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2466
2466
|
|
|
@@ -2636,12 +2636,12 @@ async function generateChangelogForProjects({
|
|
|
2636
2636
|
projectChangelogs
|
|
2637
2637
|
)) {
|
|
2638
2638
|
if (!projectGraph.nodes[projectName]?.data.root) {
|
|
2639
|
-
|
|
2639
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
2640
2640
|
`A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
|
|
2641
2641
|
workspaceConfig
|
|
2642
2642
|
);
|
|
2643
2643
|
} else if (projectChangelog.contents) {
|
|
2644
|
-
const filePath =
|
|
2644
|
+
const filePath = chunkEOUDKHXD_cjs.joinPaths(
|
|
2645
2645
|
projectGraph.nodes[projectName].data.root,
|
|
2646
2646
|
"CHANGELOG.md"
|
|
2647
2647
|
);
|
|
@@ -2649,7 +2649,7 @@ async function generateChangelogForProjects({
|
|
|
2649
2649
|
if (fs$1.existsSync(filePath)) {
|
|
2650
2650
|
currentContent = await fs.readFile(filePath, "utf8");
|
|
2651
2651
|
}
|
|
2652
|
-
|
|
2652
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2653
2653
|
`\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
|
|
2654
2654
|
workspaceConfig
|
|
2655
2655
|
);
|
|
@@ -2867,12 +2867,12 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2867
2867
|
if (!matchingTags.length) {
|
|
2868
2868
|
return null;
|
|
2869
2869
|
}
|
|
2870
|
-
|
|
2870
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2871
2871
|
`Found ${matchingTags.length} matching tags out of ${tags.length} total tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2872
2872
|
workspaceConfig
|
|
2873
2873
|
);
|
|
2874
2874
|
if (!strictPreid) {
|
|
2875
|
-
|
|
2875
|
+
chunkEOUDKHXD_cjs.writeTrace(
|
|
2876
2876
|
`Not using strict preid, will use the greatest matching tag of project "${additionalInterpolationData.projectName}"`,
|
|
2877
2877
|
workspaceConfig
|
|
2878
2878
|
);
|
|
@@ -2884,7 +2884,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2884
2884
|
const [, version] = matches;
|
|
2885
2885
|
return version && !shared.isPrerelease(version);
|
|
2886
2886
|
});
|
|
2887
|
-
|
|
2887
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2888
2888
|
`Found ${stableReleaseTags.length} stable tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2889
2889
|
workspaceConfig
|
|
2890
2890
|
);
|
|
@@ -2895,7 +2895,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2895
2895
|
const version = match.find((part) => part.match(SEMVER_REGEX));
|
|
2896
2896
|
return version && version.includes(`-${preid}.`);
|
|
2897
2897
|
});
|
|
2898
|
-
|
|
2898
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2899
2899
|
`Found ${preidReleaseTags.length} preid tags for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2900
2900
|
workspaceConfig
|
|
2901
2901
|
);
|
|
@@ -2904,12 +2904,12 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2904
2904
|
const stableResult = compareTags(stableReleaseTags, tagRegexp, options);
|
|
2905
2905
|
const preidBaseVersion = semver.coerce(preidResult.extractedVersion)?.version;
|
|
2906
2906
|
const stableVersion = semver.coerce(stableResult.extractedVersion)?.version;
|
|
2907
|
-
|
|
2907
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2908
2908
|
`Extracted preid version: ${preidBaseVersion} and stable version: ${stableVersion} for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2909
2909
|
workspaceConfig
|
|
2910
2910
|
);
|
|
2911
2911
|
if (preidBaseVersion && stableVersion && semver.gte(stableVersion, preidBaseVersion)) {
|
|
2912
|
-
|
|
2912
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2913
2913
|
`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})`,
|
|
2914
2914
|
workspaceConfig
|
|
2915
2915
|
);
|
|
@@ -2918,7 +2918,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2918
2918
|
return preidResult;
|
|
2919
2919
|
}
|
|
2920
2920
|
if (preidReleaseTags.length > 0) {
|
|
2921
|
-
|
|
2921
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2922
2922
|
`Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2923
2923
|
workspaceConfig
|
|
2924
2924
|
);
|
|
@@ -2926,7 +2926,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
|
|
|
2926
2926
|
}
|
|
2927
2927
|
}
|
|
2928
2928
|
if (stableReleaseTags.length > 0) {
|
|
2929
|
-
|
|
2929
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
2930
2930
|
`Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
|
|
2931
2931
|
workspaceConfig
|
|
2932
2932
|
);
|
|
@@ -2980,7 +2980,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
|
|
|
2980
2980
|
}
|
|
2981
2981
|
async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
|
|
2982
2982
|
if (!this.workspaceConfig) {
|
|
2983
|
-
this.workspaceConfig = await
|
|
2983
|
+
this.workspaceConfig = await chunkEOUDKHXD_cjs.getWorkspaceConfig();
|
|
2984
2984
|
}
|
|
2985
2985
|
const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
|
|
2986
2986
|
return super.createOrUpdateRelease(
|
|
@@ -3173,7 +3173,7 @@ async function format3(path, data) {
|
|
|
3173
3173
|
if (resolvedConfig) {
|
|
3174
3174
|
code = await prettier.format(
|
|
3175
3175
|
data,
|
|
3176
|
-
|
|
3176
|
+
chunkEOUDKHXD_cjs.defu(
|
|
3177
3177
|
{
|
|
3178
3178
|
absolutePath: path,
|
|
3179
3179
|
...resolvedConfig
|
|
@@ -3229,7 +3229,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
3229
3229
|
}
|
|
3230
3230
|
async render() {
|
|
3231
3231
|
if (!this.workspaceConfig) {
|
|
3232
|
-
this.workspaceConfig = await
|
|
3232
|
+
this.workspaceConfig = await chunkEOUDKHXD_cjs.getWorkspaceConfig();
|
|
3233
3233
|
}
|
|
3234
3234
|
return super.render();
|
|
3235
3235
|
}
|
|
@@ -3536,7 +3536,7 @@ var DEFAULT_RUST_RELEASE_GROUP_CONFIG = {
|
|
|
3536
3536
|
var DEFAULT_RELEASE_CONFIG = {
|
|
3537
3537
|
conventionalCommits: DEFAULT_CONVENTIONAL_COMMITS_CONFIG2,
|
|
3538
3538
|
groups: {
|
|
3539
|
-
packages:
|
|
3539
|
+
packages: chunkEOUDKHXD_cjs.defu(
|
|
3540
3540
|
{
|
|
3541
3541
|
projects: ["packages/*"]
|
|
3542
3542
|
},
|
|
@@ -3544,7 +3544,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3544
3544
|
DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3545
3545
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
3546
3546
|
),
|
|
3547
|
-
crates:
|
|
3547
|
+
crates: chunkEOUDKHXD_cjs.defu(
|
|
3548
3548
|
{
|
|
3549
3549
|
projects: ["crates/*"]
|
|
3550
3550
|
},
|
|
@@ -3567,7 +3567,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
};
|
|
3569
3569
|
function mergeReleaseGroupConfig(config5, defaultConfig, workspaceConfig) {
|
|
3570
|
-
return
|
|
3570
|
+
return chunkEOUDKHXD_cjs.defu(
|
|
3571
3571
|
{
|
|
3572
3572
|
...omit(defaultConfig, ["changelog", "version"]),
|
|
3573
3573
|
...config5
|
|
@@ -3598,7 +3598,7 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3598
3598
|
projectGraph.nodes
|
|
3599
3599
|
);
|
|
3600
3600
|
if (!matchingProjects.length) {
|
|
3601
|
-
|
|
3601
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
3602
3602
|
`Release group "${name}" does not have any matching projects.`
|
|
3603
3603
|
);
|
|
3604
3604
|
return void 0;
|
|
@@ -3618,13 +3618,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3618
3618
|
ProjectTagConstants.Language.TAG_ID,
|
|
3619
3619
|
ProjectTagConstants.Language.TYPESCRIPT
|
|
3620
3620
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3621
|
-
|
|
3621
|
+
chunkEOUDKHXD_cjs.joinPaths(
|
|
3622
3622
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3623
3623
|
"package.json"
|
|
3624
3624
|
)
|
|
3625
3625
|
))
|
|
3626
3626
|
)) {
|
|
3627
|
-
defaultConfig =
|
|
3627
|
+
defaultConfig = chunkEOUDKHXD_cjs.defu(
|
|
3628
3628
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3629
3629
|
DEFAULT_JS_RELEASE_GROUP_CONFIG,
|
|
3630
3630
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3635,13 +3635,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3635
3635
|
ProjectTagConstants.Language.TAG_ID,
|
|
3636
3636
|
ProjectTagConstants.Language.RUST
|
|
3637
3637
|
) || projectGraph.nodes[project]?.data.metadata?.root && fs$1.existsSync(
|
|
3638
|
-
|
|
3638
|
+
chunkEOUDKHXD_cjs.joinPaths(
|
|
3639
3639
|
projectGraph.nodes[project]?.data.metadata?.root,
|
|
3640
3640
|
"Cargo.toml"
|
|
3641
3641
|
)
|
|
3642
3642
|
))
|
|
3643
3643
|
)) {
|
|
3644
|
-
defaultConfig =
|
|
3644
|
+
defaultConfig = chunkEOUDKHXD_cjs.defu(
|
|
3645
3645
|
group.projectsRelationship === "fixed" ? DEFAULT_FIXED_RELEASE_GROUP_CONFIG : DEFAULT_INDEPENDENT_RELEASE_GROUP_CONFIG,
|
|
3646
3646
|
DEFAULT_RUST_RELEASE_GROUP_CONFIG,
|
|
3647
3647
|
DEFAULT_RELEASE_GROUP_CONFIG
|
|
@@ -3655,13 +3655,13 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3655
3655
|
config5.projects = matchingProjects;
|
|
3656
3656
|
if (workspaceConfig?.workspaceRoot) {
|
|
3657
3657
|
if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
|
|
3658
|
-
config5.changelog.renderer =
|
|
3658
|
+
config5.changelog.renderer = chunkEOUDKHXD_cjs.joinPaths(
|
|
3659
3659
|
workspaceConfig.workspaceRoot,
|
|
3660
3660
|
config5.changelog.renderer
|
|
3661
3661
|
);
|
|
3662
3662
|
}
|
|
3663
3663
|
if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
|
|
3664
|
-
config5.version.versionActions =
|
|
3664
|
+
config5.version.versionActions = chunkEOUDKHXD_cjs.joinPaths(
|
|
3665
3665
|
workspaceConfig.workspaceRoot,
|
|
3666
3666
|
config5.version?.versionActions
|
|
3667
3667
|
);
|
|
@@ -3673,10 +3673,10 @@ function getReleaseGroupConfig(projectGraph, releaseConfig, workspaceConfig) {
|
|
|
3673
3673
|
}
|
|
3674
3674
|
function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNxJsonConfig = false) {
|
|
3675
3675
|
let nxJson$1 = {};
|
|
3676
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(
|
|
3676
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunkEOUDKHXD_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3677
3677
|
nxJson$1 = nxJson.readNxJson();
|
|
3678
3678
|
}
|
|
3679
|
-
const baseConfig =
|
|
3679
|
+
const baseConfig = chunkEOUDKHXD_cjs.defu(
|
|
3680
3680
|
{
|
|
3681
3681
|
changelog: {
|
|
3682
3682
|
renderOptions: {
|
|
@@ -3693,7 +3693,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3693
3693
|
if (releaseConfig?.groups && Object.keys(releaseConfig.groups).length > 0) {
|
|
3694
3694
|
groups = releaseConfig.groups;
|
|
3695
3695
|
if (nxJson$1.release?.groups && Object.keys(nxJson$1.release.groups).length > 0) {
|
|
3696
|
-
groups =
|
|
3696
|
+
groups = chunkEOUDKHXD_cjs.defu(
|
|
3697
3697
|
groups,
|
|
3698
3698
|
nxJson$1.release.groups
|
|
3699
3699
|
);
|
|
@@ -3713,7 +3713,7 @@ function getReleaseConfig(projectGraph, releaseConfig, workspaceConfig, ignoreNx
|
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
3715
|
function formatConfigLog(config5) {
|
|
3716
|
-
return
|
|
3716
|
+
return chunkEOUDKHXD_cjs.formatLogMessage(config5, {
|
|
3717
3717
|
sort: true,
|
|
3718
3718
|
skip: ["workspaceConfig", "conventionalCommits"]
|
|
3719
3719
|
});
|
|
@@ -4126,7 +4126,7 @@ var ReleaseGraph = class _ReleaseGraph {
|
|
|
4126
4126
|
this.resolveRepositoryTags.bind(this),
|
|
4127
4127
|
options
|
|
4128
4128
|
);
|
|
4129
|
-
|
|
4129
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
4130
4130
|
`Group release tag pattern: ${releaseTagPattern}
|
|
4131
4131
|
Project release tag pattern: ${projectReleaseTagPattern}
|
|
4132
4132
|
Group release tag: ${groupReleaseTag?.tag}
|
|
@@ -4150,7 +4150,7 @@ Project release tag: ${projectReleaseTag?.tag}`,
|
|
|
4150
4150
|
options
|
|
4151
4151
|
);
|
|
4152
4152
|
}
|
|
4153
|
-
|
|
4153
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
4154
4154
|
`Resolved latest matching git tag for "${projectName}": ${latestMatchingGitTag?.tag} (version: ${latestMatchingGitTag?.extractedVersion})`,
|
|
4155
4155
|
this.workspaceConfig
|
|
4156
4156
|
);
|
|
@@ -4420,7 +4420,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4420
4420
|
constructor(tree, workspaceConfig, projectGraph, nxReleaseConfig, releaseGraph, versionOptions) {
|
|
4421
4421
|
super(tree, projectGraph, nxReleaseConfig, releaseGraph, {
|
|
4422
4422
|
dryRun: !!versionOptions.dryRun,
|
|
4423
|
-
verbose: versionOptions.verbose ||
|
|
4423
|
+
verbose: versionOptions.verbose || chunkEOUDKHXD_cjs.isVerbose(workspaceConfig.logLevel),
|
|
4424
4424
|
firstRelease: !!versionOptions.firstRelease,
|
|
4425
4425
|
preid: versionOptions.preid ?? workspaceConfig.preid ?? "",
|
|
4426
4426
|
userGivenSpecifier: versionOptions.specifier,
|
|
@@ -4518,7 +4518,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4518
4518
|
deletedFiles: deletedFilesForVersionActions
|
|
4519
4519
|
} = await afterAllProjectsVersioned(this.#tree.root, {
|
|
4520
4520
|
dryRun: this.versionOptions.dryRun,
|
|
4521
|
-
verbose: this.versionOptions.verbose ||
|
|
4521
|
+
verbose: this.versionOptions.verbose || chunkEOUDKHXD_cjs.isVerbose(this.workspaceConfig.logLevel),
|
|
4522
4522
|
rootVersionActionsOptions
|
|
4523
4523
|
});
|
|
4524
4524
|
for (const file of changedFilesForVersionActions) {
|
|
@@ -4551,7 +4551,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4551
4551
|
let handleDockerVersion;
|
|
4552
4552
|
try {
|
|
4553
4553
|
const dockerVersionUtilsPath = "@nx/docker/release/version-utils";
|
|
4554
|
-
const { handleDockerVersion: _handleDockerVersion } =
|
|
4554
|
+
const { handleDockerVersion: _handleDockerVersion } = chunkEOUDKHXD_cjs.__require(dockerVersionUtilsPath);
|
|
4555
4555
|
handleDockerVersion = _handleDockerVersion;
|
|
4556
4556
|
} catch (e) {
|
|
4557
4557
|
console.error(
|
|
@@ -4639,12 +4639,12 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4639
4639
|
for (const project of releaseGroup.projects) {
|
|
4640
4640
|
const currentVersion = this.#getCurrentCachedVersionForProject(project);
|
|
4641
4641
|
if (!currentVersion) {
|
|
4642
|
-
|
|
4642
|
+
chunkEOUDKHXD_cjs.writeTrace(
|
|
4643
4643
|
`No current version found for project ${project} in release group ${releaseGroup.name}, skipping version comparison.`,
|
|
4644
4644
|
this.workspaceConfig
|
|
4645
4645
|
);
|
|
4646
4646
|
} else {
|
|
4647
|
-
|
|
4647
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
4648
4648
|
`Comparing versions for fixed group ${releaseGroup.name}: Current Greatest Version: ${fixedGroup.currentVersion || "none"}, Current Project Version: ${currentVersion} (project: ${project})`,
|
|
4649
4649
|
this.workspaceConfig
|
|
4650
4650
|
);
|
|
@@ -4670,7 +4670,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
4670
4670
|
reasonData: newVersionInputReasonData
|
|
4671
4671
|
};
|
|
4672
4672
|
}
|
|
4673
|
-
|
|
4673
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
4674
4674
|
`Fixed release group ${releaseGroup.name} updated: Current Version: ${fixedGroup.currentVersion || "none"}, New Version: ${fixedGroup.newVersion?.input || "none"} (first project: ${project})`,
|
|
4675
4675
|
this.workspaceConfig
|
|
4676
4676
|
);
|
|
@@ -5123,7 +5123,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
|
|
|
5123
5123
|
var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
|
|
5124
5124
|
static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
|
|
5125
5125
|
if (!workspaceConfig) {
|
|
5126
|
-
workspaceConfig = await
|
|
5126
|
+
workspaceConfig = await chunkEOUDKHXD_cjs.getWorkspaceConfig();
|
|
5127
5127
|
}
|
|
5128
5128
|
const projectGraph = await devkit.createProjectGraphAsync({
|
|
5129
5129
|
exitOnError: true,
|
|
@@ -5134,7 +5134,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
5134
5134
|
"Failed to load the project graph. Please run `nx reset`, then run the `storm-git commit` command again."
|
|
5135
5135
|
);
|
|
5136
5136
|
}
|
|
5137
|
-
|
|
5137
|
+
chunkEOUDKHXD_cjs.writeTrace(
|
|
5138
5138
|
`Provided release configuration:
|
|
5139
5139
|
${formatConfigLog(releaseConfig)}`,
|
|
5140
5140
|
workspaceConfig
|
|
@@ -5145,7 +5145,7 @@ ${formatConfigLog(releaseConfig)}`,
|
|
|
5145
5145
|
workspaceConfig,
|
|
5146
5146
|
ignoreNxJsonConfig
|
|
5147
5147
|
);
|
|
5148
|
-
|
|
5148
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5149
5149
|
`Resolved release configuration:
|
|
5150
5150
|
${formatConfigLog(config5)}`,
|
|
5151
5151
|
workspaceConfig
|
|
@@ -5182,11 +5182,11 @@ ${formatConfigLog(config5)}`,
|
|
|
5182
5182
|
*/
|
|
5183
5183
|
constructor(projectGraph, releaseConfig, workspaceConfig) {
|
|
5184
5184
|
super(releaseConfig, true);
|
|
5185
|
-
|
|
5185
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5186
5186
|
"Executing release with the following configuration",
|
|
5187
5187
|
workspaceConfig
|
|
5188
5188
|
);
|
|
5189
|
-
|
|
5189
|
+
chunkEOUDKHXD_cjs.writeDebug(releaseConfig, workspaceConfig);
|
|
5190
5190
|
this.projectGraph = projectGraph;
|
|
5191
5191
|
this.releaseConfig = releaseConfig;
|
|
5192
5192
|
this.workspaceConfig = workspaceConfig;
|
|
@@ -5214,7 +5214,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5214
5214
|
groups: options.groups
|
|
5215
5215
|
},
|
|
5216
5216
|
firstRelease: !!options.firstRelease,
|
|
5217
|
-
verbose:
|
|
5217
|
+
verbose: chunkEOUDKHXD_cjs.isVerbose(this.workspaceConfig.logLevel)
|
|
5218
5218
|
},
|
|
5219
5219
|
this.workspaceConfig
|
|
5220
5220
|
);
|
|
@@ -5344,7 +5344,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5344
5344
|
})),
|
|
5345
5345
|
this.releaseConfig.conventionalCommits
|
|
5346
5346
|
);
|
|
5347
|
-
|
|
5347
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5348
5348
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5349
5349
|
this.workspaceConfig
|
|
5350
5350
|
);
|
|
@@ -5419,7 +5419,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5419
5419
|
})),
|
|
5420
5420
|
this.releaseConfig.conventionalCommits
|
|
5421
5421
|
);
|
|
5422
|
-
|
|
5422
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5423
5423
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
5424
5424
|
this.workspaceConfig
|
|
5425
5425
|
);
|
|
@@ -5448,7 +5448,7 @@ ${formatConfigLog(config5)}`,
|
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
5450
|
}
|
|
5451
|
-
|
|
5451
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5452
5452
|
`Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
|
|
5453
5453
|
${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
5454
5454
|
`,
|
|
@@ -5477,7 +5477,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5477
5477
|
);
|
|
5478
5478
|
const changes = this.tree.listChanges();
|
|
5479
5479
|
if (!changes.length) {
|
|
5480
|
-
|
|
5480
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
5481
5481
|
"No changes were detected for any changelog files, so no changelog entries will be generated.",
|
|
5482
5482
|
this.workspaceConfig
|
|
5483
5483
|
);
|
|
@@ -5499,7 +5499,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5499
5499
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.changelog?.git?.commitArgs
|
|
5500
5500
|
});
|
|
5501
5501
|
latestCommit = await git.getCommitHash("HEAD");
|
|
5502
|
-
|
|
5502
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5503
5503
|
`Creating git tags: ${gitTagValues.join(", ")}`,
|
|
5504
5504
|
this.workspaceConfig
|
|
5505
5505
|
);
|
|
@@ -5512,7 +5512,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5512
5512
|
verbose: options.verbose
|
|
5513
5513
|
});
|
|
5514
5514
|
}
|
|
5515
|
-
|
|
5515
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5516
5516
|
`Pushing to git remote "${options.gitRemote ?? "origin"}"`,
|
|
5517
5517
|
this.workspaceConfig
|
|
5518
5518
|
);
|
|
@@ -5528,7 +5528,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5528
5528
|
return;
|
|
5529
5529
|
};
|
|
5530
5530
|
releaseVersion = async (options) => {
|
|
5531
|
-
const verbose = options.verbose ||
|
|
5531
|
+
const verbose = options.verbose || chunkEOUDKHXD_cjs.isVerbose(this.workspaceConfig.logLevel);
|
|
5532
5532
|
this.projectGraph = await devkit.createProjectGraphAsync({
|
|
5533
5533
|
exitOnError: true,
|
|
5534
5534
|
resetDaemonClient: true
|
|
@@ -5555,7 +5555,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5555
5555
|
this.workspaceConfig
|
|
5556
5556
|
);
|
|
5557
5557
|
if (releaseGraph.filterLog && process.env.NX_RELEASE_INTERNAL_SUPPRESS_FILTER_LOG !== "true") {
|
|
5558
|
-
|
|
5558
|
+
chunkEOUDKHXD_cjs.writeDebug(formatNxLog(releaseGraph.filterLog), this.workspaceConfig);
|
|
5559
5559
|
}
|
|
5560
5560
|
if (!options.specifier) {
|
|
5561
5561
|
const rawVersionPlans = await versionPlans.readRawVersionPlans();
|
|
@@ -5574,7 +5574,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5574
5574
|
}
|
|
5575
5575
|
} else {
|
|
5576
5576
|
if (verbose && releaseGraph.releaseGroups.some((g) => !!g.versionPlans)) {
|
|
5577
|
-
|
|
5577
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5578
5578
|
`Skipping version plan discovery as a specifier was provided`,
|
|
5579
5579
|
this.workspaceConfig
|
|
5580
5580
|
);
|
|
@@ -5584,7 +5584,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5584
5584
|
options.deleteVersionPlans = false;
|
|
5585
5585
|
}
|
|
5586
5586
|
if (this.releaseConfig.version?.preVersionCommand) {
|
|
5587
|
-
|
|
5587
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5588
5588
|
"Executing the following pre-version command: \n" + this.releaseConfig.version.preVersionCommand,
|
|
5589
5589
|
this.workspaceConfig
|
|
5590
5590
|
);
|
|
@@ -5620,7 +5620,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5620
5620
|
continue;
|
|
5621
5621
|
}
|
|
5622
5622
|
if (releaseGroup.version?.groupPreVersionCommand) {
|
|
5623
|
-
|
|
5623
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5624
5624
|
`Executing the ${releaseGroup.name} release group's pre-version command:
|
|
5625
5625
|
` + releaseGroup.version?.groupPreVersionCommand,
|
|
5626
5626
|
this.workspaceConfig
|
|
@@ -5680,7 +5680,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5680
5680
|
changed.forEach((f) => additionalChangedFiles.add(f));
|
|
5681
5681
|
deleted.forEach((f) => additionalDeletedFiles.add(f));
|
|
5682
5682
|
if (this.releaseConfig.docker && typeof this.releaseConfig.docker === "object" && this.releaseConfig.docker?.preVersionCommand) {
|
|
5683
|
-
|
|
5683
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5684
5684
|
`Executing the docker pre-version command:
|
|
5685
5685
|
` + this.releaseConfig.docker.preVersionCommand,
|
|
5686
5686
|
this.workspaceConfig
|
|
@@ -5717,7 +5717,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5717
5717
|
continue;
|
|
5718
5718
|
}
|
|
5719
5719
|
if (releaseGroup.docker?.groupPreVersionCommand) {
|
|
5720
|
-
|
|
5720
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5721
5721
|
`Executing the ${releaseGroup.name} release group's docker pre-version command:
|
|
5722
5722
|
` + releaseGroup.docker?.groupPreVersionCommand,
|
|
5723
5723
|
this.workspaceConfig
|
|
@@ -5748,7 +5748,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5748
5748
|
}
|
|
5749
5749
|
}
|
|
5750
5750
|
if (this.releaseConfig.docker || releaseGraph.releaseGroups.some((rg) => rg.docker)) {
|
|
5751
|
-
|
|
5751
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
5752
5752
|
formatNxLog({
|
|
5753
5753
|
title: "Warning",
|
|
5754
5754
|
bodyLines: [
|
|
@@ -5805,7 +5805,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5805
5805
|
gitCommitArgs: options.gitCommitArgs || this.releaseConfig.version?.git?.commitArgs
|
|
5806
5806
|
});
|
|
5807
5807
|
} else if (options.stageChanges ?? this.releaseConfig.version?.git?.stageChanges) {
|
|
5808
|
-
|
|
5808
|
+
chunkEOUDKHXD_cjs.writeDebug(`Staging changed files with git`);
|
|
5809
5809
|
await git.gitAdd({
|
|
5810
5810
|
changedFiles,
|
|
5811
5811
|
deletedFiles,
|
|
@@ -5814,7 +5814,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5814
5814
|
});
|
|
5815
5815
|
}
|
|
5816
5816
|
if (options.gitTag ?? this.releaseConfig.version?.git?.tag) {
|
|
5817
|
-
|
|
5817
|
+
chunkEOUDKHXD_cjs.writeDebug(`Tagging commit with git`);
|
|
5818
5818
|
for (const tag of gitTagValues) {
|
|
5819
5819
|
await gitTag({
|
|
5820
5820
|
tag,
|
|
@@ -5826,7 +5826,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
5826
5826
|
}
|
|
5827
5827
|
}
|
|
5828
5828
|
if (options.gitPush ?? this.releaseConfig.version?.git?.push) {
|
|
5829
|
-
|
|
5829
|
+
chunkEOUDKHXD_cjs.writeDebug(`Pushing to git remote "${options.gitRemote ?? "origin"}"`);
|
|
5830
5830
|
await git.gitPush({
|
|
5831
5831
|
gitRemote: options.gitRemote,
|
|
5832
5832
|
dryRun: options.dryRun,
|
|
@@ -5857,7 +5857,7 @@ var runRelease = async (config5, {
|
|
|
5857
5857
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
5858
5858
|
}
|
|
5859
5859
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
5860
|
-
|
|
5860
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
5861
5861
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
5862
5862
|
config5
|
|
5863
5863
|
);
|
|
@@ -5874,23 +5874,23 @@ var runRelease = async (config5, {
|
|
|
5874
5874
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5875
5875
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
5876
5876
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
5877
|
-
|
|
5877
|
+
chunkEOUDKHXD_cjs.writeDebug("Creating Storm release client...", config5);
|
|
5878
5878
|
const releaseClient = await StormReleaseClient.create(
|
|
5879
5879
|
releaseConfig,
|
|
5880
5880
|
ignoreNxJsonConfig,
|
|
5881
5881
|
config5
|
|
5882
5882
|
);
|
|
5883
|
-
|
|
5883
|
+
chunkEOUDKHXD_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
5884
5884
|
const to = head || process.env.NX_HEAD;
|
|
5885
5885
|
const from = base || process.env.NX_BASE;
|
|
5886
|
-
|
|
5886
|
+
chunkEOUDKHXD_cjs.writeDebug(
|
|
5887
5887
|
`Using the following Git SHAs to determine the release content:
|
|
5888
5888
|
- From: ${from}
|
|
5889
5889
|
- To: ${to}
|
|
5890
5890
|
`,
|
|
5891
5891
|
config5
|
|
5892
5892
|
);
|
|
5893
|
-
|
|
5893
|
+
chunkEOUDKHXD_cjs.writeDebug("Determining the current release versions...", config5);
|
|
5894
5894
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
5895
5895
|
dryRun,
|
|
5896
5896
|
verbose: true,
|
|
@@ -5907,9 +5907,9 @@ var runRelease = async (config5, {
|
|
|
5907
5907
|
from,
|
|
5908
5908
|
releaseGraph
|
|
5909
5909
|
});
|
|
5910
|
-
|
|
5910
|
+
chunkEOUDKHXD_cjs.writeDebug("Tagging commit with git", config5);
|
|
5911
5911
|
if (skipPublish) {
|
|
5912
|
-
|
|
5912
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
5913
5913
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
5914
5914
|
config5
|
|
5915
5915
|
);
|
|
@@ -5918,7 +5918,7 @@ var runRelease = async (config5, {
|
|
|
5918
5918
|
(key) => projectsVersionData[key]?.newVersion
|
|
5919
5919
|
);
|
|
5920
5920
|
if (changedProjects.length > 0) {
|
|
5921
|
-
|
|
5921
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
5922
5922
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
5923
5923
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
5924
5924
|
`,
|
|
@@ -5942,10 +5942,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
5942
5942
|
);
|
|
5943
5943
|
}
|
|
5944
5944
|
} else {
|
|
5945
|
-
|
|
5945
|
+
chunkEOUDKHXD_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
5946
5946
|
}
|
|
5947
5947
|
}
|
|
5948
|
-
|
|
5948
|
+
chunkEOUDKHXD_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
5949
5949
|
};
|
|
5950
5950
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
5951
5951
|
let projectGraph;
|
|
@@ -5960,7 +5960,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5960
5960
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
5961
5961
|
const projectNode = projectGraph.nodes[node];
|
|
5962
5962
|
if (!projectNode?.data.root) {
|
|
5963
|
-
|
|
5963
|
+
chunkEOUDKHXD_cjs.writeWarning(
|
|
5964
5964
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
5965
5965
|
config5
|
|
5966
5966
|
);
|
|
@@ -5968,17 +5968,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5968
5968
|
}
|
|
5969
5969
|
const versionData = projectsVersionData[node];
|
|
5970
5970
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
5971
|
-
|
|
5971
|
+
chunkEOUDKHXD_cjs.writeTrace(
|
|
5972
5972
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
5973
5973
|
`,
|
|
5974
5974
|
config5
|
|
5975
5975
|
);
|
|
5976
|
-
const projectRoot =
|
|
5976
|
+
const projectRoot = chunkEOUDKHXD_cjs.joinPaths(
|
|
5977
5977
|
config5.workspaceRoot,
|
|
5978
5978
|
projectNode.data.root
|
|
5979
5979
|
);
|
|
5980
|
-
const packageJsonPath =
|
|
5981
|
-
const cargoTomlPath =
|
|
5980
|
+
const packageJsonPath = chunkEOUDKHXD_cjs.joinPaths(projectRoot, "package.json");
|
|
5981
|
+
const cargoTomlPath = chunkEOUDKHXD_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
5982
5982
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
5983
5983
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
5984
5984
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -5996,7 +5996,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
5996
5996
|
})
|
|
5997
5997
|
);
|
|
5998
5998
|
} else {
|
|
5999
|
-
|
|
5999
|
+
chunkEOUDKHXD_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
6000
6000
|
}
|
|
6001
6001
|
}
|
|
6002
6002
|
|
|
@@ -6004,8 +6004,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
6004
6004
|
var _config = {};
|
|
6005
6005
|
function createProgram(config5) {
|
|
6006
6006
|
_config = config5;
|
|
6007
|
-
|
|
6008
|
-
const root =
|
|
6007
|
+
chunkEOUDKHXD_cjs.writeInfo(`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
|
|
6008
|
+
const root = chunkEOUDKHXD_cjs.findWorkspaceRootSafe(process.cwd());
|
|
6009
6009
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
6010
6010
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
6011
6011
|
if (root) {
|
|
@@ -6052,12 +6052,12 @@ async function commitAction({
|
|
|
6052
6052
|
dryRun = false
|
|
6053
6053
|
}) {
|
|
6054
6054
|
try {
|
|
6055
|
-
|
|
6056
|
-
`${
|
|
6055
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6056
|
+
`${chunkEOUDKHXD_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
|
|
6057
6057
|
_config
|
|
6058
6058
|
);
|
|
6059
6059
|
await runCommit(config5, dryRun);
|
|
6060
|
-
|
|
6060
|
+
chunkEOUDKHXD_cjs.writeSuccess(
|
|
6061
6061
|
`\u2714 Storm Commit processing completed successfully!
|
|
6062
6062
|
|
|
6063
6063
|
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}
|
|
@@ -6065,7 +6065,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
6065
6065
|
_config
|
|
6066
6066
|
);
|
|
6067
6067
|
} catch (error) {
|
|
6068
|
-
|
|
6068
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6069
6069
|
`A fatal error occurred while running commit action:
|
|
6070
6070
|
|
|
6071
6071
|
${error.message}${error.stack ? `
|
|
@@ -6080,17 +6080,17 @@ Please fix any errors and try committing again.`,
|
|
|
6080
6080
|
}
|
|
6081
6081
|
async function readmeAction(options) {
|
|
6082
6082
|
try {
|
|
6083
|
-
|
|
6084
|
-
`${
|
|
6083
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6084
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
|
|
6085
6085
|
_config
|
|
6086
6086
|
);
|
|
6087
6087
|
await runReadme(options);
|
|
6088
|
-
|
|
6088
|
+
chunkEOUDKHXD_cjs.writeSuccess(
|
|
6089
6089
|
"\u2714 Formatting of the workspace's README.md files is complete\n",
|
|
6090
6090
|
_config
|
|
6091
6091
|
);
|
|
6092
6092
|
} catch (error) {
|
|
6093
|
-
|
|
6093
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6094
6094
|
`A fatal error occurred while running README format action:
|
|
6095
6095
|
|
|
6096
6096
|
${error.message}`
|
|
@@ -6105,8 +6105,8 @@ async function releaseAction({
|
|
|
6105
6105
|
dryRun
|
|
6106
6106
|
}) {
|
|
6107
6107
|
try {
|
|
6108
|
-
|
|
6109
|
-
`${
|
|
6108
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6109
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
|
|
6110
6110
|
_config
|
|
6111
6111
|
);
|
|
6112
6112
|
await runRelease(_config, {
|
|
@@ -6115,9 +6115,9 @@ async function releaseAction({
|
|
|
6115
6115
|
base,
|
|
6116
6116
|
head
|
|
6117
6117
|
});
|
|
6118
|
-
|
|
6118
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Release completed successfully!\n", _config);
|
|
6119
6119
|
} catch (error) {
|
|
6120
|
-
|
|
6120
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6121
6121
|
`A fatal error occurred while running release action:
|
|
6122
6122
|
|
|
6123
6123
|
${error.message} ${error.stack ? `
|
|
@@ -6131,17 +6131,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
6131
6131
|
}
|
|
6132
6132
|
async function commitLintAction(options) {
|
|
6133
6133
|
try {
|
|
6134
|
-
|
|
6135
|
-
`${
|
|
6134
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6135
|
+
`${chunkEOUDKHXD_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.`,
|
|
6136
6136
|
_config
|
|
6137
6137
|
);
|
|
6138
6138
|
await runCommitLint(_config, options);
|
|
6139
|
-
|
|
6139
|
+
chunkEOUDKHXD_cjs.writeSuccess(
|
|
6140
6140
|
"\u2714 Linting the commit messages completed successfully!\n",
|
|
6141
6141
|
_config
|
|
6142
6142
|
);
|
|
6143
6143
|
} catch (error) {
|
|
6144
|
-
|
|
6144
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6145
6145
|
`A fatal error occurred while linting the commit messages:
|
|
6146
6146
|
|
|
6147
6147
|
${error.message}`,
|
|
@@ -6152,14 +6152,14 @@ ${error.message}`,
|
|
|
6152
6152
|
}
|
|
6153
6153
|
async function postCheckoutAction({ files }) {
|
|
6154
6154
|
try {
|
|
6155
|
-
|
|
6156
|
-
`${
|
|
6155
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6156
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
6157
6157
|
_config
|
|
6158
6158
|
);
|
|
6159
|
-
await
|
|
6160
|
-
|
|
6159
|
+
await chunkUDTVAYLD_cjs.postCheckoutHook(_config, files);
|
|
6160
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Post-checkout hook completed successfully!\n", _config);
|
|
6161
6161
|
} catch (error) {
|
|
6162
|
-
|
|
6162
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6163
6163
|
`A fatal error occurred while running the post-checkout hook:
|
|
6164
6164
|
|
|
6165
6165
|
${error.message}`,
|
|
@@ -6170,14 +6170,14 @@ ${error.message}`,
|
|
|
6170
6170
|
}
|
|
6171
6171
|
async function postCommitAction({ files }) {
|
|
6172
6172
|
try {
|
|
6173
|
-
|
|
6174
|
-
`${
|
|
6173
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6174
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
6175
6175
|
_config
|
|
6176
6176
|
);
|
|
6177
|
-
await
|
|
6178
|
-
|
|
6177
|
+
await chunk4FQ44OAT_cjs.postCommitHook(_config, files);
|
|
6178
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Post-commit hook completed successfully!\n", _config);
|
|
6179
6179
|
} catch (error) {
|
|
6180
|
-
|
|
6180
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6181
6181
|
`A fatal error occurred while running the post-commit hook:
|
|
6182
6182
|
|
|
6183
6183
|
${error.message}`,
|
|
@@ -6188,14 +6188,14 @@ ${error.message}`,
|
|
|
6188
6188
|
}
|
|
6189
6189
|
async function postMergeAction({ files }) {
|
|
6190
6190
|
try {
|
|
6191
|
-
|
|
6192
|
-
`${
|
|
6191
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6192
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
6193
6193
|
_config
|
|
6194
6194
|
);
|
|
6195
|
-
await
|
|
6196
|
-
|
|
6195
|
+
await chunk6G73LSPC_cjs.postMergeHook(_config, files);
|
|
6196
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Post-merge hook completed successfully!\n", _config);
|
|
6197
6197
|
} catch (error) {
|
|
6198
|
-
|
|
6198
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6199
6199
|
`A fatal error occurred while running the post-merge hook:
|
|
6200
6200
|
|
|
6201
6201
|
${error.message}`,
|
|
@@ -6206,14 +6206,14 @@ ${error.message}`,
|
|
|
6206
6206
|
}
|
|
6207
6207
|
async function preCommitAction({ files }) {
|
|
6208
6208
|
try {
|
|
6209
|
-
|
|
6210
|
-
`${
|
|
6209
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6210
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
6211
6211
|
_config
|
|
6212
6212
|
);
|
|
6213
|
-
await
|
|
6214
|
-
|
|
6213
|
+
await chunkMEXEBGMK_cjs.preCommitHook(_config, files);
|
|
6214
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Pre-commit hook completed successfully!\n", _config);
|
|
6215
6215
|
} catch (error) {
|
|
6216
|
-
|
|
6216
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6217
6217
|
`A fatal error occurred while running the pre-commit hook:
|
|
6218
6218
|
|
|
6219
6219
|
${error.message}`,
|
|
@@ -6224,14 +6224,14 @@ ${error.message}`,
|
|
|
6224
6224
|
}
|
|
6225
6225
|
async function prePushAction({ files }) {
|
|
6226
6226
|
try {
|
|
6227
|
-
|
|
6228
|
-
`${
|
|
6227
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6228
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
6229
6229
|
_config
|
|
6230
6230
|
);
|
|
6231
|
-
await
|
|
6232
|
-
|
|
6231
|
+
await chunkDYZLP2KW_cjs.prePushHook(_config, files);
|
|
6232
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Pre-push hook completed successfully!\n", _config);
|
|
6233
6233
|
} catch (error) {
|
|
6234
|
-
|
|
6234
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6235
6235
|
`A fatal error occurred while running the pre-push hook:
|
|
6236
6236
|
|
|
6237
6237
|
${error.message}`,
|
|
@@ -6242,14 +6242,14 @@ ${error.message}`,
|
|
|
6242
6242
|
}
|
|
6243
6243
|
async function prepareAction() {
|
|
6244
6244
|
try {
|
|
6245
|
-
|
|
6246
|
-
`${
|
|
6245
|
+
chunkEOUDKHXD_cjs.writeInfo(
|
|
6246
|
+
`${chunkEOUDKHXD_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
6247
6247
|
_config
|
|
6248
6248
|
);
|
|
6249
|
-
await
|
|
6250
|
-
|
|
6249
|
+
await chunkJ4XLLB7C_cjs.prepareHook(_config);
|
|
6250
|
+
chunkEOUDKHXD_cjs.writeSuccess("\u2714 Prepare hook completed successfully!\n", _config);
|
|
6251
6251
|
} catch (error) {
|
|
6252
|
-
|
|
6252
|
+
chunkEOUDKHXD_cjs.writeFatal(
|
|
6253
6253
|
`A fatal error occurred while running the prepare hook:
|
|
6254
6254
|
|
|
6255
6255
|
${error.message}`,
|
|
@@ -6261,18 +6261,18 @@ ${error.message}`,
|
|
|
6261
6261
|
|
|
6262
6262
|
// bin/git.ts
|
|
6263
6263
|
void (async () => {
|
|
6264
|
-
const config5 = await
|
|
6264
|
+
const config5 = await chunkEOUDKHXD_cjs.getConfig();
|
|
6265
6265
|
try {
|
|
6266
|
-
|
|
6266
|
+
chunkEOUDKHXD_cjs.handleProcess(config5);
|
|
6267
6267
|
const program = createProgram(config5);
|
|
6268
6268
|
await program.parseAsync(process.argv);
|
|
6269
|
-
|
|
6269
|
+
chunkEOUDKHXD_cjs.writeSuccess(
|
|
6270
6270
|
`\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
6271
6271
|
config5
|
|
6272
6272
|
);
|
|
6273
|
-
|
|
6273
|
+
chunkEOUDKHXD_cjs.exitWithSuccess(config5);
|
|
6274
6274
|
} catch (error) {
|
|
6275
|
-
|
|
6275
|
+
chunkEOUDKHXD_cjs.exitWithError(config5);
|
|
6276
6276
|
process.exit(1);
|
|
6277
6277
|
}
|
|
6278
6278
|
})();
|