@storm-software/git-tools 2.96.8 → 2.96.10
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-2TOWCYTA.js → chunk-M2LVPB4L.js} +1 -1
- package/bin/{chunk-5BOJXSNU.cjs → chunk-O2V4JHMG.cjs} +1 -1
- package/bin/git.cjs +67 -67
- 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/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 -->
|
|
@@ -40144,7 +40144,7 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
40144
40144
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
40145
40145
|
return (message) => {
|
|
40146
40146
|
console.error(`
|
|
40147
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
40147
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40148
40148
|
`);
|
|
40149
40149
|
};
|
|
40150
40150
|
}
|
|
@@ -40144,7 +40144,7 @@ var getLogFn = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (logLevel =
|
|
|
40144
40144
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
40145
40145
|
return (message) => {
|
|
40146
40146
|
console.error(`
|
|
40147
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]}
|
|
40147
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
40148
40148
|
`);
|
|
40149
40149
|
};
|
|
40150
40150
|
}
|
package/bin/git.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkP2CHIYIKcjs = require('./chunk-P2CHIYIK.cjs');
|
|
@@ -3262,7 +3262,7 @@ var require_wrap_ansi = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
|
|
|
3262
3262
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
3263
3263
|
var stringWidth = require_string_width();
|
|
3264
3264
|
var stripAnsi2 = require_strip_ansi();
|
|
3265
|
-
var ansiStyles2 =
|
|
3265
|
+
var ansiStyles2 = _chunkO2V4JHMGcjs.require_ansi_styles.call(void 0, );
|
|
3266
3266
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3267
3267
|
"\x1B",
|
|
3268
3268
|
"\x9B"
|
|
@@ -15604,7 +15604,7 @@ var require_node = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
|
|
|
15604
15604
|
1
|
|
15605
15605
|
];
|
|
15606
15606
|
try {
|
|
15607
|
-
const supportsColor2 =
|
|
15607
|
+
const supportsColor2 = _chunkO2V4JHMGcjs.require_supports_color.call(void 0, );
|
|
15608
15608
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15609
15609
|
exports.colors = [
|
|
15610
15610
|
20,
|
|
@@ -50706,12 +50706,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0,
|
|
|
50706
50706
|
// src/commitlint/run.ts
|
|
50707
50707
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
50708
50708
|
var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (config, params) => {
|
|
50709
|
-
|
|
50709
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
50710
50710
|
let commitMessage;
|
|
50711
50711
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
50712
50712
|
commitMessage = params.message;
|
|
50713
50713
|
} else {
|
|
50714
|
-
const commitFile =
|
|
50714
|
+
const commitFile = _chunkO2V4JHMGcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
50715
50715
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
50716
50716
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
50717
50717
|
}
|
|
@@ -50723,19 +50723,19 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
|
|
|
50723
50723
|
if (upstreamRemote) {
|
|
50724
50724
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
50725
50725
|
if (!upstreamRemoteIdentifier) {
|
|
50726
|
-
|
|
50726
|
+
_chunkO2V4JHMGcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
50727
50727
|
return;
|
|
50728
50728
|
}
|
|
50729
|
-
|
|
50729
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
50730
50730
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
50731
50731
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
50732
50732
|
} else {
|
|
50733
|
-
|
|
50733
|
+
_chunkO2V4JHMGcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
50734
50734
|
return;
|
|
50735
50735
|
}
|
|
50736
50736
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
50737
50737
|
if (!commitMessage) {
|
|
50738
|
-
|
|
50738
|
+
_chunkO2V4JHMGcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
50739
50739
|
return;
|
|
50740
50740
|
}
|
|
50741
50741
|
}
|
|
@@ -50753,7 +50753,7 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
|
|
|
50753
50753
|
helpUrl: commitlintConfig.helpUrl
|
|
50754
50754
|
});
|
|
50755
50755
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
50756
|
-
|
|
50756
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
50757
50757
|
} else {
|
|
50758
50758
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
50759
50759
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -51947,7 +51947,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
|
|
|
51947
51947
|
answers: {}
|
|
51948
51948
|
};
|
|
51949
51949
|
} else {
|
|
51950
|
-
|
|
51950
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
51951
51951
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
51952
51952
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
51953
51953
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -51988,7 +51988,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
|
|
|
51988
51988
|
}
|
|
51989
51989
|
if (project) {
|
|
51990
51990
|
let description = `${project.name} - ${project.root}`;
|
|
51991
|
-
const packageJsonPath =
|
|
51991
|
+
const packageJsonPath = _chunkO2V4JHMGcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
51992
51992
|
if (await hfs.isFile(packageJsonPath)) {
|
|
51993
51993
|
const packageJson = await hfs.json(packageJsonPath);
|
|
51994
51994
|
description = packageJson.description || description;
|
|
@@ -52062,10 +52062,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
52062
52062
|
|
|
52063
52063
|
// src/commit/run.ts
|
|
52064
52064
|
var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
52065
|
-
const config = await
|
|
52065
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
52066
52066
|
const state = await createState(config, commitizenFile);
|
|
52067
52067
|
if (dryRun) {
|
|
52068
|
-
|
|
52068
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
52069
52069
|
}
|
|
52070
52070
|
console.log(chalk_template_default`
|
|
52071
52071
|
{bold.#999999 ----------------------------------------}
|
|
@@ -52075,7 +52075,7 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
|
|
|
52075
52075
|
`);
|
|
52076
52076
|
state.answers = await askQuestions(state);
|
|
52077
52077
|
const message2 = formatCommitMessage(state);
|
|
52078
|
-
const commitMsgFile =
|
|
52078
|
+
const commitMsgFile = _chunkO2V4JHMGcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
52079
52079
|
console.log(chalk_template_default`
|
|
52080
52080
|
{bold.#999999 ----------------------------------------}
|
|
52081
52081
|
|
|
@@ -52099,8 +52099,8 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
|
|
|
52099
52099
|
]);
|
|
52100
52100
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
52101
52101
|
if (dryRun) {
|
|
52102
|
-
|
|
52103
|
-
|
|
52102
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
52103
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
52104
52104
|
} else {
|
|
52105
52105
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
52106
52106
|
_chunkFNIN2HF7cjs.run.call(void 0, config, command);
|
|
@@ -64568,13 +64568,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
64568
64568
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
64569
64569
|
async function releaseVersion(config, args) {
|
|
64570
64570
|
try {
|
|
64571
|
-
|
|
64571
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running release version command", config);
|
|
64572
64572
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
64573
64573
|
exitOnError: true
|
|
64574
64574
|
});
|
|
64575
64575
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
64576
64576
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
64577
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _178 => _178.workspaceRoot]), () => (
|
|
64577
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _178 => _178.workspaceRoot]), () => ( _chunkO2V4JHMGcjs.findWorkspaceRoot.call(void 0, )));
|
|
64578
64578
|
if (args.verbose) {
|
|
64579
64579
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
64580
64580
|
}
|
|
@@ -64589,10 +64589,10 @@ async function releaseVersion(config, args) {
|
|
|
64589
64589
|
]);
|
|
64590
64590
|
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".`);
|
|
64591
64591
|
}
|
|
64592
|
-
|
|
64592
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
64593
64593
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
64594
64594
|
if (filterError) {
|
|
64595
|
-
|
|
64595
|
+
_chunkO2V4JHMGcjs.writeError.call(void 0, filterError.title, config);
|
|
64596
64596
|
throw new Error(filterError.title);
|
|
64597
64597
|
}
|
|
64598
64598
|
const tree = new (0, _treejs.FsTree)(workspaceRoot2, true);
|
|
@@ -64601,10 +64601,10 @@ async function releaseVersion(config, args) {
|
|
|
64601
64601
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
64602
64602
|
const generatorCallbacks = [];
|
|
64603
64603
|
if (_optionalChain([args, 'access', _184 => _184.projects, 'optionalAccess', _185 => _185.length])) {
|
|
64604
|
-
|
|
64604
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
64605
64605
|
for (const releaseGroup of releaseGroups) {
|
|
64606
64606
|
const releaseGroupName = releaseGroup.name;
|
|
64607
|
-
|
|
64607
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
64608
64608
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
64609
64609
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
64610
64610
|
projectGraph,
|
|
@@ -64613,7 +64613,7 @@ async function releaseVersion(config, args) {
|
|
|
64613
64613
|
releaseGroupProjectNames
|
|
64614
64614
|
);
|
|
64615
64615
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
64616
|
-
|
|
64616
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
64617
64617
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
64618
64618
|
const generatorData = resolveGeneratorData({
|
|
64619
64619
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -64666,7 +64666,7 @@ async function releaseVersion(config, args) {
|
|
|
64666
64666
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _192 => _192.version, 'access', _193 => _193.git, 'access', _194 => _194.commitArgs])
|
|
64667
64667
|
});
|
|
64668
64668
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _195 => _195.version, 'access', _196 => _196.git, 'access', _197 => _197.stageChanges])))) {
|
|
64669
|
-
|
|
64669
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
64670
64670
|
await _gitjs.gitAdd.call(void 0, {
|
|
64671
64671
|
changedFiles: changedFiles2,
|
|
64672
64672
|
dryRun: args.dryRun,
|
|
@@ -64674,7 +64674,7 @@ async function releaseVersion(config, args) {
|
|
|
64674
64674
|
});
|
|
64675
64675
|
}
|
|
64676
64676
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _198 => _198.version, 'access', _199 => _199.git, 'access', _200 => _200.tag])))) {
|
|
64677
|
-
|
|
64677
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
64678
64678
|
for (const tag of gitTagValues2) {
|
|
64679
64679
|
await _gitjs.gitTag.call(void 0, {
|
|
64680
64680
|
tag,
|
|
@@ -64761,7 +64761,7 @@ async function releaseVersion(config, args) {
|
|
|
64761
64761
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _216 => _216.version, 'access', _217 => _217.git, 'access', _218 => _218.commitArgs])
|
|
64762
64762
|
});
|
|
64763
64763
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _219 => _219.version, 'access', _220 => _220.git, 'access', _221 => _221.stageChanges])))) {
|
|
64764
|
-
|
|
64764
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
64765
64765
|
await _gitjs.gitAdd.call(void 0, {
|
|
64766
64766
|
changedFiles,
|
|
64767
64767
|
dryRun: args.dryRun,
|
|
@@ -64769,7 +64769,7 @@ async function releaseVersion(config, args) {
|
|
|
64769
64769
|
});
|
|
64770
64770
|
}
|
|
64771
64771
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _222 => _222.version, 'access', _223 => _223.git, 'access', _224 => _224.tag])))) {
|
|
64772
|
-
|
|
64772
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
64773
64773
|
for (const tag of gitTagValues) {
|
|
64774
64774
|
await _gitjs.gitTag.call(void 0, {
|
|
64775
64775
|
tag,
|
|
@@ -64785,8 +64785,8 @@ async function releaseVersion(config, args) {
|
|
|
64785
64785
|
projectsVersionData: versionData
|
|
64786
64786
|
};
|
|
64787
64787
|
} catch (error) {
|
|
64788
|
-
|
|
64789
|
-
|
|
64788
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
64789
|
+
_chunkO2V4JHMGcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
64790
64790
|
- Details: ${error.message}
|
|
64791
64791
|
- Stacktrace: ${error.stack}`, config);
|
|
64792
64792
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -64797,7 +64797,7 @@ async function releaseVersion(config, args) {
|
|
|
64797
64797
|
}
|
|
64798
64798
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
64799
64799
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
64800
|
-
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _231 => _231.workspaceRoot]), () => (
|
|
64800
|
+
const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _231 => _231.workspaceRoot]), () => ( _chunkO2V4JHMGcjs.findWorkspaceRoot.call(void 0, )));
|
|
64801
64801
|
const generatorOptions = {
|
|
64802
64802
|
// Always ensure a string to avoid generator schema validation errors
|
|
64803
64803
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -64816,7 +64816,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
64816
64816
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
64817
64817
|
}
|
|
64818
64818
|
appendVersionData(versionData, versionResult.data);
|
|
64819
|
-
|
|
64819
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
64820
64820
|
return versionResult.callback;
|
|
64821
64821
|
}
|
|
64822
64822
|
_chunkKK4YC43Scjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -64824,10 +64824,10 @@ function printAndFlushChanges(config, tree, isDryRun) {
|
|
|
64824
64824
|
const changes = tree.listChanges();
|
|
64825
64825
|
for (const f of changes) {
|
|
64826
64826
|
if (f.type === "CREATE") {
|
|
64827
|
-
|
|
64827
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
64828
64828
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _232 => _232.content, 'optionalAccess', _233 => _233.toString, 'call', _234 => _234()]) || "");
|
|
64829
64829
|
} else if (f.type === "UPDATE") {
|
|
64830
|
-
|
|
64830
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
64831
64831
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
64832
64832
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _235 => _235.content, 'optionalAccess', _236 => _236.toString, 'call', _237 => _237()]) || "");
|
|
64833
64833
|
} else if (f.type === "DELETE") {
|
|
@@ -64899,12 +64899,12 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
64899
64899
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64900
64900
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
64901
64901
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
64902
|
-
|
|
64902
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
64903
64903
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
64904
|
-
|
|
64904
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
64905
64905
|
const to = options.head || process.env.NX_HEAD;
|
|
64906
64906
|
const from = options.base || process.env.NX_BASE;
|
|
64907
|
-
|
|
64907
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
64908
64908
|
- From: ${from}
|
|
64909
64909
|
- To: ${to}
|
|
64910
64910
|
`, config);
|
|
@@ -64916,14 +64916,14 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
64916
64916
|
}, {});
|
|
64917
64917
|
}
|
|
64918
64918
|
const nxReleaseConfig = _chunkP2CHIYIKcjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
64919
|
-
|
|
64920
|
-
|
|
64919
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
64920
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
64921
64921
|
const releaseChangelog = _changelogjs.createAPI.call(void 0, nxReleaseConfig);
|
|
64922
64922
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
64923
|
-
|
|
64923
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
64924
64924
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
64925
64925
|
dryRun: false,
|
|
64926
|
-
verbose:
|
|
64926
|
+
verbose: _chunkO2V4JHMGcjs.isVerbose.call(void 0, config.logLevel),
|
|
64927
64927
|
preid: config.preid,
|
|
64928
64928
|
deleteVersionPlans: false,
|
|
64929
64929
|
stageChanges: true,
|
|
@@ -64936,25 +64936,25 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
64936
64936
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _240 => _240.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
64937
64937
|
versionData: projectsVersionData,
|
|
64938
64938
|
dryRun: false,
|
|
64939
|
-
verbose:
|
|
64939
|
+
verbose: _chunkO2V4JHMGcjs.isVerbose.call(void 0, config.logLevel),
|
|
64940
64940
|
to,
|
|
64941
64941
|
from,
|
|
64942
64942
|
gitCommit: true,
|
|
64943
64943
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
64944
64944
|
});
|
|
64945
|
-
|
|
64945
|
+
_chunkO2V4JHMGcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
64946
64946
|
if (options.skipPublish) {
|
|
64947
|
-
|
|
64947
|
+
_chunkO2V4JHMGcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
64948
64948
|
} else {
|
|
64949
64949
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _241 => _241[key], 'optionalAccess', _242 => _242.newVersion]));
|
|
64950
64950
|
if (changedProjects.length > 0) {
|
|
64951
|
-
|
|
64951
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
64952
64952
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
64953
64953
|
`, config);
|
|
64954
64954
|
const result2 = await releasePublish({
|
|
64955
64955
|
...options,
|
|
64956
64956
|
dryRun: !!options.dryRun,
|
|
64957
|
-
verbose:
|
|
64957
|
+
verbose: _chunkO2V4JHMGcjs.isVerbose.call(void 0, config.logLevel)
|
|
64958
64958
|
});
|
|
64959
64959
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _243 => _243[key], 'optionalAccess', _244 => _244.code]) && _optionalChain([result2, 'access', _245 => _245[key], 'optionalAccess', _246 => _246.code]) > 0);
|
|
64960
64960
|
if (failedProjects.length > 0) {
|
|
@@ -64965,18 +64965,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
64965
64965
|
`);
|
|
64966
64966
|
}
|
|
64967
64967
|
} else {
|
|
64968
|
-
|
|
64968
|
+
_chunkO2V4JHMGcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
64969
64969
|
}
|
|
64970
64970
|
}
|
|
64971
|
-
|
|
64971
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
64972
64972
|
}, "runRelease");
|
|
64973
64973
|
|
|
64974
64974
|
// src/cli/index.ts
|
|
64975
64975
|
var _config = {};
|
|
64976
64976
|
function createProgram(config) {
|
|
64977
64977
|
_config = config;
|
|
64978
|
-
|
|
64979
|
-
const root2 =
|
|
64978
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
64979
|
+
const root2 = _chunkO2V4JHMGcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
64980
64980
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
64981
64981
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
64982
64982
|
root2 && process.chdir(root2);
|
|
@@ -65004,14 +65004,14 @@ function createProgram(config) {
|
|
|
65004
65004
|
_chunkKK4YC43Scjs.__name.call(void 0, createProgram, "createProgram");
|
|
65005
65005
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
65006
65006
|
try {
|
|
65007
|
-
|
|
65007
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
65008
65008
|
await runCommit(config, dryRun);
|
|
65009
|
-
|
|
65009
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
65010
65010
|
|
|
65011
65011
|
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}
|
|
65012
65012
|
`, _config);
|
|
65013
65013
|
} catch (error) {
|
|
65014
|
-
|
|
65014
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
65015
65015
|
|
|
65016
65016
|
${error.message}`, _config);
|
|
65017
65017
|
throw new Error(error.message, {
|
|
@@ -65022,11 +65022,11 @@ ${error.message}`, _config);
|
|
|
65022
65022
|
_chunkKK4YC43Scjs.__name.call(void 0, commitAction, "commitAction");
|
|
65023
65023
|
async function readmeAction(options) {
|
|
65024
65024
|
try {
|
|
65025
|
-
|
|
65025
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
65026
65026
|
await runReadme(options);
|
|
65027
|
-
|
|
65027
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
65028
65028
|
} catch (error) {
|
|
65029
|
-
|
|
65029
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
65030
65030
|
|
|
65031
65031
|
${error.message}`);
|
|
65032
65032
|
throw new Error(error.message, {
|
|
@@ -65037,16 +65037,16 @@ ${error.message}`);
|
|
|
65037
65037
|
_chunkKK4YC43Scjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
65038
65038
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
65039
65039
|
try {
|
|
65040
|
-
|
|
65040
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
65041
65041
|
await runRelease(_config, {
|
|
65042
65042
|
dryRun,
|
|
65043
65043
|
project,
|
|
65044
65044
|
base,
|
|
65045
65045
|
head
|
|
65046
65046
|
});
|
|
65047
|
-
|
|
65047
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
65048
65048
|
} catch (error) {
|
|
65049
|
-
|
|
65049
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
65050
65050
|
|
|
65051
65051
|
${error.message} ${error.stack ? `
|
|
65052
65052
|
|
|
@@ -65060,15 +65060,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
65060
65060
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
65061
65061
|
async function commitLintAction({ config, message: message2, file }) {
|
|
65062
65062
|
try {
|
|
65063
|
-
|
|
65063
|
+
_chunkO2V4JHMGcjs.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);
|
|
65064
65064
|
await runCommitLint(_config, {
|
|
65065
65065
|
config,
|
|
65066
65066
|
message: message2,
|
|
65067
65067
|
file
|
|
65068
65068
|
});
|
|
65069
|
-
|
|
65069
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
65070
65070
|
} catch (error) {
|
|
65071
|
-
|
|
65071
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
65072
65072
|
|
|
65073
65073
|
${error.message}`, _config);
|
|
65074
65074
|
throw new Error(error.message, {
|
|
@@ -65080,15 +65080,15 @@ _chunkKK4YC43Scjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
65080
65080
|
|
|
65081
65081
|
// bin/git.ts
|
|
65082
65082
|
void (async () => {
|
|
65083
|
-
const config = await
|
|
65083
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
65084
65084
|
try {
|
|
65085
|
-
|
|
65085
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
65086
65086
|
const program2 = createProgram(config);
|
|
65087
65087
|
await program2.parseAsync(process.argv);
|
|
65088
|
-
|
|
65089
|
-
|
|
65088
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
65089
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
65090
65090
|
} catch (error) {
|
|
65091
|
-
|
|
65091
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
65092
65092
|
process.exit(1);
|
|
65093
65093
|
}
|
|
65094
65094
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
17
17
|
require('./chunk-P2CHIYIK.cjs');
|
|
18
18
|
require('./chunk-HI7REZLL.cjs');
|
|
19
19
|
require('./chunk-LUO23224.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkO2V4JHMGcjs.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
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkO2V4JHMGcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
17
17
|
require('./chunk-P2CHIYIK.cjs');
|
|
18
18
|
require('./chunk-HI7REZLL.cjs');
|
|
19
19
|
require('./chunk-LUO23224.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkO2V4JHMGcjs.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
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkO2V4JHMGcjs.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 _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
17
17
|
require('./chunk-P2CHIYIK.cjs');
|
|
18
18
|
require('./chunk-HI7REZLL.cjs');
|
|
19
19
|
require('./chunk-LUO23224.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkO2V4JHMGcjs.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
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/post-merge.js
CHANGED
package/bin/pre-commit.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
15
15
|
require('./chunk-P2CHIYIK.cjs');
|
|
16
16
|
require('./chunk-HI7REZLL.cjs');
|
|
17
17
|
require('./chunk-LUO23224.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkMJ243FGHcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkO2V4JHMGcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
41
41
|
process.exit(1);
|
|
42
42
|
}
|
|
43
43
|
})();
|
package/bin/pre-commit.js
CHANGED
package/bin/pre-install.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
13
13
|
require('./chunk-P2CHIYIK.cjs');
|
|
14
14
|
require('./chunk-HI7REZLL.cjs');
|
|
15
15
|
require('./chunk-LUO23224.cjs');
|
|
@@ -23,19 +23,19 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
39
39
|
process.exit(1);
|
|
40
40
|
}
|
|
41
41
|
})();
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
18
18
|
require('./chunk-P2CHIYIK.cjs');
|
|
19
19
|
require('./chunk-HI7REZLL.cjs');
|
|
20
20
|
require('./chunk-LUO23224.cjs');
|
|
@@ -31,12 +31,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
31
31
|
var _promises = require('fs/promises');
|
|
32
32
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
33
33
|
void (async () => {
|
|
34
|
-
const config = await
|
|
34
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
|
|
40
40
|
const errors = [];
|
|
41
41
|
if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json"))) {
|
|
42
42
|
errors.push('Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"');
|
|
@@ -58,26 +58,26 @@ void (async () => {
|
|
|
58
58
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
59
59
|
}
|
|
60
60
|
if (errors.length > 0) {
|
|
61
|
-
|
|
61
|
+
_chunkO2V4JHMGcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
62
62
|
for (const error of errors) {
|
|
63
63
|
console.error(error);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkO2V4JHMGcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
68
68
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
69
|
try {
|
|
70
70
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
|
|
71
71
|
} catch (error) {
|
|
72
|
-
|
|
72
|
+
_chunkO2V4JHMGcjs.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/pre-push.
|
|
73
73
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
|
|
74
|
-
|
|
74
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
81
81
|
process.exit(1);
|
|
82
82
|
}
|
|
83
83
|
})();
|
package/bin/pre-push.js
CHANGED
package/bin/prepare.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
13
13
|
require('./chunk-P2CHIYIK.cjs');
|
|
14
14
|
require('./chunk-HI7REZLL.cjs');
|
|
15
15
|
require('./chunk-LUO23224.cjs');
|
|
@@ -23,17 +23,17 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkO2V4JHMGcjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkO2V4JHMGcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
37
37
|
process.exit(1);
|
|
38
38
|
}
|
|
39
39
|
})();
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkO2V4JHMGcjs = require('./chunk-O2V4JHMG.cjs');
|
|
11
11
|
require('./chunk-P2CHIYIK.cjs');
|
|
12
12
|
require('./chunk-HI7REZLL.cjs');
|
|
13
13
|
require('./chunk-LUO23224.cjs');
|
|
@@ -21,13 +21,13 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkO2V4JHMGcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkO2V4JHMGcjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkO2V4JHMGcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkO2V4JHMGcjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED