@storm-software/git-tools 2.89.15 → 2.89.16
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-6LPSSJ6A.cjs → chunk-DEGLIS62.cjs} +158 -55
- package/bin/{chunk-4NEXKJH5.js → chunk-OLYGBFVX.js} +163 -60
- package/bin/git.cjs +69 -69
- 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 +1 -1
package/bin/git.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkJMRHG3KScjs = require('./chunk-JMRHG3KS.cjs');
|
|
@@ -3265,7 +3265,7 @@ var require_wrap_ansi = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
|
|
|
3265
3265
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
3266
3266
|
var stringWidth = require_string_width();
|
|
3267
3267
|
var stripAnsi2 = require_strip_ansi();
|
|
3268
|
-
var ansiStyles2 =
|
|
3268
|
+
var ansiStyles2 = _chunkDEGLIS62cjs.require_ansi_styles.call(void 0, );
|
|
3269
3269
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3270
3270
|
"\x1B",
|
|
3271
3271
|
"\x9B"
|
|
@@ -15607,7 +15607,7 @@ var require_node = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
|
|
|
15607
15607
|
1
|
|
15608
15608
|
];
|
|
15609
15609
|
try {
|
|
15610
|
-
const supportsColor2 =
|
|
15610
|
+
const supportsColor2 = _chunkDEGLIS62cjs.require_supports_color.call(void 0, );
|
|
15611
15611
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15612
15612
|
exports.colors = [
|
|
15613
15613
|
20,
|
|
@@ -50459,12 +50459,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0,
|
|
|
50459
50459
|
// src/commitlint/run.ts
|
|
50460
50460
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
50461
50461
|
var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (config, params) => {
|
|
50462
|
-
|
|
50462
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
50463
50463
|
let commitMessage;
|
|
50464
50464
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
50465
50465
|
commitMessage = params.message;
|
|
50466
50466
|
} else {
|
|
50467
|
-
const commitFile =
|
|
50467
|
+
const commitFile = _chunkDEGLIS62cjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
50468
50468
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
50469
50469
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _80 => _80.trim, 'call', async _81 => _81()]);
|
|
50470
50470
|
}
|
|
@@ -50476,19 +50476,19 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
|
|
|
50476
50476
|
if (upstreamRemote) {
|
|
50477
50477
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _82 => _82.split, 'call', _83 => _83(" "), 'access', _84 => _84[0], 'optionalAccess', _85 => _85.trim, 'call', _86 => _86()]);
|
|
50478
50478
|
if (!upstreamRemoteIdentifier) {
|
|
50479
|
-
|
|
50479
|
+
_chunkDEGLIS62cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
50480
50480
|
return;
|
|
50481
50481
|
}
|
|
50482
|
-
|
|
50482
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
50483
50483
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
50484
50484
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
50485
50485
|
} else {
|
|
50486
|
-
|
|
50486
|
+
_chunkDEGLIS62cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
50487
50487
|
return;
|
|
50488
50488
|
}
|
|
50489
50489
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
50490
50490
|
if (!commitMessage) {
|
|
50491
|
-
|
|
50491
|
+
_chunkDEGLIS62cjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
50492
50492
|
return;
|
|
50493
50493
|
}
|
|
50494
50494
|
}
|
|
@@ -50506,7 +50506,7 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
|
|
|
50506
50506
|
helpUrl: commitlintConfig.helpUrl
|
|
50507
50507
|
});
|
|
50508
50508
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
50509
|
-
|
|
50509
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
50510
50510
|
} else {
|
|
50511
50511
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
50512
50512
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -51700,7 +51700,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
|
|
|
51700
51700
|
answers: {}
|
|
51701
51701
|
};
|
|
51702
51702
|
} else {
|
|
51703
|
-
|
|
51703
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
51704
51704
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
51705
51705
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _92 => _92.default])) {
|
|
51706
51706
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default]);
|
|
@@ -51741,7 +51741,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
|
|
|
51741
51741
|
}
|
|
51742
51742
|
if (project) {
|
|
51743
51743
|
let description = `${project.name} - ${project.root}`;
|
|
51744
|
-
const packageJsonPath =
|
|
51744
|
+
const packageJsonPath = _chunkDEGLIS62cjs.joinPaths.call(void 0, project.root, "package.json");
|
|
51745
51745
|
if (await hfs.isFile(packageJsonPath)) {
|
|
51746
51746
|
const packageJson = await hfs.json(packageJsonPath);
|
|
51747
51747
|
description = packageJson.description || description;
|
|
@@ -51815,10 +51815,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
51815
51815
|
|
|
51816
51816
|
// src/commit/run.ts
|
|
51817
51817
|
var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
51818
|
-
const config = await
|
|
51818
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
51819
51819
|
const state = await createState(config, commitizenFile);
|
|
51820
51820
|
if (dryRun) {
|
|
51821
|
-
|
|
51821
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
51822
51822
|
}
|
|
51823
51823
|
console.log(chalk_template_default`
|
|
51824
51824
|
{bold.#999999 ----------------------------------------}
|
|
@@ -51828,7 +51828,7 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
|
|
|
51828
51828
|
`);
|
|
51829
51829
|
state.answers = await askQuestions(state);
|
|
51830
51830
|
const message2 = formatCommitMessage(state);
|
|
51831
|
-
const commitMsgFile =
|
|
51831
|
+
const commitMsgFile = _chunkDEGLIS62cjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
51832
51832
|
console.log(chalk_template_default`
|
|
51833
51833
|
{bold.#999999 ----------------------------------------}
|
|
51834
51834
|
|
|
@@ -51852,8 +51852,8 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
|
|
|
51852
51852
|
]);
|
|
51853
51853
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
51854
51854
|
if (dryRun) {
|
|
51855
|
-
|
|
51856
|
-
|
|
51855
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
51856
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
51857
51857
|
} else {
|
|
51858
51858
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
51859
51859
|
_chunkUAKVQGZUcjs.run.call(void 0, config, command);
|
|
@@ -64320,13 +64320,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
64320
64320
|
|
|
64321
64321
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
64322
64322
|
async function releaseVersion(config, args) {
|
|
64323
|
-
|
|
64323
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running release version command", config);
|
|
64324
64324
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
64325
64325
|
exitOnError: true
|
|
64326
64326
|
});
|
|
64327
64327
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
64328
64328
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
64329
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _177 => _177.workspaceRoot]), () => (
|
|
64329
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _177 => _177.workspaceRoot]), () => ( _chunkDEGLIS62cjs.findWorkspaceRoot.call(void 0, )));
|
|
64330
64330
|
if (args.verbose) {
|
|
64331
64331
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
64332
64332
|
}
|
|
@@ -64341,10 +64341,10 @@ async function releaseVersion(config, args) {
|
|
|
64341
64341
|
]);
|
|
64342
64342
|
throw new Error(`The "release.git" property in nx.json may not be used with the "nx release version" subcommand or programmatic API. Instead, configure git options for subcommands directly with "release.version.git" and "release.changelog.git".`);
|
|
64343
64343
|
}
|
|
64344
|
-
|
|
64344
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
64345
64345
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
64346
64346
|
if (filterError) {
|
|
64347
|
-
|
|
64347
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, filterError.title, config);
|
|
64348
64348
|
throw new Error(filterError.title);
|
|
64349
64349
|
}
|
|
64350
64350
|
const tree = new (0, _treejs.FsTree)(workspaceRoot2, true);
|
|
@@ -64353,10 +64353,10 @@ async function releaseVersion(config, args) {
|
|
|
64353
64353
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
64354
64354
|
const generatorCallbacks = [];
|
|
64355
64355
|
if (_optionalChain([args, 'access', _183 => _183.projects, 'optionalAccess', _184 => _184.length])) {
|
|
64356
|
-
|
|
64356
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
64357
64357
|
for (const releaseGroup of releaseGroups) {
|
|
64358
64358
|
const releaseGroupName = releaseGroup.name;
|
|
64359
|
-
|
|
64359
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
64360
64360
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
64361
64361
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
64362
64362
|
projectGraph,
|
|
@@ -64365,7 +64365,7 @@ async function releaseVersion(config, args) {
|
|
|
64365
64365
|
releaseGroupProjectNames
|
|
64366
64366
|
);
|
|
64367
64367
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
64368
|
-
|
|
64368
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
64369
64369
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
64370
64370
|
const generatorData = resolveGeneratorData({
|
|
64371
64371
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -64418,7 +64418,7 @@ async function releaseVersion(config, args) {
|
|
|
64418
64418
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _191 => _191.version, 'access', _192 => _192.git, 'access', _193 => _193.commitArgs])
|
|
64419
64419
|
});
|
|
64420
64420
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _194 => _194.version, 'access', _195 => _195.git, 'access', _196 => _196.stageChanges])))) {
|
|
64421
|
-
|
|
64421
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
64422
64422
|
await _gitjs.gitAdd.call(void 0, {
|
|
64423
64423
|
changedFiles: changedFiles2,
|
|
64424
64424
|
dryRun: args.dryRun,
|
|
@@ -64426,7 +64426,7 @@ async function releaseVersion(config, args) {
|
|
|
64426
64426
|
});
|
|
64427
64427
|
}
|
|
64428
64428
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _197 => _197.version, 'access', _198 => _198.git, 'access', _199 => _199.tag])))) {
|
|
64429
|
-
|
|
64429
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
64430
64430
|
for (const tag of gitTagValues2) {
|
|
64431
64431
|
await _gitjs.gitTag.call(void 0, {
|
|
64432
64432
|
tag,
|
|
@@ -64513,7 +64513,7 @@ async function releaseVersion(config, args) {
|
|
|
64513
64513
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _215 => _215.version, 'access', _216 => _216.git, 'access', _217 => _217.commitArgs])
|
|
64514
64514
|
});
|
|
64515
64515
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _218 => _218.version, 'access', _219 => _219.git, 'access', _220 => _220.stageChanges])))) {
|
|
64516
|
-
|
|
64516
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
64517
64517
|
await _gitjs.gitAdd.call(void 0, {
|
|
64518
64518
|
changedFiles,
|
|
64519
64519
|
dryRun: args.dryRun,
|
|
@@ -64521,7 +64521,7 @@ async function releaseVersion(config, args) {
|
|
|
64521
64521
|
});
|
|
64522
64522
|
}
|
|
64523
64523
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _221 => _221.version, 'access', _222 => _222.git, 'access', _223 => _223.tag])))) {
|
|
64524
|
-
|
|
64524
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
64525
64525
|
for (const tag of gitTagValues) {
|
|
64526
64526
|
await _gitjs.gitTag.call(void 0, {
|
|
64527
64527
|
tag,
|
|
@@ -64539,7 +64539,7 @@ async function releaseVersion(config, args) {
|
|
|
64539
64539
|
}
|
|
64540
64540
|
_chunkEM6PLOYYcjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
64541
64541
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
64542
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _230 => _230.workspaceRoot]), () => (
|
|
64542
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _230 => _230.workspaceRoot]), () => ( _chunkDEGLIS62cjs.findWorkspaceRoot.call(void 0, )));
|
|
64543
64543
|
const generatorOptions = {
|
|
64544
64544
|
// Always ensure a string to avoid generator schema validation errors
|
|
64545
64545
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -64558,7 +64558,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
64558
64558
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
64559
64559
|
}
|
|
64560
64560
|
appendVersionData(versionData, versionResult.data);
|
|
64561
|
-
|
|
64561
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
64562
64562
|
return versionResult.callback;
|
|
64563
64563
|
}
|
|
64564
64564
|
_chunkEM6PLOYYcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -64566,10 +64566,10 @@ function printAndFlushChanges(config, tree, isDryRun) {
|
|
|
64566
64566
|
const changes = tree.listChanges();
|
|
64567
64567
|
for (const f of changes) {
|
|
64568
64568
|
if (f.type === "CREATE") {
|
|
64569
|
-
|
|
64569
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
64570
64570
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _231 => _231.content, 'optionalAccess', _232 => _232.toString, 'call', _233 => _233()]) || "");
|
|
64571
64571
|
} else if (f.type === "UPDATE") {
|
|
64572
|
-
|
|
64572
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
64573
64573
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
64574
64574
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _234 => _234.content, 'optionalAccess', _235 => _235.toString, 'call', _236 => _236()]) || "");
|
|
64575
64575
|
} else if (f.type === "DELETE") {
|
|
@@ -64642,12 +64642,12 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
|
|
|
64642
64642
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64643
64643
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64644
64644
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
64645
|
-
|
|
64645
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
64646
64646
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
64647
|
-
|
|
64647
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
64648
64648
|
const to = options.head || process.env.NX_HEAD;
|
|
64649
64649
|
const from = options.base || process.env.NX_BASE;
|
|
64650
|
-
|
|
64650
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
64651
64651
|
- From: ${from}
|
|
64652
64652
|
- To: ${to}
|
|
64653
64653
|
`, config);
|
|
@@ -64659,14 +64659,14 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
|
|
|
64659
64659
|
}, {});
|
|
64660
64660
|
}
|
|
64661
64661
|
const nxReleaseConfig = _chunkJMRHG3KScjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
64662
|
-
|
|
64663
|
-
|
|
64662
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
64663
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
64664
64664
|
const releaseChangelog = _changelogjs.createAPI.call(void 0, nxReleaseConfig);
|
|
64665
64665
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
64666
|
-
|
|
64666
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
64667
64667
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
64668
64668
|
dryRun: false,
|
|
64669
|
-
verbose:
|
|
64669
|
+
verbose: _chunkDEGLIS62cjs.isVerbose.call(void 0, config.logLevel),
|
|
64670
64670
|
preid: config.preid,
|
|
64671
64671
|
deleteVersionPlans: false,
|
|
64672
64672
|
stageChanges: true,
|
|
@@ -64678,25 +64678,25 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
|
|
|
64678
64678
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _239 => _239.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
64679
64679
|
versionData: projectsVersionData,
|
|
64680
64680
|
dryRun: false,
|
|
64681
|
-
verbose:
|
|
64681
|
+
verbose: _chunkDEGLIS62cjs.isVerbose.call(void 0, config.logLevel),
|
|
64682
64682
|
to,
|
|
64683
64683
|
from,
|
|
64684
64684
|
gitCommit: true,
|
|
64685
64685
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
64686
64686
|
});
|
|
64687
|
-
|
|
64687
|
+
_chunkDEGLIS62cjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
64688
64688
|
if (options.skipPublish) {
|
|
64689
|
-
|
|
64689
|
+
_chunkDEGLIS62cjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
64690
64690
|
} else {
|
|
64691
64691
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _240 => _240[key], 'optionalAccess', _241 => _241.newVersion]));
|
|
64692
64692
|
if (changedProjects.length > 0) {
|
|
64693
|
-
|
|
64693
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
64694
64694
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
64695
64695
|
`, config);
|
|
64696
64696
|
const result2 = await releasePublish({
|
|
64697
64697
|
...options,
|
|
64698
64698
|
dryRun: !!options.dryRun,
|
|
64699
|
-
verbose:
|
|
64699
|
+
verbose: _chunkDEGLIS62cjs.isVerbose.call(void 0, config.logLevel)
|
|
64700
64700
|
});
|
|
64701
64701
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _242 => _242[key], 'optionalAccess', _243 => _243.code]) && _optionalChain([result2, 'access', _244 => _244[key], 'optionalAccess', _245 => _245.code]) > 0);
|
|
64702
64702
|
if (failedProjects.length > 0) {
|
|
@@ -64707,13 +64707,13 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
64707
64707
|
`);
|
|
64708
64708
|
}
|
|
64709
64709
|
} else {
|
|
64710
|
-
|
|
64710
|
+
_chunkDEGLIS62cjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
64711
64711
|
}
|
|
64712
64712
|
}
|
|
64713
|
-
|
|
64713
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
64714
64714
|
} catch (error) {
|
|
64715
|
-
|
|
64716
|
-
error.message &&
|
|
64715
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
|
|
64716
|
+
error.message && _chunkDEGLIS62cjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
|
|
64717
64717
|
${error.stack}` : ""}`, config);
|
|
64718
64718
|
throw error;
|
|
64719
64719
|
}
|
|
@@ -64723,8 +64723,8 @@ ${error.stack}` : ""}`, config);
|
|
|
64723
64723
|
var _config = {};
|
|
64724
64724
|
function createProgram(config) {
|
|
64725
64725
|
_config = config;
|
|
64726
|
-
|
|
64727
|
-
const root2 =
|
|
64726
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
64727
|
+
const root2 = _chunkDEGLIS62cjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
64728
64728
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
64729
64729
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
64730
64730
|
root2 && process.chdir(root2);
|
|
@@ -64752,14 +64752,14 @@ function createProgram(config) {
|
|
|
64752
64752
|
_chunkEM6PLOYYcjs.__name.call(void 0, createProgram, "createProgram");
|
|
64753
64753
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
64754
64754
|
try {
|
|
64755
|
-
|
|
64755
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
64756
64756
|
await runCommit(config, dryRun);
|
|
64757
|
-
|
|
64757
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
64758
64758
|
|
|
64759
64759
|
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}
|
|
64760
64760
|
`, _config);
|
|
64761
64761
|
} catch (error) {
|
|
64762
|
-
|
|
64762
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
64763
64763
|
|
|
64764
64764
|
${error.message}`, _config);
|
|
64765
64765
|
throw new Error(error.message, {
|
|
@@ -64770,11 +64770,11 @@ ${error.message}`, _config);
|
|
|
64770
64770
|
_chunkEM6PLOYYcjs.__name.call(void 0, commitAction, "commitAction");
|
|
64771
64771
|
async function readmeAction(options) {
|
|
64772
64772
|
try {
|
|
64773
|
-
|
|
64773
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
64774
64774
|
await runReadme(options);
|
|
64775
|
-
|
|
64775
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
64776
64776
|
} catch (error) {
|
|
64777
|
-
|
|
64777
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
64778
64778
|
|
|
64779
64779
|
${error.message}`);
|
|
64780
64780
|
throw new Error(error.message, {
|
|
@@ -64785,19 +64785,19 @@ ${error.message}`);
|
|
|
64785
64785
|
_chunkEM6PLOYYcjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
64786
64786
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
64787
64787
|
try {
|
|
64788
|
-
|
|
64788
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
64789
64789
|
await runRelease(_config, {
|
|
64790
64790
|
dryRun,
|
|
64791
64791
|
project,
|
|
64792
64792
|
base,
|
|
64793
64793
|
head
|
|
64794
64794
|
});
|
|
64795
|
-
|
|
64795
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
64796
64796
|
} catch (error) {
|
|
64797
|
-
|
|
64797
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
64798
64798
|
|
|
64799
64799
|
${error.message}`, _config);
|
|
64800
|
-
|
|
64800
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, error, _config);
|
|
64801
64801
|
console.error("");
|
|
64802
64802
|
console.error("Fatal release error: ");
|
|
64803
64803
|
console.error(error);
|
|
@@ -64810,15 +64810,15 @@ ${error.message}`, _config);
|
|
|
64810
64810
|
_chunkEM6PLOYYcjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
64811
64811
|
async function commitLintAction({ config, message: message2, file }) {
|
|
64812
64812
|
try {
|
|
64813
|
-
|
|
64813
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : _config.organization ? _config.organization : "Storm-Software"} repository's commit messages.`, _config);
|
|
64814
64814
|
await runCommitLint(_config, {
|
|
64815
64815
|
config,
|
|
64816
64816
|
message: message2,
|
|
64817
64817
|
file
|
|
64818
64818
|
});
|
|
64819
|
-
|
|
64819
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
64820
64820
|
} catch (error) {
|
|
64821
|
-
|
|
64821
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
64822
64822
|
|
|
64823
64823
|
${error.message}`, _config);
|
|
64824
64824
|
throw new Error(error.message, {
|
|
@@ -64830,18 +64830,18 @@ _chunkEM6PLOYYcjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
64830
64830
|
|
|
64831
64831
|
// bin/git.ts
|
|
64832
64832
|
void (async () => {
|
|
64833
|
-
const config = await
|
|
64833
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
64834
64834
|
try {
|
|
64835
|
-
|
|
64835
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
64836
64836
|
const program2 = createProgram(config);
|
|
64837
64837
|
await program2.parseAsync(process.argv);
|
|
64838
|
-
|
|
64839
|
-
|
|
64838
|
+
_chunkDEGLIS62cjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
64839
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
64840
64840
|
} catch (error) {
|
|
64841
|
-
|
|
64841
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
|
|
64842
64842
|
${_optionalChain([error, 'optionalAccess', _248 => _248.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _249 => _249.stack]) ? `
|
|
64843
64843
|
Stack Trace: ${error.stack}` : ""}`, config);
|
|
64844
|
-
|
|
64844
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
64845
64845
|
process.exit(1);
|
|
64846
64846
|
}
|
|
64847
64847
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
17
17
|
require('./chunk-JMRHG3KS.cjs');
|
|
18
18
|
require('./chunk-NHO7HSOE.cjs');
|
|
19
19
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, `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.
|
|
39
39
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
40
|
-
|
|
40
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-checkout.js
CHANGED
package/bin/post-commit.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
17
17
|
require('./chunk-JMRHG3KS.cjs');
|
|
18
18
|
require('./chunk-NHO7HSOE.cjs');
|
|
19
19
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, `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.
|
|
39
39
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
40
|
-
|
|
40
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-commit.js
CHANGED
package/bin/post-merge.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDEGLIS62cjs = require('./chunk-DEGLIS62.cjs');
|
|
17
17
|
require('./chunk-JMRHG3KS.cjs');
|
|
18
18
|
require('./chunk-NHO7HSOE.cjs');
|
|
19
19
|
require('./chunk-WOZSAFMN.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkDEGLIS62cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkDEGLIS62cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkDEGLIS62cjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkDEGLIS62cjs.writeError.call(void 0, `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.
|
|
39
39
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
40
|
-
|
|
40
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkDEGLIS62cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkDEGLIS62cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkDEGLIS62cjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|