@storm-software/git-tools 2.113.24 → 2.113.31
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-3MTHCLGM.cjs → chunk-EBHPAULB.cjs} +907 -822
- package/bin/{chunk-7FHPOB4N.js → chunk-W7SSBH3S.js} +907 -822
- package/bin/git.cjs +65 -65
- package/bin/git.js +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +4 -4
package/bin/git.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
|
|
6
6
|
var TOML = require('@ltd/j-toml');
|
|
7
7
|
var commander = require('commander');
|
|
8
8
|
var prompts = require('@inquirer/prompts');
|
|
@@ -915,7 +915,7 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
915
915
|
// src/commitlint/run.ts
|
|
916
916
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
917
917
|
var runCommitLint = async (config, params) => {
|
|
918
|
-
|
|
918
|
+
chunkEBHPAULB_cjs.writeInfo(
|
|
919
919
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
920
920
|
config
|
|
921
921
|
);
|
|
@@ -923,7 +923,7 @@ var runCommitLint = async (config, params) => {
|
|
|
923
923
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
924
924
|
commitMessage = params.message;
|
|
925
925
|
} else {
|
|
926
|
-
const commitFile =
|
|
926
|
+
const commitFile = chunkEBHPAULB_cjs.joinPaths(
|
|
927
927
|
config.workspaceRoot,
|
|
928
928
|
params.file || params.message || COMMIT_EDITMSG_PATH
|
|
929
929
|
);
|
|
@@ -940,17 +940,17 @@ var runCommitLint = async (config, params) => {
|
|
|
940
940
|
if (upstreamRemote) {
|
|
941
941
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
942
942
|
if (!upstreamRemoteIdentifier) {
|
|
943
|
-
|
|
943
|
+
chunkEBHPAULB_cjs.writeWarning(
|
|
944
944
|
`No upstream remote found for ${config.name}.git. Skipping comparison.`,
|
|
945
945
|
config
|
|
946
946
|
);
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
|
-
|
|
949
|
+
chunkEBHPAULB_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
950
950
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
951
951
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
952
952
|
} else {
|
|
953
|
-
|
|
953
|
+
chunkEBHPAULB_cjs.writeWarning(
|
|
954
954
|
`No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`,
|
|
955
955
|
config
|
|
956
956
|
);
|
|
@@ -958,7 +958,7 @@ var runCommitLint = async (config, params) => {
|
|
|
958
958
|
}
|
|
959
959
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
960
960
|
if (!commitMessage) {
|
|
961
|
-
|
|
961
|
+
chunkEBHPAULB_cjs.writeWarning(
|
|
962
962
|
"No commits found. Skipping commit message validation.",
|
|
963
963
|
config
|
|
964
964
|
);
|
|
@@ -971,7 +971,7 @@ var runCommitLint = async (config, params) => {
|
|
|
971
971
|
});
|
|
972
972
|
const commitMsgRegex = `(${allowedTypes})\\((${allowedScopes})\\)!?:\\s(([a-z0-9:-s])+)`;
|
|
973
973
|
const matchCommit = new RegExp(commitMsgRegex, "g").test(commitMessage);
|
|
974
|
-
const commitlintConfig =
|
|
974
|
+
const commitlintConfig = chunkEBHPAULB_cjs.defu(
|
|
975
975
|
params.config ?? {},
|
|
976
976
|
{ rules: { "scope-enum": getRuleFromScopeEnum(allowedScopes) } },
|
|
977
977
|
DEFAULT_COMMITLINT_CONFIG
|
|
@@ -981,7 +981,7 @@ var runCommitLint = async (config, params) => {
|
|
|
981
981
|
helpUrl: commitlintConfig.helpUrl
|
|
982
982
|
});
|
|
983
983
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
984
|
-
|
|
984
|
+
chunkEBHPAULB_cjs.writeSuccess(`Commit was processing completed successfully!`, config);
|
|
985
985
|
} else {
|
|
986
986
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
987
987
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -1053,14 +1053,14 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
|
|
|
1053
1053
|
answers: {}
|
|
1054
1054
|
};
|
|
1055
1055
|
} else {
|
|
1056
|
-
|
|
1056
|
+
chunkEBHPAULB_cjs.writeInfo(`Using custom commit config file: ${commitizenFile}`, config);
|
|
1057
1057
|
let commitizenConfig = await import(commitizenFile);
|
|
1058
1058
|
if (commitizenConfig?.default) {
|
|
1059
1059
|
commitizenConfig = commitizenConfig?.default;
|
|
1060
1060
|
}
|
|
1061
1061
|
state = {
|
|
1062
1062
|
config: await resolveCommitOptions(
|
|
1063
|
-
|
|
1063
|
+
chunkEBHPAULB_cjs.defu(commitizenConfig ?? {}, DEFAULT_COMMIT_CONFIG),
|
|
1064
1064
|
config
|
|
1065
1065
|
),
|
|
1066
1066
|
root,
|
|
@@ -1116,7 +1116,7 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
|
|
|
1116
1116
|
const project = projectConfigurations.projects[scope];
|
|
1117
1117
|
if (project) {
|
|
1118
1118
|
let description = `${project.name} - ${project.root}`;
|
|
1119
|
-
const packageJsonPath =
|
|
1119
|
+
const packageJsonPath = chunkEBHPAULB_cjs.joinPaths(project.root, "package.json");
|
|
1120
1120
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1121
1121
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1122
1122
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1193,10 +1193,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
1193
1193
|
|
|
1194
1194
|
// src/commit/run.ts
|
|
1195
1195
|
var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
1196
|
-
const config = await
|
|
1196
|
+
const config = await chunkEBHPAULB_cjs.getConfig();
|
|
1197
1197
|
const state = await createState(config, commitizenFile);
|
|
1198
1198
|
if (dryRun) {
|
|
1199
|
-
|
|
1199
|
+
chunkEBHPAULB_cjs.writeInfo("Running in dry mode.", config);
|
|
1200
1200
|
}
|
|
1201
1201
|
console.log(chalkTemplate__default.default`
|
|
1202
1202
|
{bold.#999999 ----------------------------------------}
|
|
@@ -1206,7 +1206,7 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
|
|
|
1206
1206
|
`);
|
|
1207
1207
|
state.answers = await askQuestions(state);
|
|
1208
1208
|
const message = formatCommitMessage(state);
|
|
1209
|
-
const commitMsgFile =
|
|
1209
|
+
const commitMsgFile = chunkEBHPAULB_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1210
1210
|
console.log(chalkTemplate__default.default`
|
|
1211
1211
|
{bold.#999999 ----------------------------------------}
|
|
1212
1212
|
|
|
@@ -1219,11 +1219,11 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
|
|
|
1219
1219
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1220
1220
|
const command = shellescape__default.default(commandItems);
|
|
1221
1221
|
if (dryRun) {
|
|
1222
|
-
|
|
1222
|
+
chunkEBHPAULB_cjs.writeDebug(
|
|
1223
1223
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1224
1224
|
config
|
|
1225
1225
|
);
|
|
1226
|
-
|
|
1226
|
+
chunkEBHPAULB_cjs.writeDebug(`Message [dry-run]: ${message}`, config);
|
|
1227
1227
|
} else {
|
|
1228
1228
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1229
1229
|
chunkCIJVSMK2_cjs.run(config, command);
|
|
@@ -2457,7 +2457,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
2457
2457
|
};
|
|
2458
2458
|
}
|
|
2459
2459
|
async render() {
|
|
2460
|
-
this.workspaceConfig = await
|
|
2460
|
+
this.workspaceConfig = await chunkEBHPAULB_cjs.getWorkspaceConfig();
|
|
2461
2461
|
return await super.render();
|
|
2462
2462
|
}
|
|
2463
2463
|
preprocessChanges() {
|
|
@@ -2768,7 +2768,7 @@ async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release,
|
|
|
2768
2768
|
if (!shouldContinueInGitHub) {
|
|
2769
2769
|
return;
|
|
2770
2770
|
}
|
|
2771
|
-
const open =
|
|
2771
|
+
const open = chunkEBHPAULB_cjs.__require("open");
|
|
2772
2772
|
await open(result.url).then(() => {
|
|
2773
2773
|
console.info(
|
|
2774
2774
|
`
|
|
@@ -2868,7 +2868,7 @@ async function resolveTokenData(hostname) {
|
|
|
2868
2868
|
);
|
|
2869
2869
|
if (fs$1.existsSync(ghCLIPath)) {
|
|
2870
2870
|
const yamlContents = await fs$1.promises.readFile(ghCLIPath, "utf8");
|
|
2871
|
-
const { load } =
|
|
2871
|
+
const { load } = chunkEBHPAULB_cjs.__require("@zkochan/js-yaml");
|
|
2872
2872
|
const ghCLIConfig = load(yamlContents);
|
|
2873
2873
|
if (ghCLIConfig[hostname]) {
|
|
2874
2874
|
if (ghCLIConfig[hostname].oauth_token) {
|
|
@@ -2982,7 +2982,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
|
|
|
2982
2982
|
// src/release/changelog.ts
|
|
2983
2983
|
function createAPI(overrideReleaseConfig) {
|
|
2984
2984
|
return async function releaseChangelog(args) {
|
|
2985
|
-
const workspaceConfig = await
|
|
2985
|
+
const workspaceConfig = await chunkEBHPAULB_cjs.getWorkspaceConfig();
|
|
2986
2986
|
const projectGraph$1 = await projectGraph.createProjectGraphAsync({ exitOnError: true });
|
|
2987
2987
|
const nxJson$1 = nxJson.readNxJson();
|
|
2988
2988
|
const userProvidedReleaseConfig = deepMergeJson.deepMergeJson(
|
|
@@ -3683,7 +3683,7 @@ async function generateChangelogForWorkspace({
|
|
|
3683
3683
|
workspaceChangelogVersion,
|
|
3684
3684
|
changes
|
|
3685
3685
|
}) {
|
|
3686
|
-
const workspaceConfig = await
|
|
3686
|
+
const workspaceConfig = await chunkEBHPAULB_cjs.getWorkspaceConfig();
|
|
3687
3687
|
if (!workspaceConfig) {
|
|
3688
3688
|
throw new Error(
|
|
3689
3689
|
`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
|
|
@@ -3797,7 +3797,7 @@ async function generateChangelogForProjects({
|
|
|
3797
3797
|
nxReleaseConfig,
|
|
3798
3798
|
projectToAdditionalDependencyBumps
|
|
3799
3799
|
}) {
|
|
3800
|
-
const workspaceConfig = await
|
|
3800
|
+
const workspaceConfig = await chunkEBHPAULB_cjs.getWorkspaceConfig();
|
|
3801
3801
|
if (!workspaceConfig) {
|
|
3802
3802
|
throw new Error(
|
|
3803
3803
|
`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
|
|
@@ -4102,7 +4102,7 @@ var runRelease = async (config, options) => {
|
|
|
4102
4102
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
4103
4103
|
}
|
|
4104
4104
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config)) {
|
|
4105
|
-
|
|
4105
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
4106
4106
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
4107
4107
|
config
|
|
4108
4108
|
);
|
|
@@ -4119,12 +4119,12 @@ var runRelease = async (config, options) => {
|
|
|
4119
4119
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
4120
4120
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
4121
4121
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
4122
|
-
|
|
4122
|
+
chunkEBHPAULB_cjs.writeDebug("Creating workspace Project Graph data...", config);
|
|
4123
4123
|
const nxJson = nxJson_js.readNxJson();
|
|
4124
|
-
|
|
4124
|
+
chunkEBHPAULB_cjs.writeDebug("Reading in the workspaces release configuration", config);
|
|
4125
4125
|
const to = options.head || process.env.NX_HEAD;
|
|
4126
4126
|
const from = options.base || process.env.NX_BASE;
|
|
4127
|
-
|
|
4127
|
+
chunkEBHPAULB_cjs.writeDebug(
|
|
4128
4128
|
`Using the following Git SHAs to determine the release content:
|
|
4129
4129
|
- From: ${from}
|
|
4130
4130
|
- To: ${to}
|
|
@@ -4135,28 +4135,28 @@ var runRelease = async (config, options) => {
|
|
|
4135
4135
|
nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
|
|
4136
4136
|
(ret, groupName) => {
|
|
4137
4137
|
const groupConfig = nxJson.release?.groups?.[groupName];
|
|
4138
|
-
ret[groupName] =
|
|
4138
|
+
ret[groupName] = chunkEBHPAULB_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
|
|
4139
4139
|
return ret;
|
|
4140
4140
|
},
|
|
4141
4141
|
{}
|
|
4142
4142
|
);
|
|
4143
4143
|
}
|
|
4144
|
-
const nxReleaseConfig =
|
|
4144
|
+
const nxReleaseConfig = chunkEBHPAULB_cjs.defu(
|
|
4145
4145
|
nxJson.release,
|
|
4146
4146
|
DEFAULT_RELEASE_CONFIG
|
|
4147
4147
|
);
|
|
4148
|
-
|
|
4148
|
+
chunkEBHPAULB_cjs.writeInfo(
|
|
4149
4149
|
"Using the following `nx.json` release configuration values",
|
|
4150
4150
|
config
|
|
4151
4151
|
);
|
|
4152
|
-
|
|
4152
|
+
chunkEBHPAULB_cjs.writeInfo(nxReleaseConfig, config);
|
|
4153
4153
|
const releaseVersion = version_js.createAPI(nxReleaseConfig);
|
|
4154
4154
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
4155
4155
|
const releasePublish = publish_js.createAPI(nxReleaseConfig);
|
|
4156
|
-
|
|
4156
|
+
chunkEBHPAULB_cjs.writeDebug("Determining the current release versions...", config);
|
|
4157
4157
|
const { workspaceVersion, projectsVersionData } = await releaseVersion({
|
|
4158
4158
|
dryRun: false,
|
|
4159
|
-
verbose:
|
|
4159
|
+
verbose: chunkEBHPAULB_cjs.isVerbose(config.logLevel),
|
|
4160
4160
|
preid: config.preid,
|
|
4161
4161
|
deleteVersionPlans: false,
|
|
4162
4162
|
stageChanges: true,
|
|
@@ -4167,15 +4167,15 @@ var runRelease = async (config, options) => {
|
|
|
4167
4167
|
version: nxReleaseConfig?.projectsRelationship !== "fixed" ? void 0 : workspaceVersion,
|
|
4168
4168
|
versionData: projectsVersionData,
|
|
4169
4169
|
dryRun: false,
|
|
4170
|
-
verbose:
|
|
4170
|
+
verbose: chunkEBHPAULB_cjs.isVerbose(config.logLevel),
|
|
4171
4171
|
to,
|
|
4172
4172
|
from,
|
|
4173
4173
|
gitCommit: true,
|
|
4174
4174
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
4175
4175
|
});
|
|
4176
|
-
|
|
4176
|
+
chunkEBHPAULB_cjs.writeDebug("Tagging commit with git", config);
|
|
4177
4177
|
if (options.skipPublish) {
|
|
4178
|
-
|
|
4178
|
+
chunkEBHPAULB_cjs.writeWarning(
|
|
4179
4179
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
4180
4180
|
config
|
|
4181
4181
|
);
|
|
@@ -4184,7 +4184,7 @@ var runRelease = async (config, options) => {
|
|
|
4184
4184
|
(key) => projectsVersionData[key]?.newVersion
|
|
4185
4185
|
);
|
|
4186
4186
|
if (changedProjects.length > 0) {
|
|
4187
|
-
|
|
4187
|
+
chunkEBHPAULB_cjs.writeInfo(
|
|
4188
4188
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
4189
4189
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
4190
4190
|
`,
|
|
@@ -4194,7 +4194,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
4194
4194
|
const result = await releasePublish({
|
|
4195
4195
|
...options,
|
|
4196
4196
|
dryRun: !!options.dryRun,
|
|
4197
|
-
verbose:
|
|
4197
|
+
verbose: chunkEBHPAULB_cjs.isVerbose(config.logLevel)
|
|
4198
4198
|
});
|
|
4199
4199
|
const failedProjects = Object.keys(result).filter(
|
|
4200
4200
|
(key) => result[key]?.code && result[key]?.code > 0
|
|
@@ -4209,10 +4209,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
4209
4209
|
);
|
|
4210
4210
|
}
|
|
4211
4211
|
} else {
|
|
4212
|
-
|
|
4212
|
+
chunkEBHPAULB_cjs.writeWarning("Skipped publishing packages.", config);
|
|
4213
4213
|
}
|
|
4214
4214
|
}
|
|
4215
|
-
|
|
4215
|
+
chunkEBHPAULB_cjs.writeSuccess("Completed the Storm workspace release process!", config);
|
|
4216
4216
|
};
|
|
4217
4217
|
async function updatePackageManifests(projectsVersionData, config) {
|
|
4218
4218
|
let projectGraph;
|
|
@@ -4227,7 +4227,7 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
4227
4227
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
4228
4228
|
const projectNode = projectGraph.nodes[node];
|
|
4229
4229
|
if (!projectNode?.data.root) {
|
|
4230
|
-
|
|
4230
|
+
chunkEBHPAULB_cjs.writeWarning(
|
|
4231
4231
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
4232
4232
|
config
|
|
4233
4233
|
);
|
|
@@ -4235,17 +4235,17 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
const versionData = projectsVersionData[node];
|
|
4237
4237
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
4238
|
-
|
|
4238
|
+
chunkEBHPAULB_cjs.writeTrace(
|
|
4239
4239
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
4240
4240
|
`,
|
|
4241
4241
|
config
|
|
4242
4242
|
);
|
|
4243
|
-
const projectRoot =
|
|
4243
|
+
const projectRoot = chunkEBHPAULB_cjs.joinPaths(
|
|
4244
4244
|
config.workspaceRoot,
|
|
4245
4245
|
projectNode.data.root
|
|
4246
4246
|
);
|
|
4247
|
-
const packageJsonPath =
|
|
4248
|
-
const cargoTomlPath =
|
|
4247
|
+
const packageJsonPath = chunkEBHPAULB_cjs.joinPaths(projectRoot, "package.json");
|
|
4248
|
+
const cargoTomlPath = chunkEBHPAULB_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
4249
4249
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
4250
4250
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
4251
4251
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -4263,7 +4263,7 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
4263
4263
|
})
|
|
4264
4264
|
);
|
|
4265
4265
|
} else {
|
|
4266
|
-
|
|
4266
|
+
chunkEBHPAULB_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config);
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
4269
|
|
|
@@ -4271,8 +4271,8 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
4271
4271
|
var _config = {};
|
|
4272
4272
|
function createProgram(config) {
|
|
4273
4273
|
_config = config;
|
|
4274
|
-
|
|
4275
|
-
const root =
|
|
4274
|
+
chunkEBHPAULB_cjs.writeInfo("\u26A1 Running Storm Git Tools", config);
|
|
4275
|
+
const root = chunkEBHPAULB_cjs.findWorkspaceRootSafe(process.cwd());
|
|
4276
4276
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
4277
4277
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
4278
4278
|
if (root) {
|
|
@@ -4337,12 +4337,12 @@ async function commitAction({
|
|
|
4337
4337
|
dryRun = false
|
|
4338
4338
|
}) {
|
|
4339
4339
|
try {
|
|
4340
|
-
|
|
4340
|
+
chunkEBHPAULB_cjs.writeInfo(
|
|
4341
4341
|
`\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
|
|
4342
4342
|
_config
|
|
4343
4343
|
);
|
|
4344
4344
|
await runCommit(config, dryRun);
|
|
4345
|
-
|
|
4345
|
+
chunkEBHPAULB_cjs.writeSuccess(
|
|
4346
4346
|
`\u{1F389} Storm Commit processing completed successfully!
|
|
4347
4347
|
|
|
4348
4348
|
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}
|
|
@@ -4350,7 +4350,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
4350
4350
|
_config
|
|
4351
4351
|
);
|
|
4352
4352
|
} catch (error) {
|
|
4353
|
-
|
|
4353
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
4354
4354
|
`A fatal error occurred while running commit action:
|
|
4355
4355
|
|
|
4356
4356
|
${error.message}`,
|
|
@@ -4361,14 +4361,14 @@ ${error.message}`,
|
|
|
4361
4361
|
}
|
|
4362
4362
|
async function readmeAction(options) {
|
|
4363
4363
|
try {
|
|
4364
|
-
|
|
4364
|
+
chunkEBHPAULB_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
|
|
4365
4365
|
await runReadme(options);
|
|
4366
|
-
|
|
4366
|
+
chunkEBHPAULB_cjs.writeSuccess(
|
|
4367
4367
|
"Formatting of the workspace's README.md files is complete\n",
|
|
4368
4368
|
_config
|
|
4369
4369
|
);
|
|
4370
4370
|
} catch (error) {
|
|
4371
|
-
|
|
4371
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
4372
4372
|
`A fatal error occurred while running README format action:
|
|
4373
4373
|
|
|
4374
4374
|
${error.message}`
|
|
@@ -4383,7 +4383,7 @@ async function releaseAction({
|
|
|
4383
4383
|
dryRun
|
|
4384
4384
|
}) {
|
|
4385
4385
|
try {
|
|
4386
|
-
|
|
4386
|
+
chunkEBHPAULB_cjs.writeInfo(
|
|
4387
4387
|
"\u26A1 Running the Storm Release and Publish process on the workspace",
|
|
4388
4388
|
_config
|
|
4389
4389
|
);
|
|
@@ -4393,9 +4393,9 @@ async function releaseAction({
|
|
|
4393
4393
|
base,
|
|
4394
4394
|
head
|
|
4395
4395
|
});
|
|
4396
|
-
|
|
4396
|
+
chunkEBHPAULB_cjs.writeSuccess("Release completed successfully!\n", _config);
|
|
4397
4397
|
} catch (error) {
|
|
4398
|
-
|
|
4398
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
4399
4399
|
`A fatal error occurred while running release action:
|
|
4400
4400
|
|
|
4401
4401
|
${error.message} ${error.stack ? `
|
|
@@ -4413,7 +4413,7 @@ async function commitLintAction({
|
|
|
4413
4413
|
file
|
|
4414
4414
|
}) {
|
|
4415
4415
|
try {
|
|
4416
|
-
|
|
4416
|
+
chunkEBHPAULB_cjs.writeInfo(
|
|
4417
4417
|
`\u26A1 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.`,
|
|
4418
4418
|
_config
|
|
4419
4419
|
);
|
|
@@ -4422,12 +4422,12 @@ async function commitLintAction({
|
|
|
4422
4422
|
message,
|
|
4423
4423
|
file
|
|
4424
4424
|
});
|
|
4425
|
-
|
|
4425
|
+
chunkEBHPAULB_cjs.writeSuccess(
|
|
4426
4426
|
"Linting the commit messages completed successfully!\n",
|
|
4427
4427
|
_config
|
|
4428
4428
|
);
|
|
4429
4429
|
} catch (error) {
|
|
4430
|
-
|
|
4430
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
4431
4431
|
`A fatal error occurred while linting the commit messages:
|
|
4432
4432
|
|
|
4433
4433
|
${error.message}`,
|
|
@@ -4439,18 +4439,18 @@ ${error.message}`,
|
|
|
4439
4439
|
|
|
4440
4440
|
// bin/git.ts
|
|
4441
4441
|
void (async () => {
|
|
4442
|
-
const config = await
|
|
4442
|
+
const config = await chunkEBHPAULB_cjs.getConfig();
|
|
4443
4443
|
try {
|
|
4444
|
-
|
|
4444
|
+
chunkEBHPAULB_cjs.handleProcess(config);
|
|
4445
4445
|
const program = createProgram(config);
|
|
4446
4446
|
await program.parseAsync(process.argv);
|
|
4447
|
-
|
|
4447
|
+
chunkEBHPAULB_cjs.writeSuccess(
|
|
4448
4448
|
`\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
4449
4449
|
config
|
|
4450
4450
|
);
|
|
4451
|
-
|
|
4451
|
+
chunkEBHPAULB_cjs.exitWithSuccess(config);
|
|
4452
4452
|
} catch (error) {
|
|
4453
|
-
|
|
4453
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
4454
4454
|
process.exit(1);
|
|
4455
4455
|
}
|
|
4456
4456
|
})();
|
package/bin/git.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-54Q5U5WW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, joinPaths, writeDebug, defu, isVerbose, writeWarning, getWorkspaceConfig, writeTrace, __require } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, joinPaths, writeDebug, defu, isVerbose, writeWarning, getWorkspaceConfig, writeTrace, __require } from './chunk-W7SSBH3S.js';
|
|
4
4
|
import TOML from '@ltd/j-toml';
|
|
5
5
|
import { Command, Option } from 'commander';
|
|
6
6
|
import { select, confirm, input } from '@inquirer/prompts';
|
package/bin/post-checkout.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-checkout.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkEBHPAULB_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkEBHPAULB_cjs.handleProcess(config);
|
|
13
|
+
chunkEBHPAULB_cjs.writeInfo("Running post-checkout hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkEBHPAULB_cjs.writeError(
|
|
19
19
|
`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
|
|
26
|
-
|
|
26
|
+
chunkEBHPAULB_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-checkout.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-W7SSBH3S.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-checkout.ts
|
|
7
7
|
void (async () => {
|
package/bin/post-commit.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-commit.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkEBHPAULB_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkEBHPAULB_cjs.handleProcess(config);
|
|
13
|
+
chunkEBHPAULB_cjs.writeInfo("Running post-commit hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkEBHPAULB_cjs.writeError(
|
|
19
19
|
`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
|
|
26
|
-
|
|
26
|
+
chunkEBHPAULB_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-commit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-W7SSBH3S.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-commit.ts
|
|
7
7
|
void (async () => {
|
package/bin/post-merge.cjs
CHANGED
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-merge.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkEBHPAULB_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkEBHPAULB_cjs.handleProcess(config);
|
|
13
|
+
chunkEBHPAULB_cjs.writeInfo("Running post-merge hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkCIJVSMK2_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkEBHPAULB_cjs.writeError(
|
|
19
19
|
`This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.
|
|
20
20
|
Error: ${error?.message}`,
|
|
21
21
|
config
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
|
|
26
|
-
|
|
26
|
+
chunkEBHPAULB_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
})();
|
package/bin/post-merge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
3
|
import { run } from './chunk-54Q5U5WW.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-W7SSBH3S.js';
|
|
5
5
|
|
|
6
6
|
// bin/post-merge.ts
|
|
7
7
|
void (async () => {
|
package/bin/pre-commit.cjs
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEBHPAULB_cjs = require('./chunk-EBHPAULB.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-commit.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkEBHPAULB_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkEBHPAULB_cjs.handleProcess(config);
|
|
12
|
+
chunkEBHPAULB_cjs.writeInfo("Running pre-commit hook...", config);
|
|
13
13
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
|
|
14
14
|
if (chunkSWXHQXUT_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
|
|
15
|
-
|
|
15
|
+
chunkEBHPAULB_cjs.writeError(
|
|
16
16
|
"Please regenerate the package lock file before committing...",
|
|
17
17
|
config
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunkEBHPAULB_cjs.exitWithSuccess(config);
|
|
22
22
|
} catch (error) {
|
|
23
|
-
|
|
23
|
+
chunkEBHPAULB_cjs.writeFatal(
|
|
24
24
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
25
25
|
config
|
|
26
26
|
);
|
|
27
|
-
|
|
27
|
+
chunkEBHPAULB_cjs.exitWithError(config);
|
|
28
28
|
process.exit(1);
|
|
29
29
|
}
|
|
30
30
|
})();
|