@storm-software/git-tools 2.88.1 → 2.88.3
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-U55MG3QC.js → chunk-PLNZHR5C.js} +113 -57
- package/bin/{chunk-GZO33STH.cjs → chunk-UJOC6MGU.cjs} +122 -66
- package/bin/git.cjs +69 -69
- package/bin/git.js +4 -4
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +3 -3
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +3 -3
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +3 -3
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +3 -3
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +3 -3
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +3 -3
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +3 -3
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +3 -3
- 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 _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkJMRHG3KScjs = require('./chunk-JMRHG3KS.cjs');
|
|
@@ -3263,7 +3263,7 @@ var require_wrap_ansi = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
|
|
|
3263
3263
|
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
3264
3264
|
var stringWidth = require_string_width();
|
|
3265
3265
|
var stripAnsi2 = require_strip_ansi();
|
|
3266
|
-
var ansiStyles2 =
|
|
3266
|
+
var ansiStyles2 = _chunkUJOC6MGUcjs.require_ansi_styles.call(void 0, );
|
|
3267
3267
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3268
3268
|
"\x1B",
|
|
3269
3269
|
"\x9B"
|
|
@@ -15605,7 +15605,7 @@ var require_node = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
|
|
|
15605
15605
|
1
|
|
15606
15606
|
];
|
|
15607
15607
|
try {
|
|
15608
|
-
const supportsColor2 =
|
|
15608
|
+
const supportsColor2 = _chunkUJOC6MGUcjs.require_supports_color.call(void 0, );
|
|
15609
15609
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15610
15610
|
exports.colors = [
|
|
15611
15611
|
20,
|
|
@@ -33498,12 +33498,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0,
|
|
|
33498
33498
|
// src/commitlint/run.ts
|
|
33499
33499
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
33500
33500
|
var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (config, params) => {
|
|
33501
|
-
|
|
33501
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
33502
33502
|
let commitMessage;
|
|
33503
33503
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
33504
33504
|
commitMessage = params.message;
|
|
33505
33505
|
} else {
|
|
33506
|
-
const commitFile =
|
|
33506
|
+
const commitFile = _chunkUJOC6MGUcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
33507
33507
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
33508
33508
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _55 => _55.trim, 'call', async _56 => _56()]);
|
|
33509
33509
|
}
|
|
@@ -33515,19 +33515,19 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
|
|
|
33515
33515
|
if (upstreamRemote) {
|
|
33516
33516
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _57 => _57.split, 'call', _58 => _58(" "), 'access', _59 => _59[0], 'optionalAccess', _60 => _60.trim, 'call', _61 => _61()]);
|
|
33517
33517
|
if (!upstreamRemoteIdentifier) {
|
|
33518
|
-
|
|
33518
|
+
_chunkUJOC6MGUcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
33519
33519
|
return;
|
|
33520
33520
|
}
|
|
33521
|
-
|
|
33521
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
33522
33522
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
33523
33523
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
33524
33524
|
} else {
|
|
33525
|
-
|
|
33525
|
+
_chunkUJOC6MGUcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
33526
33526
|
return;
|
|
33527
33527
|
}
|
|
33528
33528
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
33529
33529
|
if (!commitMessage) {
|
|
33530
|
-
|
|
33530
|
+
_chunkUJOC6MGUcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
33531
33531
|
return;
|
|
33532
33532
|
}
|
|
33533
33533
|
}
|
|
@@ -33545,7 +33545,7 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
|
|
|
33545
33545
|
helpUrl: commitlintConfig.helpUrl
|
|
33546
33546
|
});
|
|
33547
33547
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
33548
|
-
|
|
33548
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
33549
33549
|
} else {
|
|
33550
33550
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
33551
33551
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -34739,7 +34739,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
|
|
|
34739
34739
|
answers: {}
|
|
34740
34740
|
};
|
|
34741
34741
|
} else {
|
|
34742
|
-
|
|
34742
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
34743
34743
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
34744
34744
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _67 => _67.default])) {
|
|
34745
34745
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _68 => _68.default]);
|
|
@@ -34780,7 +34780,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
|
|
|
34780
34780
|
}
|
|
34781
34781
|
if (project) {
|
|
34782
34782
|
let description = `${project.name} - ${project.root}`;
|
|
34783
|
-
const packageJsonPath =
|
|
34783
|
+
const packageJsonPath = _chunkUJOC6MGUcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
34784
34784
|
if (await hfs.isFile(packageJsonPath)) {
|
|
34785
34785
|
const packageJson = await hfs.json(packageJsonPath);
|
|
34786
34786
|
description = packageJson.description || description;
|
|
@@ -34854,10 +34854,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
34854
34854
|
|
|
34855
34855
|
// src/commit/run.ts
|
|
34856
34856
|
var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
34857
|
-
const config = await
|
|
34857
|
+
const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
|
|
34858
34858
|
const state = await createState(config, commitizenFile);
|
|
34859
34859
|
if (dryRun) {
|
|
34860
|
-
|
|
34860
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
34861
34861
|
}
|
|
34862
34862
|
console.log(chalk_template_default`
|
|
34863
34863
|
{bold.#999999 ----------------------------------------}
|
|
@@ -34867,7 +34867,7 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
|
|
|
34867
34867
|
`);
|
|
34868
34868
|
state.answers = await askQuestions(state);
|
|
34869
34869
|
const message2 = formatCommitMessage(state);
|
|
34870
|
-
const commitMsgFile =
|
|
34870
|
+
const commitMsgFile = _chunkUJOC6MGUcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
34871
34871
|
console.log(chalk_template_default`
|
|
34872
34872
|
{bold.#999999 ----------------------------------------}
|
|
34873
34873
|
|
|
@@ -34891,8 +34891,8 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
|
|
|
34891
34891
|
]);
|
|
34892
34892
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
34893
34893
|
if (dryRun) {
|
|
34894
|
-
|
|
34895
|
-
|
|
34894
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
34895
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
34896
34896
|
} else {
|
|
34897
34897
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
34898
34898
|
_chunkUAKVQGZUcjs.run.call(void 0, config, command);
|
|
@@ -47359,13 +47359,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
47359
47359
|
|
|
47360
47360
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
47361
47361
|
async function releaseVersion(config, args) {
|
|
47362
|
-
|
|
47362
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running release version command", config);
|
|
47363
47363
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
47364
47364
|
exitOnError: true
|
|
47365
47365
|
});
|
|
47366
47366
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
47367
47367
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
47368
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => (
|
|
47368
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkUJOC6MGUcjs.findWorkspaceRoot.call(void 0, )));
|
|
47369
47369
|
if (args.verbose) {
|
|
47370
47370
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
47371
47371
|
}
|
|
@@ -47380,10 +47380,10 @@ async function releaseVersion(config, args) {
|
|
|
47380
47380
|
]);
|
|
47381
47381
|
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".`);
|
|
47382
47382
|
}
|
|
47383
|
-
|
|
47383
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
47384
47384
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
47385
47385
|
if (filterError) {
|
|
47386
|
-
|
|
47386
|
+
_chunkUJOC6MGUcjs.writeError.call(void 0, filterError.title, config);
|
|
47387
47387
|
throw new Error(filterError.title);
|
|
47388
47388
|
}
|
|
47389
47389
|
const tree = new (0, _treejs.FsTree)(workspaceRoot2, true);
|
|
@@ -47392,10 +47392,10 @@ async function releaseVersion(config, args) {
|
|
|
47392
47392
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
47393
47393
|
const generatorCallbacks = [];
|
|
47394
47394
|
if (_optionalChain([args, 'access', _158 => _158.projects, 'optionalAccess', _159 => _159.length])) {
|
|
47395
|
-
|
|
47395
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
47396
47396
|
for (const releaseGroup of releaseGroups) {
|
|
47397
47397
|
const releaseGroupName = releaseGroup.name;
|
|
47398
|
-
|
|
47398
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
47399
47399
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
47400
47400
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
47401
47401
|
projectGraph,
|
|
@@ -47404,7 +47404,7 @@ async function releaseVersion(config, args) {
|
|
|
47404
47404
|
releaseGroupProjectNames
|
|
47405
47405
|
);
|
|
47406
47406
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
47407
|
-
|
|
47407
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
47408
47408
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
47409
47409
|
const generatorData = resolveGeneratorData({
|
|
47410
47410
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -47457,7 +47457,7 @@ async function releaseVersion(config, args) {
|
|
|
47457
47457
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _166 => _166.version, 'access', _167 => _167.git, 'access', _168 => _168.commitArgs])
|
|
47458
47458
|
});
|
|
47459
47459
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _169 => _169.version, 'access', _170 => _170.git, 'access', _171 => _171.stageChanges])))) {
|
|
47460
|
-
|
|
47460
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
47461
47461
|
await _gitjs.gitAdd.call(void 0, {
|
|
47462
47462
|
changedFiles: changedFiles2,
|
|
47463
47463
|
dryRun: args.dryRun,
|
|
@@ -47465,7 +47465,7 @@ async function releaseVersion(config, args) {
|
|
|
47465
47465
|
});
|
|
47466
47466
|
}
|
|
47467
47467
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _172 => _172.version, 'access', _173 => _173.git, 'access', _174 => _174.tag])))) {
|
|
47468
|
-
|
|
47468
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
47469
47469
|
for (const tag of gitTagValues2) {
|
|
47470
47470
|
await _gitjs.gitTag.call(void 0, {
|
|
47471
47471
|
tag,
|
|
@@ -47552,7 +47552,7 @@ async function releaseVersion(config, args) {
|
|
|
47552
47552
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _190 => _190.version, 'access', _191 => _191.git, 'access', _192 => _192.commitArgs])
|
|
47553
47553
|
});
|
|
47554
47554
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _193 => _193.version, 'access', _194 => _194.git, 'access', _195 => _195.stageChanges])))) {
|
|
47555
|
-
|
|
47555
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
47556
47556
|
await _gitjs.gitAdd.call(void 0, {
|
|
47557
47557
|
changedFiles,
|
|
47558
47558
|
dryRun: args.dryRun,
|
|
@@ -47560,7 +47560,7 @@ async function releaseVersion(config, args) {
|
|
|
47560
47560
|
});
|
|
47561
47561
|
}
|
|
47562
47562
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _196 => _196.version, 'access', _197 => _197.git, 'access', _198 => _198.tag])))) {
|
|
47563
|
-
|
|
47563
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
47564
47564
|
for (const tag of gitTagValues) {
|
|
47565
47565
|
await _gitjs.gitTag.call(void 0, {
|
|
47566
47566
|
tag,
|
|
@@ -47578,7 +47578,7 @@ async function releaseVersion(config, args) {
|
|
|
47578
47578
|
}
|
|
47579
47579
|
_chunkEM6PLOYYcjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
47580
47580
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
47581
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _205 => _205.workspaceRoot]), () => (
|
|
47581
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _205 => _205.workspaceRoot]), () => ( _chunkUJOC6MGUcjs.findWorkspaceRoot.call(void 0, )));
|
|
47582
47582
|
const generatorOptions = {
|
|
47583
47583
|
// Always ensure a string to avoid generator schema validation errors
|
|
47584
47584
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -47597,7 +47597,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
47597
47597
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
47598
47598
|
}
|
|
47599
47599
|
appendVersionData(versionData, versionResult.data);
|
|
47600
|
-
|
|
47600
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
47601
47601
|
return versionResult.callback;
|
|
47602
47602
|
}
|
|
47603
47603
|
_chunkEM6PLOYYcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -47605,10 +47605,10 @@ function printAndFlushChanges(config, tree, isDryRun) {
|
|
|
47605
47605
|
const changes = tree.listChanges();
|
|
47606
47606
|
for (const f of changes) {
|
|
47607
47607
|
if (f.type === "CREATE") {
|
|
47608
|
-
|
|
47608
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
47609
47609
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _206 => _206.content, 'optionalAccess', _207 => _207.toString, 'call', _208 => _208()]) || "");
|
|
47610
47610
|
} else if (f.type === "UPDATE") {
|
|
47611
|
-
|
|
47611
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
47612
47612
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, _devkitexportsjs.joinPathFragments.call(void 0, tree.root, f.path)).toString();
|
|
47613
47613
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _209 => _209.content, 'optionalAccess', _210 => _210.toString, 'call', _211 => _211()]) || "");
|
|
47614
47614
|
} else if (f.type === "DELETE") {
|
|
@@ -47681,12 +47681,12 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
|
|
|
47681
47681
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
47682
47682
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
47683
47683
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
47684
|
-
|
|
47684
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
47685
47685
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
47686
|
-
|
|
47686
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
47687
47687
|
const to = options.head || process.env.NX_HEAD;
|
|
47688
47688
|
const from = options.base || process.env.NX_BASE;
|
|
47689
|
-
|
|
47689
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
47690
47690
|
- From: ${from}
|
|
47691
47691
|
- To: ${to}
|
|
47692
47692
|
`, config);
|
|
@@ -47698,14 +47698,14 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
|
|
|
47698
47698
|
}, {});
|
|
47699
47699
|
}
|
|
47700
47700
|
const nxReleaseConfig = _chunkJMRHG3KScjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
47701
|
-
|
|
47702
|
-
|
|
47701
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
47702
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
47703
47703
|
const releaseChangelog = _changelogjs.createAPI.call(void 0, nxReleaseConfig);
|
|
47704
47704
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
47705
|
-
|
|
47705
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
47706
47706
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
47707
47707
|
dryRun: false,
|
|
47708
|
-
verbose:
|
|
47708
|
+
verbose: _chunkUJOC6MGUcjs.isVerbose.call(void 0, config.logLevel),
|
|
47709
47709
|
preid: config.preid,
|
|
47710
47710
|
deleteVersionPlans: false,
|
|
47711
47711
|
stageChanges: true,
|
|
@@ -47717,25 +47717,25 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
|
|
|
47717
47717
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _214 => _214.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
47718
47718
|
versionData: projectsVersionData,
|
|
47719
47719
|
dryRun: false,
|
|
47720
|
-
verbose:
|
|
47720
|
+
verbose: _chunkUJOC6MGUcjs.isVerbose.call(void 0, config.logLevel),
|
|
47721
47721
|
to,
|
|
47722
47722
|
from,
|
|
47723
47723
|
gitCommit: true,
|
|
47724
47724
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
47725
47725
|
});
|
|
47726
|
-
|
|
47726
|
+
_chunkUJOC6MGUcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
47727
47727
|
if (options.skipPublish) {
|
|
47728
|
-
|
|
47728
|
+
_chunkUJOC6MGUcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
47729
47729
|
} else {
|
|
47730
47730
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _215 => _215[key], 'optionalAccess', _216 => _216.newVersion]));
|
|
47731
47731
|
if (changedProjects.length > 0) {
|
|
47732
|
-
|
|
47732
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
47733
47733
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
47734
47734
|
`, config);
|
|
47735
47735
|
const result2 = await releasePublish({
|
|
47736
47736
|
...options,
|
|
47737
47737
|
dryRun: !!options.dryRun,
|
|
47738
|
-
verbose:
|
|
47738
|
+
verbose: _chunkUJOC6MGUcjs.isVerbose.call(void 0, config.logLevel)
|
|
47739
47739
|
});
|
|
47740
47740
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _217 => _217[key], 'optionalAccess', _218 => _218.code]) && _optionalChain([result2, 'access', _219 => _219[key], 'optionalAccess', _220 => _220.code]) > 0);
|
|
47741
47741
|
if (failedProjects.length > 0) {
|
|
@@ -47746,13 +47746,13 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
47746
47746
|
`);
|
|
47747
47747
|
}
|
|
47748
47748
|
} else {
|
|
47749
|
-
|
|
47749
|
+
_chunkUJOC6MGUcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
47750
47750
|
}
|
|
47751
47751
|
}
|
|
47752
|
-
|
|
47752
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
47753
47753
|
} catch (error) {
|
|
47754
|
-
|
|
47755
|
-
error.message &&
|
|
47754
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
|
|
47755
|
+
error.message && _chunkUJOC6MGUcjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
|
|
47756
47756
|
${error.stack}` : ""}`, config);
|
|
47757
47757
|
throw error;
|
|
47758
47758
|
}
|
|
@@ -47762,8 +47762,8 @@ ${error.stack}` : ""}`, config);
|
|
|
47762
47762
|
var _config = {};
|
|
47763
47763
|
function createProgram(config) {
|
|
47764
47764
|
_config = config;
|
|
47765
|
-
|
|
47766
|
-
const root2 =
|
|
47765
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
47766
|
+
const root2 = _chunkUJOC6MGUcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
47767
47767
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
47768
47768
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
47769
47769
|
root2 && process.chdir(root2);
|
|
@@ -47791,14 +47791,14 @@ function createProgram(config) {
|
|
|
47791
47791
|
_chunkEM6PLOYYcjs.__name.call(void 0, createProgram, "createProgram");
|
|
47792
47792
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
47793
47793
|
try {
|
|
47794
|
-
|
|
47794
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
47795
47795
|
await runCommit(config, dryRun);
|
|
47796
|
-
|
|
47796
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
47797
47797
|
|
|
47798
47798
|
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}
|
|
47799
47799
|
`, _config);
|
|
47800
47800
|
} catch (error) {
|
|
47801
|
-
|
|
47801
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
47802
47802
|
|
|
47803
47803
|
${error.message}`, _config);
|
|
47804
47804
|
throw new Error(error.message, {
|
|
@@ -47809,11 +47809,11 @@ ${error.message}`, _config);
|
|
|
47809
47809
|
_chunkEM6PLOYYcjs.__name.call(void 0, commitAction, "commitAction");
|
|
47810
47810
|
async function readmeAction(options) {
|
|
47811
47811
|
try {
|
|
47812
|
-
|
|
47812
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
47813
47813
|
await runReadme(options);
|
|
47814
|
-
|
|
47814
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
47815
47815
|
} catch (error) {
|
|
47816
|
-
|
|
47816
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
47817
47817
|
|
|
47818
47818
|
${error.message}`);
|
|
47819
47819
|
throw new Error(error.message, {
|
|
@@ -47824,19 +47824,19 @@ ${error.message}`);
|
|
|
47824
47824
|
_chunkEM6PLOYYcjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
47825
47825
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
47826
47826
|
try {
|
|
47827
|
-
|
|
47827
|
+
_chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
47828
47828
|
await runRelease(_config, {
|
|
47829
47829
|
dryRun,
|
|
47830
47830
|
project,
|
|
47831
47831
|
base,
|
|
47832
47832
|
head
|
|
47833
47833
|
});
|
|
47834
|
-
|
|
47834
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
47835
47835
|
} catch (error) {
|
|
47836
|
-
|
|
47836
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
47837
47837
|
|
|
47838
47838
|
${error.message}`, _config);
|
|
47839
|
-
|
|
47839
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, error, _config);
|
|
47840
47840
|
console.error("");
|
|
47841
47841
|
console.error("Fatal release error: ");
|
|
47842
47842
|
console.error(error);
|
|
@@ -47849,15 +47849,15 @@ ${error.message}`, _config);
|
|
|
47849
47849
|
_chunkEM6PLOYYcjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
47850
47850
|
async function commitLintAction({ config, message: message2, file }) {
|
|
47851
47851
|
try {
|
|
47852
|
-
|
|
47852
|
+
_chunkUJOC6MGUcjs.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);
|
|
47853
47853
|
await runCommitLint(_config, {
|
|
47854
47854
|
config,
|
|
47855
47855
|
message: message2,
|
|
47856
47856
|
file
|
|
47857
47857
|
});
|
|
47858
|
-
|
|
47858
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
47859
47859
|
} catch (error) {
|
|
47860
|
-
|
|
47860
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
47861
47861
|
|
|
47862
47862
|
${error.message}`, _config);
|
|
47863
47863
|
throw new Error(error.message, {
|
|
@@ -47869,18 +47869,18 @@ _chunkEM6PLOYYcjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
47869
47869
|
|
|
47870
47870
|
// bin/git.ts
|
|
47871
47871
|
void (async () => {
|
|
47872
|
-
const config = await
|
|
47872
|
+
const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
|
|
47873
47873
|
try {
|
|
47874
|
-
|
|
47874
|
+
_chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
|
|
47875
47875
|
const program2 = createProgram(config);
|
|
47876
47876
|
await program2.parseAsync(process.argv);
|
|
47877
|
-
|
|
47878
|
-
|
|
47877
|
+
_chunkUJOC6MGUcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
47878
|
+
_chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
|
|
47879
47879
|
} catch (error) {
|
|
47880
|
-
|
|
47880
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
|
|
47881
47881
|
${_optionalChain([error, 'optionalAccess', _223 => _223.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _224 => _224.stack]) ? `
|
|
47882
47882
|
Stack Trace: ${error.stack}` : ""}`, config);
|
|
47883
|
-
|
|
47883
|
+
_chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
|
|
47884
47884
|
process.exit(1);
|
|
47885
47885
|
}
|
|
47886
47886
|
})();
|
package/bin/git.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
exitWithSuccess,
|
|
11
11
|
findWorkspaceRoot,
|
|
12
12
|
findWorkspaceRootSafe,
|
|
13
|
+
getConfig,
|
|
13
14
|
handleProcess,
|
|
14
15
|
isVerbose,
|
|
15
16
|
joinPaths,
|
|
16
|
-
loadStormConfig,
|
|
17
17
|
require_ansi_styles,
|
|
18
18
|
require_supports_color,
|
|
19
19
|
writeDebug,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
writeInfo,
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeWarning
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PLNZHR5C.js";
|
|
26
26
|
import {
|
|
27
27
|
defu
|
|
28
28
|
} from "./chunk-BNZUDAPR.js";
|
|
@@ -34854,7 +34854,7 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
34854
34854
|
|
|
34855
34855
|
// src/commit/run.ts
|
|
34856
34856
|
var runCommit = /* @__PURE__ */ __name(async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
34857
|
-
const config = await
|
|
34857
|
+
const config = await getConfig();
|
|
34858
34858
|
const state = await createState(config, commitizenFile);
|
|
34859
34859
|
if (dryRun) {
|
|
34860
34860
|
writeInfo("Running in dry mode.", config);
|
|
@@ -47868,7 +47868,7 @@ __name(commitLintAction, "commitLintAction");
|
|
|
47868
47868
|
|
|
47869
47869
|
// bin/git.ts
|
|
47870
47870
|
void (async () => {
|
|
47871
|
-
const config = await
|
|
47871
|
+
const config = await getConfig();
|
|
47872
47872
|
try {
|
|
47873
47873
|
handleProcess(config);
|
|
47874
47874
|
const program2 = createProgram(config);
|
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 _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.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 _chunkUJOC6MGUcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkUJOC6MGUcjs.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
|
+
_chunkUJOC6MGUcjs.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
|
+
_chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-checkout.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
exitWithError,
|
|
10
10
|
exitWithSuccess,
|
|
11
|
+
getConfig,
|
|
11
12
|
handleProcess,
|
|
12
|
-
loadStormConfig,
|
|
13
13
|
writeError,
|
|
14
14
|
writeFatal,
|
|
15
15
|
writeInfo
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PLNZHR5C.js";
|
|
17
17
|
import "./chunk-BNZUDAPR.js";
|
|
18
18
|
import "./chunk-4NALH4AO.js";
|
|
19
19
|
import "./chunk-3QBEWJXQ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
init_esm_shims();
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await getConfig();
|
|
31
31
|
try {
|
|
32
32
|
handleProcess(config);
|
|
33
33
|
writeInfo("Running post-checkout hook...", config);
|
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 _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.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 _chunkUJOC6MGUcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkUJOC6MGUcjs.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
|
+
_chunkUJOC6MGUcjs.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
|
+
_chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-commit.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
exitWithError,
|
|
10
10
|
exitWithSuccess,
|
|
11
|
+
getConfig,
|
|
11
12
|
handleProcess,
|
|
12
|
-
loadStormConfig,
|
|
13
13
|
writeError,
|
|
14
14
|
writeFatal,
|
|
15
15
|
writeInfo
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PLNZHR5C.js";
|
|
17
17
|
import "./chunk-BNZUDAPR.js";
|
|
18
18
|
import "./chunk-4NALH4AO.js";
|
|
19
19
|
import "./chunk-3QBEWJXQ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
init_esm_shims();
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await getConfig();
|
|
31
31
|
try {
|
|
32
32
|
handleProcess(config);
|
|
33
33
|
writeInfo("Running post-commit hook...", config);
|