@storm-software/git-tools 2.130.2 → 2.130.4
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-A3GMURSK.cjs → chunk-7F3TVMCA.cjs} +4 -4
- package/bin/{chunk-A3GMURSK.cjs.map → chunk-7F3TVMCA.cjs.map} +1 -1
- package/bin/{chunk-WCDB3OLV.js → chunk-CVJTBRYR.js} +3 -3
- package/bin/{chunk-WCDB3OLV.js.map → chunk-CVJTBRYR.js.map} +1 -1
- package/bin/{chunk-S32TDLJX.cjs → chunk-CW3OIFB4.cjs} +4 -4
- package/bin/{chunk-S32TDLJX.cjs.map → chunk-CW3OIFB4.cjs.map} +1 -1
- package/bin/{chunk-N2HECVLR.js → chunk-EQGVGVJD.js} +3 -3
- package/bin/{chunk-N2HECVLR.js.map → chunk-EQGVGVJD.js.map} +1 -1
- package/bin/{chunk-PFSAEKCF.js → chunk-FQBQE6ZB.js} +3 -3
- package/bin/{chunk-PFSAEKCF.js.map → chunk-FQBQE6ZB.js.map} +1 -1
- package/bin/{chunk-NOO7FRF4.js → chunk-GUBKGNXI.js} +5 -5
- package/bin/{chunk-NOO7FRF4.js.map → chunk-GUBKGNXI.js.map} +1 -1
- package/bin/{chunk-H2JIDXRZ.cjs → chunk-I2HNX3GG.cjs} +4 -4
- package/bin/{chunk-H2JIDXRZ.cjs.map → chunk-I2HNX3GG.cjs.map} +1 -1
- package/bin/{chunk-QDTVI7WT.cjs → chunk-I7B6IYBB.cjs} +5 -5
- package/bin/{chunk-QDTVI7WT.cjs.map → chunk-I7B6IYBB.cjs.map} +1 -1
- package/bin/{chunk-6W6FBNEJ.cjs → chunk-J7EC3A2H.cjs} +4 -4
- package/bin/{chunk-6W6FBNEJ.cjs.map → chunk-J7EC3A2H.cjs.map} +1 -1
- package/bin/{chunk-RMBT73YE.cjs → chunk-MOZKMSXM.cjs} +4 -4
- package/bin/{chunk-RMBT73YE.cjs.map → chunk-MOZKMSXM.cjs.map} +1 -1
- package/bin/{chunk-LVSMYJQM.js → chunk-MWT3CRQG.js} +3 -3
- package/bin/{chunk-LVSMYJQM.js.map → chunk-MWT3CRQG.js.map} +1 -1
- package/bin/{chunk-MVQI65TW.cjs → chunk-OE7KAAB5.cjs} +6 -6
- package/bin/{chunk-MVQI65TW.cjs.map → chunk-OE7KAAB5.cjs.map} +1 -1
- package/bin/{chunk-TWP7LTYJ.js → chunk-OGI5YX4H.js} +3 -3
- package/bin/{chunk-TWP7LTYJ.js.map → chunk-OGI5YX4H.js.map} +1 -1
- package/bin/{chunk-52H32YOS.js → chunk-RKEJZ2TR.js} +3 -3
- package/bin/{chunk-52H32YOS.js.map → chunk-RKEJZ2TR.js.map} +1 -1
- package/bin/{chunk-DZDXQHJV.cjs → chunk-T4KL5T3Y.cjs} +5 -5
- package/bin/{chunk-DZDXQHJV.cjs.map → chunk-T4KL5T3Y.cjs.map} +1 -1
- package/bin/{chunk-EOTZWMWQ.js → chunk-VPYYIUSQ.js} +3 -3
- package/bin/{chunk-EOTZWMWQ.js.map → chunk-VPYYIUSQ.js.map} +1 -1
- package/bin/git.cjs +118 -118
- 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-5CRI6NO7.js → chunk-2NX5AYN5.js} +1 -1
- package/dist/{chunk-P5NAAC4N.js → chunk-2WB3Y3LV.js} +1 -1
- package/dist/{chunk-OYVBGDDT.cjs → chunk-4WE2GYN5.cjs} +2 -2
- package/dist/{chunk-AC5ULQLU.js → chunk-5LXLYDKZ.js} +1 -1
- package/dist/{chunk-4PWPCASG.cjs → chunk-AAIROCDF.cjs} +4 -4
- package/dist/{chunk-3OFWCM5Y.cjs → chunk-B7UB3ZXH.cjs} +2 -2
- package/dist/{chunk-GF4ZXZCS.cjs → chunk-DNPDNWA3.cjs} +3 -3
- package/dist/{chunk-VFGEAZEU.js → chunk-DQBPRD5I.js} +1 -1
- package/dist/{chunk-U4ITJVBF.js → chunk-HLX3ZD3F.js} +1 -1
- package/dist/{chunk-D4WHHW75.cjs → chunk-IDLABXSC.cjs} +2 -2
- package/dist/{chunk-EV4B3GJD.cjs → chunk-ISLA7CP2.cjs} +1 -1
- package/dist/{chunk-CD4EKGDM.js → chunk-NTYI6N67.js} +2 -2
- package/dist/{chunk-WG652PIV.js → chunk-PSIDOCCW.js} +1 -1
- package/dist/{chunk-4FUTKXP2.cjs → chunk-UVILOGFH.cjs} +11 -11
- package/dist/{chunk-TMHJ5TB2.js → chunk-VNHQ67ST.js} +1 -1
- package/dist/{chunk-6QAR5LMB.cjs → chunk-VOTWSUDD.cjs} +2 -2
- package/dist/{chunk-YLZ6V3A5.js → chunk-WCBM32NK.js} +1 -1
- package/dist/{chunk-VQV7XNP4.cjs → chunk-WKT2GS3D.cjs} +2 -2
- package/dist/index.cjs +23 -23
- package/dist/index.js +9 -9
- package/dist/lefthook/recommended.yml +1 -1
- package/dist/release/config.cjs +9 -9
- package/dist/release/config.js +2 -2
- package/package.json +6 -6
package/bin/git.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
var
|
|
4
|
+
var chunk7F3TVMCA_cjs = require('./chunk-7F3TVMCA.cjs');
|
|
5
|
+
var chunkMOZKMSXM_cjs = require('./chunk-MOZKMSXM.cjs');
|
|
6
|
+
var chunkJ7EC3A2H_cjs = require('./chunk-J7EC3A2H.cjs');
|
|
7
|
+
var chunkCW3OIFB4_cjs = require('./chunk-CW3OIFB4.cjs');
|
|
8
|
+
require('./chunk-T4KL5T3Y.cjs');
|
|
9
|
+
var chunkOE7KAAB5_cjs = require('./chunk-OE7KAAB5.cjs');
|
|
10
10
|
require('./chunk-YHZNDNCW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkI2HNX3GG_cjs = require('./chunk-I2HNX3GG.cjs');
|
|
12
12
|
var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkI7B6IYBB_cjs = require('./chunk-I7B6IYBB.cjs');
|
|
14
14
|
var TOML = require('@ltd/j-toml');
|
|
15
15
|
var commander = require('commander');
|
|
16
16
|
require('@inquirer/checkbox');
|
|
@@ -409,9 +409,9 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
409
409
|
|
|
410
410
|
// ../conventional-changelog/src/index.ts
|
|
411
411
|
async function createPreset(variant = "monorepo") {
|
|
412
|
-
const workspaceConfig = await
|
|
412
|
+
const workspaceConfig = await chunkI7B6IYBB_cjs.getWorkspaceConfig();
|
|
413
413
|
if (variant === "minimal") {
|
|
414
|
-
return
|
|
414
|
+
return chunkI7B6IYBB_cjs.defu(
|
|
415
415
|
await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
|
|
416
416
|
{
|
|
417
417
|
...COMMIT_CONFIGS.minimal,
|
|
@@ -425,7 +425,7 @@ async function createPreset(variant = "monorepo") {
|
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
427
|
const nxScopes = await getNxScopes({ config: workspaceConfig });
|
|
428
|
-
return
|
|
428
|
+
return chunkI7B6IYBB_cjs.defu(
|
|
429
429
|
await createBasePreset__default.default({
|
|
430
430
|
...COMMIT_CONFIGS.monorepo.changelogs.props,
|
|
431
431
|
scope: nxScopes
|
|
@@ -989,7 +989,7 @@ async function lint(message, config5) {
|
|
|
989
989
|
// src/commitlint/run.ts
|
|
990
990
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
991
991
|
async function runCommitLint(workspaceConfig, options) {
|
|
992
|
-
|
|
992
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
993
993
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
994
994
|
workspaceConfig
|
|
995
995
|
);
|
|
@@ -997,7 +997,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
997
997
|
if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
|
|
998
998
|
commitMessage = options.message;
|
|
999
999
|
} else {
|
|
1000
|
-
const commitFile =
|
|
1000
|
+
const commitFile = chunkI7B6IYBB_cjs.joinPaths(
|
|
1001
1001
|
workspaceConfig.workspaceRoot,
|
|
1002
1002
|
options.file || options.message || COMMIT_EDITMSG_PATH
|
|
1003
1003
|
);
|
|
@@ -1014,17 +1014,17 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1014
1014
|
if (upstreamRemote) {
|
|
1015
1015
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
1016
1016
|
if (!upstreamRemoteIdentifier) {
|
|
1017
|
-
|
|
1017
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
1018
1018
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
|
|
1019
1019
|
workspaceConfig
|
|
1020
1020
|
);
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
|
|
1023
|
+
chunkI7B6IYBB_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
1024
1024
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
1025
1025
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
1026
1026
|
} else {
|
|
1027
|
-
|
|
1027
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
1028
1028
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
|
|
1029
1029
|
workspaceConfig
|
|
1030
1030
|
);
|
|
@@ -1032,7 +1032,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
1034
1034
|
if (!commitMessage) {
|
|
1035
|
-
|
|
1035
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
1036
1036
|
"No commits found. Skipping commit message validation.",
|
|
1037
1037
|
workspaceConfig
|
|
1038
1038
|
);
|
|
@@ -1042,7 +1042,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1042
1042
|
const preset = await createPreset(workspaceConfig.variant);
|
|
1043
1043
|
const report = await lint(commitMessage, preset);
|
|
1044
1044
|
if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1045
|
-
|
|
1045
|
+
chunkI7B6IYBB_cjs.writeSuccess(
|
|
1046
1046
|
`Commit was processing completed successfully!`,
|
|
1047
1047
|
workspaceConfig
|
|
1048
1048
|
);
|
|
@@ -1254,7 +1254,7 @@ async function createState(workspaceConfig, configPath) {
|
|
|
1254
1254
|
const project = projectConfigurations.projects[scope];
|
|
1255
1255
|
if (project) {
|
|
1256
1256
|
let description = `${project.name} - ${project.root}`;
|
|
1257
|
-
const packageJsonPath =
|
|
1257
|
+
const packageJsonPath = chunkI7B6IYBB_cjs.joinPaths(project.root, "package.json");
|
|
1258
1258
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1259
1259
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1260
1260
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1328,20 +1328,20 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
|
|
|
1328
1328
|
|
|
1329
1329
|
// src/commit/run.ts
|
|
1330
1330
|
async function runCommit(commitizenFile, dryRun = false) {
|
|
1331
|
-
const workspaceConfig = await
|
|
1331
|
+
const workspaceConfig = await chunkI7B6IYBB_cjs.getWorkspaceConfig();
|
|
1332
1332
|
const state = await createState(workspaceConfig);
|
|
1333
1333
|
if (dryRun) {
|
|
1334
|
-
|
|
1334
|
+
chunkI7B6IYBB_cjs.writeInfo("Running in dry mode.", workspaceConfig);
|
|
1335
1335
|
}
|
|
1336
1336
|
console.log(chalkTemplate__default.default`
|
|
1337
1337
|
{bold.#999999 ----------------------------------------}
|
|
1338
1338
|
|
|
1339
|
-
{bold.#FFFFFF ${
|
|
1339
|
+
{bold.#FFFFFF ${chunkI7B6IYBB_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
|
|
1340
1340
|
{#CCCCCC Please provide the requested details below...}
|
|
1341
1341
|
`);
|
|
1342
1342
|
state.answers = await askQuestions(state);
|
|
1343
1343
|
const message = formatCommitMessage(state, workspaceConfig);
|
|
1344
|
-
const commitMsgFile =
|
|
1344
|
+
const commitMsgFile = chunkI7B6IYBB_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1345
1345
|
console.log(chalkTemplate__default.default`
|
|
1346
1346
|
{bold.#999999 ----------------------------------------}
|
|
1347
1347
|
|
|
@@ -1354,11 +1354,11 @@ async function runCommit(commitizenFile, dryRun = false) {
|
|
|
1354
1354
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1355
1355
|
const command = shellescape__default.default(commandItems);
|
|
1356
1356
|
if (dryRun) {
|
|
1357
|
-
|
|
1357
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
1358
1358
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1359
1359
|
workspaceConfig
|
|
1360
1360
|
);
|
|
1361
|
-
|
|
1361
|
+
chunkI7B6IYBB_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1362
1362
|
} else {
|
|
1363
1363
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1364
1364
|
chunkFH5OSXAJ_cjs.run(workspaceConfig, command);
|
|
@@ -2017,7 +2017,7 @@ var runReadme = async ({
|
|
|
2017
2017
|
exitOnError: true
|
|
2018
2018
|
});
|
|
2019
2019
|
const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
2020
|
-
const workspaceRoot =
|
|
2020
|
+
const workspaceRoot = chunkI7B6IYBB_cjs.findWorkspaceRootSafe(process.cwd());
|
|
2021
2021
|
if (!workspaceRoot) {
|
|
2022
2022
|
throw new Error(
|
|
2023
2023
|
"Unable to find the workspace root. Please ensure you are running this command from within a workspace."
|
|
@@ -2434,7 +2434,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2434
2434
|
const header = await prettier.format(
|
|
2435
2435
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkI7B6IYBB_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2438
2438
|
|
|
2439
2439
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2440
2440
|
|
|
@@ -2610,12 +2610,12 @@ async function generateChangelogForProjects({
|
|
|
2610
2610
|
projectChangelogs
|
|
2611
2611
|
)) {
|
|
2612
2612
|
if (!projectGraph.nodes[projectName]?.data.root) {
|
|
2613
|
-
|
|
2613
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
2614
2614
|
`A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
|
|
2615
2615
|
workspaceConfig
|
|
2616
2616
|
);
|
|
2617
2617
|
} else if (projectChangelog.contents) {
|
|
2618
|
-
const filePath =
|
|
2618
|
+
const filePath = chunkI7B6IYBB_cjs.joinPaths(
|
|
2619
2619
|
projectGraph.nodes[projectName].data.root,
|
|
2620
2620
|
"CHANGELOG.md"
|
|
2621
2621
|
);
|
|
@@ -2623,7 +2623,7 @@ async function generateChangelogForProjects({
|
|
|
2623
2623
|
if (fs$1.existsSync(filePath)) {
|
|
2624
2624
|
currentContent = await fs.readFile(filePath, "utf8");
|
|
2625
2625
|
}
|
|
2626
|
-
|
|
2626
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
2627
2627
|
`\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
|
|
2628
2628
|
workspaceConfig
|
|
2629
2629
|
);
|
|
@@ -2846,7 +2846,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
|
|
|
2846
2846
|
}
|
|
2847
2847
|
async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
|
|
2848
2848
|
if (!this.workspaceConfig) {
|
|
2849
|
-
this.workspaceConfig = await
|
|
2849
|
+
this.workspaceConfig = await chunkI7B6IYBB_cjs.getWorkspaceConfig();
|
|
2850
2850
|
}
|
|
2851
2851
|
const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
|
|
2852
2852
|
return super.createOrUpdateRelease(
|
|
@@ -3047,7 +3047,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
3047
3047
|
}
|
|
3048
3048
|
async render() {
|
|
3049
3049
|
if (!this.workspaceConfig) {
|
|
3050
|
-
this.workspaceConfig = await
|
|
3050
|
+
this.workspaceConfig = await chunkI7B6IYBB_cjs.getWorkspaceConfig();
|
|
3051
3051
|
}
|
|
3052
3052
|
return super.render();
|
|
3053
3053
|
}
|
|
@@ -3303,7 +3303,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3303
3303
|
function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
|
|
3304
3304
|
return !releaseConfig?.groups || Object.keys(releaseConfig.groups).length === 0 ? {} : Object.fromEntries(
|
|
3305
3305
|
Object.entries(releaseConfig.groups).map(([name, group]) => {
|
|
3306
|
-
const config5 =
|
|
3306
|
+
const config5 = chunkI7B6IYBB_cjs.defu(
|
|
3307
3307
|
{
|
|
3308
3308
|
...omit(DEFAULT_RELEASE_GROUP_CONFIG, ["changelog", "version"]),
|
|
3309
3309
|
...group
|
|
@@ -3326,13 +3326,13 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
|
|
|
3326
3326
|
);
|
|
3327
3327
|
if (workspaceConfig?.workspaceRoot) {
|
|
3328
3328
|
if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
|
|
3329
|
-
config5.changelog.renderer =
|
|
3329
|
+
config5.changelog.renderer = chunkI7B6IYBB_cjs.joinPaths(
|
|
3330
3330
|
workspaceConfig.workspaceRoot,
|
|
3331
3331
|
config5.changelog.renderer
|
|
3332
3332
|
);
|
|
3333
3333
|
}
|
|
3334
3334
|
if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
|
|
3335
|
-
config5.version.versionActions =
|
|
3335
|
+
config5.version.versionActions = chunkI7B6IYBB_cjs.joinPaths(
|
|
3336
3336
|
workspaceConfig.workspaceRoot,
|
|
3337
3337
|
config5.version?.versionActions
|
|
3338
3338
|
);
|
|
@@ -3347,7 +3347,7 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
|
|
|
3347
3347
|
var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
|
|
3348
3348
|
static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
|
|
3349
3349
|
if (!workspaceConfig) {
|
|
3350
|
-
workspaceConfig = await
|
|
3350
|
+
workspaceConfig = await chunkI7B6IYBB_cjs.getWorkspaceConfig();
|
|
3351
3351
|
}
|
|
3352
3352
|
let projectGraph;
|
|
3353
3353
|
try {
|
|
@@ -3400,10 +3400,10 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
3400
3400
|
*/
|
|
3401
3401
|
constructor(projectGraph, releaseConfig, ignoreNxJsonConfig, workspaceConfig) {
|
|
3402
3402
|
let nxJson$1;
|
|
3403
|
-
if (!ignoreNxJsonConfig && fs$1.existsSync(
|
|
3403
|
+
if (!ignoreNxJsonConfig && fs$1.existsSync(chunkI7B6IYBB_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
|
|
3404
3404
|
nxJson$1 = nxJson.readNxJson();
|
|
3405
3405
|
}
|
|
3406
|
-
const config5 =
|
|
3406
|
+
const config5 = chunkI7B6IYBB_cjs.defu(
|
|
3407
3407
|
{
|
|
3408
3408
|
changelog: {
|
|
3409
3409
|
renderOptions: {
|
|
@@ -3425,11 +3425,11 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
3425
3425
|
omit(DEFAULT_RELEASE_CONFIG, ["groups"])
|
|
3426
3426
|
);
|
|
3427
3427
|
super(config5, true);
|
|
3428
|
-
|
|
3428
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3429
3429
|
"Executing release with the following configuration",
|
|
3430
3430
|
workspaceConfig
|
|
3431
3431
|
);
|
|
3432
|
-
|
|
3432
|
+
chunkI7B6IYBB_cjs.writeDebug(config5, workspaceConfig);
|
|
3433
3433
|
this.projectGraph = projectGraph;
|
|
3434
3434
|
this.config = config5;
|
|
3435
3435
|
this.workspaceConfig = workspaceConfig;
|
|
@@ -3573,7 +3573,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
3573
3573
|
})),
|
|
3574
3574
|
this.config.conventionalCommits
|
|
3575
3575
|
);
|
|
3576
|
-
|
|
3576
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3577
3577
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
3578
3578
|
this.workspaceConfig
|
|
3579
3579
|
);
|
|
@@ -3644,7 +3644,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
3644
3644
|
})),
|
|
3645
3645
|
this.config.conventionalCommits
|
|
3646
3646
|
);
|
|
3647
|
-
|
|
3647
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3648
3648
|
`Running changelog generation for the ${releaseGroup.name} release group`,
|
|
3649
3649
|
this.workspaceConfig
|
|
3650
3650
|
);
|
|
@@ -3673,7 +3673,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
|
|
|
3673
3673
|
}
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
|
-
|
|
3676
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3677
3677
|
`Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
|
|
3678
3678
|
${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
3679
3679
|
`,
|
|
@@ -3702,7 +3702,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
3702
3702
|
);
|
|
3703
3703
|
const changes = this.tree.listChanges();
|
|
3704
3704
|
if (!changes.length) {
|
|
3705
|
-
|
|
3705
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
3706
3706
|
"No changes were detected for any changelog files, so no changelog entries will be generated.",
|
|
3707
3707
|
this.workspaceConfig
|
|
3708
3708
|
);
|
|
@@ -3724,7 +3724,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
3724
3724
|
gitCommitArgs: options.gitCommitArgs || this.config.changelog?.git?.commitArgs
|
|
3725
3725
|
});
|
|
3726
3726
|
latestCommit = await git.getCommitHash("HEAD");
|
|
3727
|
-
|
|
3727
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3728
3728
|
`Creating git tags: ${gitTagValues.join(", ")}`,
|
|
3729
3729
|
this.workspaceConfig
|
|
3730
3730
|
);
|
|
@@ -3737,7 +3737,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
|
|
|
3737
3737
|
verbose: options.verbose
|
|
3738
3738
|
});
|
|
3739
3739
|
}
|
|
3740
|
-
|
|
3740
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3741
3741
|
`Pushing to git remote "${options.gitRemote ?? "origin"}"`,
|
|
3742
3742
|
this.workspaceConfig
|
|
3743
3743
|
);
|
|
@@ -3769,7 +3769,7 @@ var runRelease = async (config5, {
|
|
|
3769
3769
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
3770
3770
|
}
|
|
3771
3771
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
3772
|
-
|
|
3772
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
3773
3773
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
3774
3774
|
config5
|
|
3775
3775
|
);
|
|
@@ -3786,26 +3786,26 @@ var runRelease = async (config5, {
|
|
|
3786
3786
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
3787
3787
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
3788
3788
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
3789
|
-
|
|
3789
|
+
chunkI7B6IYBB_cjs.writeDebug("Creating Storm release client...", config5);
|
|
3790
3790
|
const releaseClient = await StormReleaseClient.create(
|
|
3791
3791
|
releaseConfig,
|
|
3792
3792
|
ignoreNxJsonConfig,
|
|
3793
3793
|
config5
|
|
3794
3794
|
);
|
|
3795
|
-
|
|
3795
|
+
chunkI7B6IYBB_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
3796
3796
|
const to = head || process.env.NX_HEAD;
|
|
3797
3797
|
const from = base || process.env.NX_BASE;
|
|
3798
|
-
|
|
3798
|
+
chunkI7B6IYBB_cjs.writeDebug(
|
|
3799
3799
|
`Using the following Git SHAs to determine the release content:
|
|
3800
3800
|
- From: ${from}
|
|
3801
3801
|
- To: ${to}
|
|
3802
3802
|
`,
|
|
3803
3803
|
config5
|
|
3804
3804
|
);
|
|
3805
|
-
|
|
3805
|
+
chunkI7B6IYBB_cjs.writeDebug("Determining the current release versions...", config5);
|
|
3806
3806
|
const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
|
|
3807
3807
|
dryRun,
|
|
3808
|
-
verbose:
|
|
3808
|
+
verbose: chunkI7B6IYBB_cjs.isVerbose(config5.logLevel),
|
|
3809
3809
|
preid: config5.preid,
|
|
3810
3810
|
stageChanges: true,
|
|
3811
3811
|
gitCommit: false
|
|
@@ -3814,14 +3814,14 @@ var runRelease = async (config5, {
|
|
|
3814
3814
|
version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
|
|
3815
3815
|
versionData: projectsVersionData,
|
|
3816
3816
|
dryRun,
|
|
3817
|
-
verbose:
|
|
3817
|
+
verbose: chunkI7B6IYBB_cjs.isVerbose(config5.logLevel),
|
|
3818
3818
|
to,
|
|
3819
3819
|
from,
|
|
3820
3820
|
releaseGraph
|
|
3821
3821
|
});
|
|
3822
|
-
|
|
3822
|
+
chunkI7B6IYBB_cjs.writeDebug("Tagging commit with git", config5);
|
|
3823
3823
|
if (skipPublish) {
|
|
3824
|
-
|
|
3824
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
3825
3825
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
3826
3826
|
config5
|
|
3827
3827
|
);
|
|
@@ -3830,7 +3830,7 @@ var runRelease = async (config5, {
|
|
|
3830
3830
|
(key) => projectsVersionData[key]?.newVersion
|
|
3831
3831
|
);
|
|
3832
3832
|
if (changedProjects.length > 0) {
|
|
3833
|
-
|
|
3833
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
3834
3834
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
3835
3835
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
3836
3836
|
`,
|
|
@@ -3839,7 +3839,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
3839
3839
|
await updatePackageManifests(projectsVersionData, config5);
|
|
3840
3840
|
const result = await releaseClient.releasePublish({
|
|
3841
3841
|
dryRun,
|
|
3842
|
-
verbose:
|
|
3842
|
+
verbose: chunkI7B6IYBB_cjs.isVerbose(config5.logLevel)
|
|
3843
3843
|
});
|
|
3844
3844
|
const failedProjects = Object.keys(result).filter(
|
|
3845
3845
|
(key) => result[key]?.code && result[key]?.code > 0
|
|
@@ -3854,10 +3854,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
3854
3854
|
);
|
|
3855
3855
|
}
|
|
3856
3856
|
} else {
|
|
3857
|
-
|
|
3857
|
+
chunkI7B6IYBB_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
3858
3858
|
}
|
|
3859
3859
|
}
|
|
3860
|
-
|
|
3860
|
+
chunkI7B6IYBB_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
3861
3861
|
};
|
|
3862
3862
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
3863
3863
|
let projectGraph;
|
|
@@ -3872,7 +3872,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
3872
3872
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
3873
3873
|
const projectNode = projectGraph.nodes[node];
|
|
3874
3874
|
if (!projectNode?.data.root) {
|
|
3875
|
-
|
|
3875
|
+
chunkI7B6IYBB_cjs.writeWarning(
|
|
3876
3876
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
3877
3877
|
config5
|
|
3878
3878
|
);
|
|
@@ -3880,17 +3880,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
3880
3880
|
}
|
|
3881
3881
|
const versionData = projectsVersionData[node];
|
|
3882
3882
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
3883
|
-
|
|
3883
|
+
chunkI7B6IYBB_cjs.writeTrace(
|
|
3884
3884
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
3885
3885
|
`,
|
|
3886
3886
|
config5
|
|
3887
3887
|
);
|
|
3888
|
-
const projectRoot =
|
|
3888
|
+
const projectRoot = chunkI7B6IYBB_cjs.joinPaths(
|
|
3889
3889
|
config5.workspaceRoot,
|
|
3890
3890
|
projectNode.data.root
|
|
3891
3891
|
);
|
|
3892
|
-
const packageJsonPath =
|
|
3893
|
-
const cargoTomlPath =
|
|
3892
|
+
const packageJsonPath = chunkI7B6IYBB_cjs.joinPaths(projectRoot, "package.json");
|
|
3893
|
+
const cargoTomlPath = chunkI7B6IYBB_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
3894
3894
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
3895
3895
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
3896
3896
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -3908,7 +3908,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
3908
3908
|
})
|
|
3909
3909
|
);
|
|
3910
3910
|
} else {
|
|
3911
|
-
|
|
3911
|
+
chunkI7B6IYBB_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
3912
3912
|
}
|
|
3913
3913
|
}
|
|
3914
3914
|
|
|
@@ -3916,8 +3916,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
3916
3916
|
var _config = {};
|
|
3917
3917
|
function createProgram(config5) {
|
|
3918
3918
|
_config = config5;
|
|
3919
|
-
|
|
3920
|
-
const root =
|
|
3919
|
+
chunkI7B6IYBB_cjs.writeInfo(`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
|
|
3920
|
+
const root = chunkI7B6IYBB_cjs.findWorkspaceRootSafe(process.cwd());
|
|
3921
3921
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
3922
3922
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
3923
3923
|
if (root) {
|
|
@@ -3964,12 +3964,12 @@ async function commitAction({
|
|
|
3964
3964
|
dryRun = false
|
|
3965
3965
|
}) {
|
|
3966
3966
|
try {
|
|
3967
|
-
|
|
3968
|
-
`${
|
|
3967
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
3968
|
+
`${chunkI7B6IYBB_cjs.brandIcon(typeof config5 === "string" ? {} : config5)} Preparing to commit your changes. Please provide the requested details below...`,
|
|
3969
3969
|
_config
|
|
3970
3970
|
);
|
|
3971
3971
|
await runCommit(config5, dryRun);
|
|
3972
|
-
|
|
3972
|
+
chunkI7B6IYBB_cjs.writeSuccess(
|
|
3973
3973
|
` \u2714 Storm Commit processing completed successfully!
|
|
3974
3974
|
|
|
3975
3975
|
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}
|
|
@@ -3977,7 +3977,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
3977
3977
|
_config
|
|
3978
3978
|
);
|
|
3979
3979
|
} catch (error) {
|
|
3980
|
-
|
|
3980
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
3981
3981
|
`A fatal error occurred while running commit action:
|
|
3982
3982
|
|
|
3983
3983
|
${error.message}${error.stack ? `
|
|
@@ -3992,17 +3992,17 @@ Please fix any errors and try committing again.`,
|
|
|
3992
3992
|
}
|
|
3993
3993
|
async function readmeAction(options) {
|
|
3994
3994
|
try {
|
|
3995
|
-
|
|
3996
|
-
`${
|
|
3995
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
3996
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
|
|
3997
3997
|
_config
|
|
3998
3998
|
);
|
|
3999
3999
|
await runReadme(options);
|
|
4000
|
-
|
|
4000
|
+
chunkI7B6IYBB_cjs.writeSuccess(
|
|
4001
4001
|
" \u2714 Formatting of the workspace's README.md files is complete\n",
|
|
4002
4002
|
_config
|
|
4003
4003
|
);
|
|
4004
4004
|
} catch (error) {
|
|
4005
|
-
|
|
4005
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4006
4006
|
`A fatal error occurred while running README format action:
|
|
4007
4007
|
|
|
4008
4008
|
${error.message}`
|
|
@@ -4017,8 +4017,8 @@ async function releaseAction({
|
|
|
4017
4017
|
dryRun
|
|
4018
4018
|
}) {
|
|
4019
4019
|
try {
|
|
4020
|
-
|
|
4021
|
-
`${
|
|
4020
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4021
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
|
|
4022
4022
|
_config
|
|
4023
4023
|
);
|
|
4024
4024
|
await runRelease(_config, {
|
|
@@ -4027,9 +4027,9 @@ async function releaseAction({
|
|
|
4027
4027
|
base,
|
|
4028
4028
|
head
|
|
4029
4029
|
});
|
|
4030
|
-
|
|
4030
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Release completed successfully!\n", _config);
|
|
4031
4031
|
} catch (error) {
|
|
4032
|
-
|
|
4032
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4033
4033
|
`A fatal error occurred while running release action:
|
|
4034
4034
|
|
|
4035
4035
|
${error.message} ${error.stack ? `
|
|
@@ -4043,17 +4043,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
4043
4043
|
}
|
|
4044
4044
|
async function commitLintAction(options) {
|
|
4045
4045
|
try {
|
|
4046
|
-
|
|
4047
|
-
`${
|
|
4046
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4047
|
+
`${chunkI7B6IYBB_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.`,
|
|
4048
4048
|
_config
|
|
4049
4049
|
);
|
|
4050
4050
|
await runCommitLint(_config, options);
|
|
4051
|
-
|
|
4051
|
+
chunkI7B6IYBB_cjs.writeSuccess(
|
|
4052
4052
|
" \u2714 Linting the commit messages completed successfully!\n",
|
|
4053
4053
|
_config
|
|
4054
4054
|
);
|
|
4055
4055
|
} catch (error) {
|
|
4056
|
-
|
|
4056
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4057
4057
|
`A fatal error occurred while linting the commit messages:
|
|
4058
4058
|
|
|
4059
4059
|
${error.message}`,
|
|
@@ -4064,14 +4064,14 @@ ${error.message}`,
|
|
|
4064
4064
|
}
|
|
4065
4065
|
async function postCheckoutAction({ files }) {
|
|
4066
4066
|
try {
|
|
4067
|
-
|
|
4068
|
-
`${
|
|
4067
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4068
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm post-checkout git hook for ${files.length} files in the workspace...`,
|
|
4069
4069
|
_config
|
|
4070
4070
|
);
|
|
4071
|
-
await
|
|
4072
|
-
|
|
4071
|
+
await chunk7F3TVMCA_cjs.postCheckoutHook(_config, files);
|
|
4072
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Post-checkout hook completed successfully!\n", _config);
|
|
4073
4073
|
} catch (error) {
|
|
4074
|
-
|
|
4074
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4075
4075
|
`A fatal error occurred while running the post-checkout hook:
|
|
4076
4076
|
|
|
4077
4077
|
${error.message}`,
|
|
@@ -4082,14 +4082,14 @@ ${error.message}`,
|
|
|
4082
4082
|
}
|
|
4083
4083
|
async function postCommitAction({ files }) {
|
|
4084
4084
|
try {
|
|
4085
|
-
|
|
4086
|
-
`${
|
|
4085
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4086
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm post-commit git hook for ${files.length} files in the workspace...`,
|
|
4087
4087
|
_config
|
|
4088
4088
|
);
|
|
4089
|
-
await
|
|
4090
|
-
|
|
4089
|
+
await chunkMOZKMSXM_cjs.postCommitHook(_config, files);
|
|
4090
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Post-commit hook completed successfully!\n", _config);
|
|
4091
4091
|
} catch (error) {
|
|
4092
|
-
|
|
4092
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4093
4093
|
`A fatal error occurred while running the post-commit hook:
|
|
4094
4094
|
|
|
4095
4095
|
${error.message}`,
|
|
@@ -4100,14 +4100,14 @@ ${error.message}`,
|
|
|
4100
4100
|
}
|
|
4101
4101
|
async function postMergeAction({ files }) {
|
|
4102
4102
|
try {
|
|
4103
|
-
|
|
4104
|
-
`${
|
|
4103
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4104
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm post-merge git hook for ${files.length} files in the workspace...`,
|
|
4105
4105
|
_config
|
|
4106
4106
|
);
|
|
4107
|
-
await
|
|
4108
|
-
|
|
4107
|
+
await chunkJ7EC3A2H_cjs.postMergeHook(_config, files);
|
|
4108
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Post-merge hook completed successfully!\n", _config);
|
|
4109
4109
|
} catch (error) {
|
|
4110
|
-
|
|
4110
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4111
4111
|
`A fatal error occurred while running the post-merge hook:
|
|
4112
4112
|
|
|
4113
4113
|
${error.message}`,
|
|
@@ -4118,14 +4118,14 @@ ${error.message}`,
|
|
|
4118
4118
|
}
|
|
4119
4119
|
async function preCommitAction({ files }) {
|
|
4120
4120
|
try {
|
|
4121
|
-
|
|
4122
|
-
`${
|
|
4121
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4122
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm pre-commit git hook for ${files.length} files in the workspace...`,
|
|
4123
4123
|
_config
|
|
4124
4124
|
);
|
|
4125
|
-
await
|
|
4126
|
-
|
|
4125
|
+
await chunkCW3OIFB4_cjs.preCommitHook(_config, files);
|
|
4126
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Pre-commit hook completed successfully!\n", _config);
|
|
4127
4127
|
} catch (error) {
|
|
4128
|
-
|
|
4128
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4129
4129
|
`A fatal error occurred while running the pre-commit hook:
|
|
4130
4130
|
|
|
4131
4131
|
${error.message}`,
|
|
@@ -4136,14 +4136,14 @@ ${error.message}`,
|
|
|
4136
4136
|
}
|
|
4137
4137
|
async function prePushAction({ files }) {
|
|
4138
4138
|
try {
|
|
4139
|
-
|
|
4140
|
-
`${
|
|
4139
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4140
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm pre-push git hook for ${files.length} files in the workspace...`,
|
|
4141
4141
|
_config
|
|
4142
4142
|
);
|
|
4143
|
-
await
|
|
4144
|
-
|
|
4143
|
+
await chunkOE7KAAB5_cjs.prePushHook(_config, files);
|
|
4144
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Pre-push hook completed successfully!\n", _config);
|
|
4145
4145
|
} catch (error) {
|
|
4146
|
-
|
|
4146
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4147
4147
|
`A fatal error occurred while running the pre-push hook:
|
|
4148
4148
|
|
|
4149
4149
|
${error.message}`,
|
|
@@ -4154,14 +4154,14 @@ ${error.message}`,
|
|
|
4154
4154
|
}
|
|
4155
4155
|
async function prepareAction() {
|
|
4156
4156
|
try {
|
|
4157
|
-
|
|
4158
|
-
`${
|
|
4157
|
+
chunkI7B6IYBB_cjs.writeInfo(
|
|
4158
|
+
`${chunkI7B6IYBB_cjs.brandIcon(_config)} Running the Storm prepare git hook for the workspace...`,
|
|
4159
4159
|
_config
|
|
4160
4160
|
);
|
|
4161
|
-
await
|
|
4162
|
-
|
|
4161
|
+
await chunkI2HNX3GG_cjs.prepareHook(_config);
|
|
4162
|
+
chunkI7B6IYBB_cjs.writeSuccess(" \u2714 Prepare hook completed successfully!\n", _config);
|
|
4163
4163
|
} catch (error) {
|
|
4164
|
-
|
|
4164
|
+
chunkI7B6IYBB_cjs.writeFatal(
|
|
4165
4165
|
`A fatal error occurred while running the prepare hook:
|
|
4166
4166
|
|
|
4167
4167
|
${error.message}`,
|
|
@@ -4173,18 +4173,18 @@ ${error.message}`,
|
|
|
4173
4173
|
|
|
4174
4174
|
// bin/git.ts
|
|
4175
4175
|
void (async () => {
|
|
4176
|
-
const config5 = await
|
|
4176
|
+
const config5 = await chunkI7B6IYBB_cjs.getConfig();
|
|
4177
4177
|
try {
|
|
4178
|
-
|
|
4178
|
+
chunkI7B6IYBB_cjs.handleProcess(config5);
|
|
4179
4179
|
const program = createProgram(config5);
|
|
4180
4180
|
await program.parseAsync(process.argv);
|
|
4181
|
-
|
|
4181
|
+
chunkI7B6IYBB_cjs.writeSuccess(
|
|
4182
4182
|
`\u2714 Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
4183
4183
|
config5
|
|
4184
4184
|
);
|
|
4185
|
-
|
|
4185
|
+
chunkI7B6IYBB_cjs.exitWithSuccess(config5);
|
|
4186
4186
|
} catch (error) {
|
|
4187
|
-
|
|
4187
|
+
chunkI7B6IYBB_cjs.exitWithError(config5);
|
|
4188
4188
|
process.exit(1);
|
|
4189
4189
|
}
|
|
4190
4190
|
})();
|