@storm-software/git-tools 2.122.18 → 2.122.19
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-QAHY2CKA.cjs → chunk-G3JMIIRF.cjs} +4 -4
- package/bin/{chunk-2523777F.js → chunk-K3LWFM6S.js} +4 -4
- package/bin/git.cjs +68 -68
- 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 +5 -5
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -3753,16 +3753,16 @@ ${formatLogMessage(config2)}`,
|
|
|
3753
3753
|
};
|
|
3754
3754
|
|
|
3755
3755
|
// ../config-tools/src/get-config.ts
|
|
3756
|
-
|
|
3756
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
3757
3757
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3758
|
+
}
|
|
3759
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
3760
3760
|
let workspaceRoot = options.workspaceRoot;
|
|
3761
3761
|
if (!workspaceRoot) {
|
|
3762
3762
|
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
3763
3763
|
}
|
|
3764
3764
|
return getConfig(workspaceRoot, skipLogs);
|
|
3765
|
-
}
|
|
3765
|
+
}
|
|
3766
3766
|
|
|
3767
3767
|
exports.STORM_DEFAULT_RELEASE_BANNER = STORM_DEFAULT_RELEASE_BANNER;
|
|
3768
3768
|
exports.__require = __require;
|
|
@@ -3747,15 +3747,15 @@ ${formatLogMessage(config2)}`,
|
|
|
3747
3747
|
};
|
|
3748
3748
|
|
|
3749
3749
|
// ../config-tools/src/get-config.ts
|
|
3750
|
-
|
|
3750
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
3751
3751
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
3752
|
-
}
|
|
3753
|
-
|
|
3752
|
+
}
|
|
3753
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
3754
3754
|
let workspaceRoot = options.workspaceRoot;
|
|
3755
3755
|
if (!workspaceRoot) {
|
|
3756
3756
|
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
3757
3757
|
}
|
|
3758
3758
|
return getConfig(workspaceRoot, skipLogs);
|
|
3759
|
-
}
|
|
3759
|
+
}
|
|
3760
3760
|
|
|
3761
3761
|
export { STORM_DEFAULT_RELEASE_BANNER, __require, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
|
package/bin/git.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
6
6
|
var TOML = require('@ltd/j-toml');
|
|
7
7
|
var commander = require('commander');
|
|
8
8
|
var prompts = require('@inquirer/prompts');
|
|
@@ -402,9 +402,9 @@ function getRuleFromScopeEnum(scopeEnum) {
|
|
|
402
402
|
|
|
403
403
|
// ../conventional-changelog/src/index.ts
|
|
404
404
|
async function createPreset(variant = "monorepo") {
|
|
405
|
-
const workspaceConfig = await
|
|
405
|
+
const workspaceConfig = await chunkG3JMIIRF_cjs.getWorkspaceConfig();
|
|
406
406
|
if (variant === "minimal") {
|
|
407
|
-
return
|
|
407
|
+
return chunkG3JMIIRF_cjs.defu(
|
|
408
408
|
await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
|
|
409
409
|
{
|
|
410
410
|
...COMMIT_CONFIGS.minimal,
|
|
@@ -418,7 +418,7 @@ async function createPreset(variant = "monorepo") {
|
|
|
418
418
|
);
|
|
419
419
|
}
|
|
420
420
|
const nxScopes = await getNxScopes({ config: workspaceConfig });
|
|
421
|
-
return
|
|
421
|
+
return chunkG3JMIIRF_cjs.defu(
|
|
422
422
|
await createBasePreset__default.default({
|
|
423
423
|
...COMMIT_CONFIGS.monorepo.changelogs.props,
|
|
424
424
|
scope: nxScopes
|
|
@@ -970,7 +970,7 @@ async function lint(message, config5) {
|
|
|
970
970
|
// src/commitlint/run.ts
|
|
971
971
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
972
972
|
async function runCommitLint(workspaceConfig, options) {
|
|
973
|
-
|
|
973
|
+
chunkG3JMIIRF_cjs.writeInfo(
|
|
974
974
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
975
975
|
workspaceConfig
|
|
976
976
|
);
|
|
@@ -978,7 +978,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
978
978
|
if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
|
|
979
979
|
commitMessage = options.message;
|
|
980
980
|
} else {
|
|
981
|
-
const commitFile =
|
|
981
|
+
const commitFile = chunkG3JMIIRF_cjs.joinPaths(
|
|
982
982
|
workspaceConfig.workspaceRoot,
|
|
983
983
|
options.file || options.message || COMMIT_EDITMSG_PATH
|
|
984
984
|
);
|
|
@@ -995,17 +995,17 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
995
995
|
if (upstreamRemote) {
|
|
996
996
|
const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
|
|
997
997
|
if (!upstreamRemoteIdentifier) {
|
|
998
|
-
|
|
998
|
+
chunkG3JMIIRF_cjs.writeWarning(
|
|
999
999
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
|
|
1000
1000
|
workspaceConfig
|
|
1001
1001
|
);
|
|
1002
1002
|
return;
|
|
1003
1003
|
}
|
|
1004
|
-
|
|
1004
|
+
chunkG3JMIIRF_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
1005
1005
|
const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
|
|
1006
1006
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
1007
1007
|
} else {
|
|
1008
|
-
|
|
1008
|
+
chunkG3JMIIRF_cjs.writeWarning(
|
|
1009
1009
|
`No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
|
|
1010
1010
|
workspaceConfig
|
|
1011
1011
|
);
|
|
@@ -1013,7 +1013,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
|
|
1015
1015
|
if (!commitMessage) {
|
|
1016
|
-
|
|
1016
|
+
chunkG3JMIIRF_cjs.writeWarning(
|
|
1017
1017
|
"No commits found. Skipping commit message validation.",
|
|
1018
1018
|
workspaceConfig
|
|
1019
1019
|
);
|
|
@@ -1023,7 +1023,7 @@ async function runCommitLint(workspaceConfig, options) {
|
|
|
1023
1023
|
const preset = await createPreset(workspaceConfig.variant);
|
|
1024
1024
|
const report = await lint(commitMessage, preset);
|
|
1025
1025
|
if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
|
|
1026
|
-
|
|
1026
|
+
chunkG3JMIIRF_cjs.writeSuccess(
|
|
1027
1027
|
`Commit was processing completed successfully!`,
|
|
1028
1028
|
workspaceConfig
|
|
1029
1029
|
);
|
|
@@ -1235,7 +1235,7 @@ async function createState(workspaceConfig, configPath) {
|
|
|
1235
1235
|
const project = projectConfigurations.projects[scope];
|
|
1236
1236
|
if (project) {
|
|
1237
1237
|
let description = `${project.name} - ${project.root}`;
|
|
1238
|
-
const packageJsonPath =
|
|
1238
|
+
const packageJsonPath = chunkG3JMIIRF_cjs.joinPaths(project.root, "package.json");
|
|
1239
1239
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
1240
1240
|
const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
|
|
1241
1241
|
const packageJson = JSON.parse(packageJsonFile);
|
|
@@ -1309,10 +1309,10 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
|
|
|
1309
1309
|
|
|
1310
1310
|
// src/commit/run.ts
|
|
1311
1311
|
async function runCommit(commitizenFile, dryRun = false) {
|
|
1312
|
-
const workspaceConfig = await
|
|
1312
|
+
const workspaceConfig = await chunkG3JMIIRF_cjs.getWorkspaceConfig();
|
|
1313
1313
|
const state = await createState(workspaceConfig);
|
|
1314
1314
|
if (dryRun) {
|
|
1315
|
-
|
|
1315
|
+
chunkG3JMIIRF_cjs.writeInfo("Running in dry mode.", workspaceConfig);
|
|
1316
1316
|
}
|
|
1317
1317
|
console.log(chalkTemplate__default.default`
|
|
1318
1318
|
{bold.#999999 ----------------------------------------}
|
|
@@ -1322,7 +1322,7 @@ async function runCommit(commitizenFile, dryRun = false) {
|
|
|
1322
1322
|
`);
|
|
1323
1323
|
state.answers = await askQuestions(state);
|
|
1324
1324
|
const message = formatCommitMessage(state, workspaceConfig);
|
|
1325
|
-
const commitMsgFile =
|
|
1325
|
+
const commitMsgFile = chunkG3JMIIRF_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
|
|
1326
1326
|
console.log(chalkTemplate__default.default`
|
|
1327
1327
|
{bold.#999999 ----------------------------------------}
|
|
1328
1328
|
|
|
@@ -1335,11 +1335,11 @@ async function runCommit(commitizenFile, dryRun = false) {
|
|
|
1335
1335
|
commandItems.push(...["--file", commitMsgFile]);
|
|
1336
1336
|
const command = shellescape__default.default(commandItems);
|
|
1337
1337
|
if (dryRun) {
|
|
1338
|
-
|
|
1338
|
+
chunkG3JMIIRF_cjs.writeDebug(
|
|
1339
1339
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
1340
1340
|
workspaceConfig
|
|
1341
1341
|
);
|
|
1342
|
-
|
|
1342
|
+
chunkG3JMIIRF_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
|
|
1343
1343
|
} else {
|
|
1344
1344
|
await fs__default.default.writeFile(commitMsgFile, message);
|
|
1345
1345
|
chunkL64XVBGM_cjs.run(workspaceConfig, command);
|
|
@@ -2371,7 +2371,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
|
|
|
2371
2371
|
const header = await prettier.format(
|
|
2372
2372
|
` : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkG3JMIIRF_cjs.STORM_DEFAULT_RELEASE_BANNER})
|
|
2375
2375
|
|
|
2376
2376
|
# Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
|
|
2377
2377
|
|
|
@@ -2610,7 +2610,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
|
|
|
2610
2610
|
};
|
|
2611
2611
|
}
|
|
2612
2612
|
async render() {
|
|
2613
|
-
this.workspaceConfig = await
|
|
2613
|
+
this.workspaceConfig = await chunkG3JMIIRF_cjs.getWorkspaceConfig();
|
|
2614
2614
|
return await super.render();
|
|
2615
2615
|
}
|
|
2616
2616
|
preprocessChanges() {
|
|
@@ -2921,7 +2921,7 @@ async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release,
|
|
|
2921
2921
|
if (!shouldContinueInGitHub) {
|
|
2922
2922
|
return;
|
|
2923
2923
|
}
|
|
2924
|
-
const open =
|
|
2924
|
+
const open = chunkG3JMIIRF_cjs.__require("open");
|
|
2925
2925
|
await open(result.url).then(() => {
|
|
2926
2926
|
console.info(
|
|
2927
2927
|
`
|
|
@@ -3147,7 +3147,7 @@ async function isUserAnOrganizationMember(userId, config5, remoteName = "origin"
|
|
|
3147
3147
|
// src/release/changelog.ts
|
|
3148
3148
|
function createAPI(overrideReleaseConfig) {
|
|
3149
3149
|
return async function releaseChangelog(args) {
|
|
3150
|
-
const workspaceConfig = await
|
|
3150
|
+
const workspaceConfig = await chunkG3JMIIRF_cjs.getWorkspaceConfig();
|
|
3151
3151
|
const projectGraph$1 = await projectGraph.createProjectGraphAsync({ exitOnError: true });
|
|
3152
3152
|
const nxJson$1 = nxJson.readNxJson();
|
|
3153
3153
|
const userProvidedReleaseConfig = deepMergeJson.deepMergeJson(
|
|
@@ -3808,7 +3808,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
3808
3808
|
});
|
|
3809
3809
|
latestCommit = await git.getCommitHash("HEAD");
|
|
3810
3810
|
} else if ((args.stageChanges ?? nxReleaseConfig.changelog?.git.stageChanges) && changes.length) {
|
|
3811
|
-
|
|
3811
|
+
chunkG3JMIIRF_cjs.writeDebug(`Staging changed files with git`);
|
|
3812
3812
|
await git.gitAdd({
|
|
3813
3813
|
changedFiles,
|
|
3814
3814
|
deletedFiles,
|
|
@@ -3817,7 +3817,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
3817
3817
|
});
|
|
3818
3818
|
}
|
|
3819
3819
|
if (args.gitTag ?? nxReleaseConfig.changelog?.git.tag) {
|
|
3820
|
-
|
|
3820
|
+
chunkG3JMIIRF_cjs.writeDebug(`Tagging commit with git`);
|
|
3821
3821
|
for (const tag of gitTagValues) {
|
|
3822
3822
|
await gitTag({
|
|
3823
3823
|
tag,
|
|
@@ -3829,7 +3829,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
3831
|
if (args.gitPush ?? nxReleaseConfig.changelog?.git.push) {
|
|
3832
|
-
|
|
3832
|
+
chunkG3JMIIRF_cjs.writeDebug(`Pushing to git remote "${args.gitRemote}"`);
|
|
3833
3833
|
await git.gitPush({
|
|
3834
3834
|
gitRemote: args.gitRemote,
|
|
3835
3835
|
dryRun: args.dryRun,
|
|
@@ -3848,7 +3848,7 @@ async function generateChangelogForWorkspace({
|
|
|
3848
3848
|
workspaceChangelogVersion,
|
|
3849
3849
|
changes
|
|
3850
3850
|
}) {
|
|
3851
|
-
const workspaceConfig = await
|
|
3851
|
+
const workspaceConfig = await chunkG3JMIIRF_cjs.getWorkspaceConfig();
|
|
3852
3852
|
if (!workspaceConfig) {
|
|
3853
3853
|
throw new Error(
|
|
3854
3854
|
`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
|
|
@@ -3962,7 +3962,7 @@ async function generateChangelogForProjects({
|
|
|
3962
3962
|
nxReleaseConfig,
|
|
3963
3963
|
projectToAdditionalDependencyBumps
|
|
3964
3964
|
}) {
|
|
3965
|
-
const workspaceConfig = await
|
|
3965
|
+
const workspaceConfig = await chunkG3JMIIRF_cjs.getWorkspaceConfig();
|
|
3966
3966
|
if (!workspaceConfig) {
|
|
3967
3967
|
throw new Error(
|
|
3968
3968
|
`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
|
|
@@ -4267,7 +4267,7 @@ var runRelease = async (config5, options) => {
|
|
|
4267
4267
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
4268
4268
|
}
|
|
4269
4269
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
|
|
4270
|
-
|
|
4270
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
4271
4271
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
4272
4272
|
config5
|
|
4273
4273
|
);
|
|
@@ -4284,12 +4284,12 @@ var runRelease = async (config5, options) => {
|
|
|
4284
4284
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
4285
4285
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
4286
4286
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
4287
|
-
|
|
4287
|
+
chunkG3JMIIRF_cjs.writeDebug("Creating workspace Project Graph data...", config5);
|
|
4288
4288
|
const nxJson = nxJson_js.readNxJson();
|
|
4289
|
-
|
|
4289
|
+
chunkG3JMIIRF_cjs.writeDebug("Reading in the workspaces release configuration", config5);
|
|
4290
4290
|
const to = options.head || process.env.NX_HEAD;
|
|
4291
4291
|
const from = options.base || process.env.NX_BASE;
|
|
4292
|
-
|
|
4292
|
+
chunkG3JMIIRF_cjs.writeDebug(
|
|
4293
4293
|
`Using the following Git SHAs to determine the release content:
|
|
4294
4294
|
- From: ${from}
|
|
4295
4295
|
- To: ${to}
|
|
@@ -4300,28 +4300,28 @@ var runRelease = async (config5, options) => {
|
|
|
4300
4300
|
nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
|
|
4301
4301
|
(ret, groupName) => {
|
|
4302
4302
|
const groupConfig = nxJson.release?.groups?.[groupName];
|
|
4303
|
-
ret[groupName] =
|
|
4303
|
+
ret[groupName] = chunkG3JMIIRF_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
|
|
4304
4304
|
return ret;
|
|
4305
4305
|
},
|
|
4306
4306
|
{}
|
|
4307
4307
|
);
|
|
4308
4308
|
}
|
|
4309
|
-
const nxReleaseConfig =
|
|
4309
|
+
const nxReleaseConfig = chunkG3JMIIRF_cjs.defu(
|
|
4310
4310
|
nxJson.release,
|
|
4311
4311
|
DEFAULT_RELEASE_CONFIG
|
|
4312
4312
|
);
|
|
4313
|
-
|
|
4313
|
+
chunkG3JMIIRF_cjs.writeInfo(
|
|
4314
4314
|
"Using the following `nx.json` release configuration values",
|
|
4315
4315
|
config5
|
|
4316
4316
|
);
|
|
4317
|
-
|
|
4317
|
+
chunkG3JMIIRF_cjs.writeInfo(nxReleaseConfig, config5);
|
|
4318
4318
|
const releaseVersion = version_js.createAPI(nxReleaseConfig);
|
|
4319
4319
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
4320
4320
|
const releasePublish = publish_js.createAPI(nxReleaseConfig);
|
|
4321
|
-
|
|
4321
|
+
chunkG3JMIIRF_cjs.writeDebug("Determining the current release versions...", config5);
|
|
4322
4322
|
const { workspaceVersion, projectsVersionData } = await releaseVersion({
|
|
4323
4323
|
dryRun: false,
|
|
4324
|
-
verbose:
|
|
4324
|
+
verbose: chunkG3JMIIRF_cjs.isVerbose(config5.logLevel),
|
|
4325
4325
|
preid: config5.preid,
|
|
4326
4326
|
deleteVersionPlans: false,
|
|
4327
4327
|
stageChanges: true,
|
|
@@ -4332,15 +4332,15 @@ var runRelease = async (config5, options) => {
|
|
|
4332
4332
|
version: nxReleaseConfig?.projectsRelationship !== "fixed" ? void 0 : workspaceVersion,
|
|
4333
4333
|
versionData: projectsVersionData,
|
|
4334
4334
|
dryRun: false,
|
|
4335
|
-
verbose:
|
|
4335
|
+
verbose: chunkG3JMIIRF_cjs.isVerbose(config5.logLevel),
|
|
4336
4336
|
to,
|
|
4337
4337
|
from,
|
|
4338
4338
|
gitCommit: true,
|
|
4339
4339
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
4340
4340
|
});
|
|
4341
|
-
|
|
4341
|
+
chunkG3JMIIRF_cjs.writeDebug("Tagging commit with git", config5);
|
|
4342
4342
|
if (options.skipPublish) {
|
|
4343
|
-
|
|
4343
|
+
chunkG3JMIIRF_cjs.writeWarning(
|
|
4344
4344
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
4345
4345
|
config5
|
|
4346
4346
|
);
|
|
@@ -4349,7 +4349,7 @@ var runRelease = async (config5, options) => {
|
|
|
4349
4349
|
(key) => projectsVersionData[key]?.newVersion
|
|
4350
4350
|
);
|
|
4351
4351
|
if (changedProjects.length > 0) {
|
|
4352
|
-
|
|
4352
|
+
chunkG3JMIIRF_cjs.writeInfo(
|
|
4353
4353
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
4354
4354
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
4355
4355
|
`,
|
|
@@ -4359,7 +4359,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
4359
4359
|
const result = await releasePublish({
|
|
4360
4360
|
...options,
|
|
4361
4361
|
dryRun: !!options.dryRun,
|
|
4362
|
-
verbose:
|
|
4362
|
+
verbose: chunkG3JMIIRF_cjs.isVerbose(config5.logLevel)
|
|
4363
4363
|
});
|
|
4364
4364
|
const failedProjects = Object.keys(result).filter(
|
|
4365
4365
|
(key) => result[key]?.code && result[key]?.code > 0
|
|
@@ -4374,10 +4374,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
|
|
|
4374
4374
|
);
|
|
4375
4375
|
}
|
|
4376
4376
|
} else {
|
|
4377
|
-
|
|
4377
|
+
chunkG3JMIIRF_cjs.writeWarning("Skipped publishing packages.", config5);
|
|
4378
4378
|
}
|
|
4379
4379
|
}
|
|
4380
|
-
|
|
4380
|
+
chunkG3JMIIRF_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
|
|
4381
4381
|
};
|
|
4382
4382
|
async function updatePackageManifests(projectsVersionData, config5) {
|
|
4383
4383
|
let projectGraph;
|
|
@@ -4392,7 +4392,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
4392
4392
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
4393
4393
|
const projectNode = projectGraph.nodes[node];
|
|
4394
4394
|
if (!projectNode?.data.root) {
|
|
4395
|
-
|
|
4395
|
+
chunkG3JMIIRF_cjs.writeWarning(
|
|
4396
4396
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
4397
4397
|
config5
|
|
4398
4398
|
);
|
|
@@ -4400,17 +4400,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
const versionData = projectsVersionData[node];
|
|
4402
4402
|
if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
|
|
4403
|
-
|
|
4403
|
+
chunkG3JMIIRF_cjs.writeTrace(
|
|
4404
4404
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
4405
4405
|
`,
|
|
4406
4406
|
config5
|
|
4407
4407
|
);
|
|
4408
|
-
const projectRoot =
|
|
4408
|
+
const projectRoot = chunkG3JMIIRF_cjs.joinPaths(
|
|
4409
4409
|
config5.workspaceRoot,
|
|
4410
4410
|
projectNode.data.root
|
|
4411
4411
|
);
|
|
4412
|
-
const packageJsonPath =
|
|
4413
|
-
const cargoTomlPath =
|
|
4412
|
+
const packageJsonPath = chunkG3JMIIRF_cjs.joinPaths(projectRoot, "package.json");
|
|
4413
|
+
const cargoTomlPath = chunkG3JMIIRF_cjs.joinPaths(projectRoot, "Cargo.toml");
|
|
4414
4414
|
if (fs$1.existsSync(packageJsonPath)) {
|
|
4415
4415
|
const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
|
|
4416
4416
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -4428,7 +4428,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
4428
4428
|
})
|
|
4429
4429
|
);
|
|
4430
4430
|
} else {
|
|
4431
|
-
|
|
4431
|
+
chunkG3JMIIRF_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
|
|
4432
4432
|
}
|
|
4433
4433
|
}
|
|
4434
4434
|
|
|
@@ -4436,8 +4436,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
|
|
|
4436
4436
|
var _config = {};
|
|
4437
4437
|
function createProgram(config5) {
|
|
4438
4438
|
_config = config5;
|
|
4439
|
-
|
|
4440
|
-
const root =
|
|
4439
|
+
chunkG3JMIIRF_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
|
|
4440
|
+
const root = chunkG3JMIIRF_cjs.findWorkspaceRootSafe(process.cwd());
|
|
4441
4441
|
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
4442
4442
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
4443
4443
|
if (root) {
|
|
@@ -4506,12 +4506,12 @@ async function commitAction({
|
|
|
4506
4506
|
dryRun = false
|
|
4507
4507
|
}) {
|
|
4508
4508
|
try {
|
|
4509
|
-
|
|
4509
|
+
chunkG3JMIIRF_cjs.writeInfo(
|
|
4510
4510
|
`\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
|
|
4511
4511
|
_config
|
|
4512
4512
|
);
|
|
4513
4513
|
await runCommit(config5, dryRun);
|
|
4514
|
-
|
|
4514
|
+
chunkG3JMIIRF_cjs.writeSuccess(
|
|
4515
4515
|
`\u{1F389} Storm Commit processing completed successfully!
|
|
4516
4516
|
|
|
4517
4517
|
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}
|
|
@@ -4519,7 +4519,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
4519
4519
|
_config
|
|
4520
4520
|
);
|
|
4521
4521
|
} catch (error) {
|
|
4522
|
-
|
|
4522
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
4523
4523
|
`A fatal error occurred while running commit action:
|
|
4524
4524
|
|
|
4525
4525
|
${error.message}${error.stack ? `
|
|
@@ -4534,14 +4534,14 @@ Please fix any errors and try committing again.`,
|
|
|
4534
4534
|
}
|
|
4535
4535
|
async function readmeAction(options) {
|
|
4536
4536
|
try {
|
|
4537
|
-
|
|
4537
|
+
chunkG3JMIIRF_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
|
|
4538
4538
|
await runReadme(options);
|
|
4539
|
-
|
|
4539
|
+
chunkG3JMIIRF_cjs.writeSuccess(
|
|
4540
4540
|
"Formatting of the workspace's README.md files is complete\n",
|
|
4541
4541
|
_config
|
|
4542
4542
|
);
|
|
4543
4543
|
} catch (error) {
|
|
4544
|
-
|
|
4544
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
4545
4545
|
`A fatal error occurred while running README format action:
|
|
4546
4546
|
|
|
4547
4547
|
${error.message}`
|
|
@@ -4556,7 +4556,7 @@ async function releaseAction({
|
|
|
4556
4556
|
dryRun
|
|
4557
4557
|
}) {
|
|
4558
4558
|
try {
|
|
4559
|
-
|
|
4559
|
+
chunkG3JMIIRF_cjs.writeInfo(
|
|
4560
4560
|
"\u26A1 Running the Storm Release and Publish process on the workspace",
|
|
4561
4561
|
_config
|
|
4562
4562
|
);
|
|
@@ -4566,9 +4566,9 @@ async function releaseAction({
|
|
|
4566
4566
|
base,
|
|
4567
4567
|
head
|
|
4568
4568
|
});
|
|
4569
|
-
|
|
4569
|
+
chunkG3JMIIRF_cjs.writeSuccess("Release completed successfully!\n", _config);
|
|
4570
4570
|
} catch (error) {
|
|
4571
|
-
|
|
4571
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
4572
4572
|
`A fatal error occurred while running release action:
|
|
4573
4573
|
|
|
4574
4574
|
${error.message} ${error.stack ? `
|
|
@@ -4582,17 +4582,17 @@ Stacktrace: ${error.stack}` : ""}`,
|
|
|
4582
4582
|
}
|
|
4583
4583
|
async function commitLintAction(options) {
|
|
4584
4584
|
try {
|
|
4585
|
-
|
|
4585
|
+
chunkG3JMIIRF_cjs.writeInfo(
|
|
4586
4586
|
`\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.`,
|
|
4587
4587
|
_config
|
|
4588
4588
|
);
|
|
4589
4589
|
await runCommitLint(_config, options);
|
|
4590
|
-
|
|
4590
|
+
chunkG3JMIIRF_cjs.writeSuccess(
|
|
4591
4591
|
"Linting the commit messages completed successfully!\n",
|
|
4592
4592
|
_config
|
|
4593
4593
|
);
|
|
4594
4594
|
} catch (error) {
|
|
4595
|
-
|
|
4595
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
4596
4596
|
`A fatal error occurred while linting the commit messages:
|
|
4597
4597
|
|
|
4598
4598
|
${error.message}`,
|
|
@@ -4604,18 +4604,18 @@ ${error.message}`,
|
|
|
4604
4604
|
|
|
4605
4605
|
// bin/git.ts
|
|
4606
4606
|
void (async () => {
|
|
4607
|
-
const config5 = await
|
|
4607
|
+
const config5 = await chunkG3JMIIRF_cjs.getConfig();
|
|
4608
4608
|
try {
|
|
4609
|
-
|
|
4609
|
+
chunkG3JMIIRF_cjs.handleProcess(config5);
|
|
4610
4610
|
const program = createProgram(config5);
|
|
4611
4611
|
await program.parseAsync(process.argv);
|
|
4612
|
-
|
|
4612
|
+
chunkG3JMIIRF_cjs.writeSuccess(
|
|
4613
4613
|
`\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
4614
4614
|
config5
|
|
4615
4615
|
);
|
|
4616
|
-
|
|
4616
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config5);
|
|
4617
4617
|
} catch (error) {
|
|
4618
|
-
|
|
4618
|
+
chunkG3JMIIRF_cjs.exitWithError(config5);
|
|
4619
4619
|
process.exit(1);
|
|
4620
4620
|
}
|
|
4621
4621
|
})();
|
package/bin/git.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-S5PS23TL.js';
|
|
3
|
-
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-K3LWFM6S.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 chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-checkout.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
13
|
+
chunkG3JMIIRF_cjs.writeInfo("Running post-checkout hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkL64XVBGM_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkG3JMIIRF_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
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkL64XVBGM_cjs.run(config, "git lfs post-checkout");
|
|
26
|
-
|
|
26
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkG3JMIIRF_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-S5PS23TL.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-K3LWFM6S.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 chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-commit.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
13
|
+
chunkG3JMIIRF_cjs.writeInfo("Running post-commit hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkL64XVBGM_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkG3JMIIRF_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
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkL64XVBGM_cjs.run(config, "git lfs post-commit");
|
|
26
|
-
|
|
26
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkG3JMIIRF_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-S5PS23TL.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-K3LWFM6S.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 chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
7
7
|
|
|
8
8
|
// bin/post-merge.ts
|
|
9
9
|
void (async () => {
|
|
10
|
-
const config = await
|
|
10
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
11
11
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
13
|
+
chunkG3JMIIRF_cjs.writeInfo("Running post-merge hook...", config);
|
|
14
14
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
15
15
|
try {
|
|
16
16
|
chunkL64XVBGM_cjs.run(config, "git-lfs version");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkG3JMIIRF_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
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
24
24
|
}
|
|
25
25
|
chunkL64XVBGM_cjs.run(config, "git lfs post-merge");
|
|
26
|
-
|
|
26
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
27
27
|
} catch (error) {
|
|
28
|
-
|
|
28
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
29
29
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
30
30
|
config
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
chunkG3JMIIRF_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-S5PS23TL.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-K3LWFM6S.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 chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-commit.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
12
|
+
chunkG3JMIIRF_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
|
+
chunkG3JMIIRF_cjs.writeError(
|
|
16
16
|
"Please regenerate the package lock file before committing...",
|
|
17
17
|
config
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
22
22
|
} catch (error) {
|
|
23
|
-
|
|
23
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
24
24
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
25
25
|
config
|
|
26
26
|
);
|
|
27
|
-
|
|
27
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
28
28
|
process.exit(1);
|
|
29
29
|
}
|
|
30
30
|
})();
|
package/bin/pre-commit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion, isPackageVersionChanged } from './chunk-AMSZ7DVW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-K3LWFM6S.js';
|
|
4
4
|
|
|
5
5
|
// bin/pre-commit.ts
|
|
6
6
|
void (async () => {
|
package/bin/pre-install.cjs
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/pre-install.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
12
|
+
chunkG3JMIIRF_cjs.writeInfo("Running pre-install hook...", config);
|
|
13
13
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
chunkG3JMIIRF_cjs.writeInfo("Skipping pre-install for CI process...", config);
|
|
15
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
16
16
|
}
|
|
17
17
|
chunkL64XVBGM_cjs.run(config, "npx -y only-allow pnpm");
|
|
18
|
-
|
|
18
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
21
21
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
22
22
|
config
|
|
23
23
|
);
|
|
24
|
-
|
|
24
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
})();
|
package/bin/pre-install.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-S5PS23TL.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-K3LWFM6S.js';
|
|
4
4
|
|
|
5
5
|
// bin/pre-install.ts
|
|
6
6
|
void (async () => {
|
package/bin/pre-push.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
5
|
var chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
var promises = require('fs/promises');
|
|
9
9
|
var path = require('path');
|
|
@@ -14,12 +14,12 @@ var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
|
14
14
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
15
15
|
|
|
16
16
|
void (async () => {
|
|
17
|
-
const config = await
|
|
17
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
18
18
|
try {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
20
|
+
chunkG3JMIIRF_cjs.writeInfo("Running pre-push hook...", config);
|
|
21
21
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
|
|
22
|
-
|
|
22
|
+
chunkG3JMIIRF_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
23
23
|
const errors = [];
|
|
24
24
|
if (fs__default.default.existsSync(
|
|
25
25
|
path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json")
|
|
@@ -54,32 +54,32 @@ void (async () => {
|
|
|
54
54
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
55
55
|
}
|
|
56
56
|
if (errors.length > 0) {
|
|
57
|
-
|
|
57
|
+
chunkG3JMIIRF_cjs.writeError("\u274C Lock file validation failed", config);
|
|
58
58
|
for (const error of errors) {
|
|
59
59
|
console.error(error);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
chunkG3JMIIRF_cjs.writeSuccess("Lock file is valid \u2705", config);
|
|
64
64
|
chunkL64XVBGM_cjs.run(config, "git lfs pre-push origin");
|
|
65
65
|
try {
|
|
66
66
|
chunkL64XVBGM_cjs.run(config, "git-lfs version");
|
|
67
67
|
} catch (error) {
|
|
68
|
-
|
|
68
|
+
chunkG3JMIIRF_cjs.writeError(
|
|
69
69
|
`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/pre-push.
|
|
70
70
|
Error: ${error?.message}`,
|
|
71
71
|
config
|
|
72
72
|
);
|
|
73
|
-
|
|
73
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
74
74
|
}
|
|
75
75
|
chunkL64XVBGM_cjs.run(config, "git lfs pre-push origin");
|
|
76
|
-
|
|
76
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
77
77
|
} catch (error) {
|
|
78
|
-
|
|
78
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
79
79
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
80
80
|
config
|
|
81
81
|
);
|
|
82
|
-
|
|
82
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
83
83
|
process.exit(1);
|
|
84
84
|
}
|
|
85
85
|
})();
|
package/bin/pre-push.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-S5PS23TL.js';
|
|
4
|
-
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-
|
|
4
|
+
import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-K3LWFM6S.js';
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import { readFile } from 'node:fs/promises';
|
|
7
7
|
import path from 'node:path';
|
package/bin/prepare.cjs
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkL64XVBGM_cjs = require('./chunk-L64XVBGM.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/prepare.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
12
|
+
chunkG3JMIIRF_cjs.writeInfo("Running prepare hook...", config);
|
|
13
13
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
14
14
|
chunkL64XVBGM_cjs.run(config, "lefthook install");
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
chunkG3JMIIRF_cjs.exitWithSuccess(config);
|
|
17
17
|
} catch (error) {
|
|
18
|
-
|
|
18
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
19
19
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
25
|
})();
|
package/bin/prepare.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { run } from './chunk-S5PS23TL.js';
|
|
3
|
-
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-K3LWFM6S.js';
|
|
4
4
|
|
|
5
5
|
// bin/prepare.ts
|
|
6
6
|
void (async () => {
|
package/bin/version-warning.cjs
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkG3JMIIRF_cjs = require('./chunk-G3JMIIRF.cjs');
|
|
6
6
|
|
|
7
7
|
// bin/version-warning.ts
|
|
8
8
|
void (async () => {
|
|
9
|
-
const config = await
|
|
9
|
+
const config = await chunkG3JMIIRF_cjs.getConfig();
|
|
10
10
|
try {
|
|
11
|
-
|
|
11
|
+
chunkG3JMIIRF_cjs.handleProcess(config);
|
|
12
12
|
chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
|
|
13
13
|
} catch (error) {
|
|
14
|
-
|
|
14
|
+
chunkG3JMIIRF_cjs.writeFatal(
|
|
15
15
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
16
16
|
config
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
chunkG3JMIIRF_cjs.exitWithError(config);
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
})();
|
package/bin/version-warning.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
|
|
3
|
-
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-
|
|
3
|
+
import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-K3LWFM6S.js';
|
|
4
4
|
|
|
5
5
|
// bin/version-warning.ts
|
|
6
6
|
void (async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.122.
|
|
3
|
+
"version": "2.122.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tools for managing Git repositories within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"@inquirer/prompts": "7.2.1",
|
|
186
186
|
"@nx/devkit": "^21.4.1",
|
|
187
187
|
"@nx/js": "^21.4.1",
|
|
188
|
-
"@storm-software/config": "^1.133.
|
|
189
|
-
"@storm-software/config-tools": "^1.187.
|
|
188
|
+
"@storm-software/config": "^1.133.9",
|
|
189
|
+
"@storm-software/config-tools": "^1.187.14",
|
|
190
190
|
"@textlint/ast-node-types": "14.4.2",
|
|
191
191
|
"@textlint/markdown-to-ast": "14.4.2",
|
|
192
192
|
"anchor-markdown-header": "0.7.0",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"axios": "1.8.2",
|
|
195
195
|
"chalk": "^4.1.2",
|
|
196
196
|
"chalk-template": "1.1.0",
|
|
197
|
-
"conventional-changelog-storm-software": "^0.2.
|
|
197
|
+
"conventional-changelog-storm-software": "^0.2.19",
|
|
198
198
|
"htmlparser2": "10.0.0",
|
|
199
199
|
"jsonc-parser": "3.2.1",
|
|
200
200
|
"nx": "^21.4.1",
|
|
@@ -216,5 +216,5 @@
|
|
|
216
216
|
"tsup": "8.4.0"
|
|
217
217
|
},
|
|
218
218
|
"publishConfig": { "access": "public" },
|
|
219
|
-
"gitHead": "
|
|
219
|
+
"gitHead": "58633be531c801032daa1cb3ed2bbace2fb30dd9"
|
|
220
220
|
}
|