@storm-software/git-tools 2.113.11 → 2.113.12
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-IRGUI27L.cjs → chunk-F4T262FK.cjs} +1 -1
- package/bin/{chunk-OQEBEKDJ.js → chunk-IMYRNNG2.js} +1 -1
- package/bin/git.cjs +63 -63
- 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 +2 -2
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 -->
|
|
@@ -33521,7 +33521,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
33521
33521
|
release: WorkspaceReleaseConfigSchema,
|
|
33522
33522
|
socials: WorkspaceSocialsConfigSchema,
|
|
33523
33523
|
error: errorConfigSchema,
|
|
33524
|
-
mode: z.enum(MODE_OPTIONS).
|
|
33524
|
+
mode: z.enum(MODE_OPTIONS).default(MODE_OPTIONS[2]).describe("The current runtime environment mode for the package"),
|
|
33525
33525
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
33526
33526
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
33527
33527
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -33585,7 +33585,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
33585
33585
|
release: WorkspaceReleaseConfigSchema,
|
|
33586
33586
|
socials: WorkspaceSocialsConfigSchema,
|
|
33587
33587
|
error: errorConfigSchema,
|
|
33588
|
-
mode: z.enum(MODE_OPTIONS).
|
|
33588
|
+
mode: z.enum(MODE_OPTIONS).default(MODE_OPTIONS[2]).describe("The current runtime environment mode for the package"),
|
|
33589
33589
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
33590
33590
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
33591
33591
|
directories: WorkspaceDirectoryConfigSchema,
|
package/bin/git.cjs
CHANGED
|
@@ -20,7 +20,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkFMYKTN2Zcjs = require('./chunk-FMYKTN2Z.cjs');
|
|
@@ -3274,7 +3274,7 @@ var require_wrap_ansi = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
|
|
|
3274
3274
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
3275
3275
|
var stringWidth = require_string_width();
|
|
3276
3276
|
var stripAnsi2 = require_strip_ansi();
|
|
3277
|
-
var ansiStyles2 =
|
|
3277
|
+
var ansiStyles2 = _chunkF4T262FKcjs.require_ansi_styles.call(void 0, );
|
|
3278
3278
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3279
3279
|
"\x1B",
|
|
3280
3280
|
"\x9B"
|
|
@@ -15298,7 +15298,7 @@ var require_node = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
|
|
|
15298
15298
|
);
|
|
15299
15299
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
15300
15300
|
try {
|
|
15301
|
-
const supportsColor2 =
|
|
15301
|
+
const supportsColor2 = _chunkF4T262FKcjs.require_supports_color.call(void 0, );
|
|
15302
15302
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15303
15303
|
exports.colors = [
|
|
15304
15304
|
20,
|
|
@@ -70469,7 +70469,7 @@ function getRuleFromScopeEnum(scopeEnum2) {
|
|
|
70469
70469
|
// src/commitlint/run.ts
|
|
70470
70470
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
70471
70471
|
var runCommitLint = async (config, params) => {
|
|
70472
|
-
|
|
70472
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0,
|
|
70473
70473
|
"\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
|
|
70474
70474
|
config
|
|
70475
70475
|
);
|
|
@@ -70477,7 +70477,7 @@ var runCommitLint = async (config, params) => {
|
|
|
70477
70477
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
70478
70478
|
commitMessage = params.message;
|
|
70479
70479
|
} else {
|
|
70480
|
-
const commitFile =
|
|
70480
|
+
const commitFile = _chunkF4T262FKcjs.joinPaths.call(void 0,
|
|
70481
70481
|
config.workspaceRoot,
|
|
70482
70482
|
params.file || params.message || COMMIT_EDITMSG_PATH
|
|
70483
70483
|
);
|
|
@@ -70494,17 +70494,17 @@ var runCommitLint = async (config, params) => {
|
|
|
70494
70494
|
if (upstreamRemote) {
|
|
70495
70495
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _84 => _84.split, 'call', _85 => _85(" "), 'access', _86 => _86[0], 'optionalAccess', _87 => _87.trim, 'call', _88 => _88()]);
|
|
70496
70496
|
if (!upstreamRemoteIdentifier) {
|
|
70497
|
-
|
|
70497
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0,
|
|
70498
70498
|
`No upstream remote found for ${config.name}.git. Skipping comparison.`,
|
|
70499
70499
|
config
|
|
70500
70500
|
);
|
|
70501
70501
|
return;
|
|
70502
70502
|
}
|
|
70503
|
-
|
|
70503
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
70504
70504
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
70505
70505
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
70506
70506
|
} else {
|
|
70507
|
-
|
|
70507
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0,
|
|
70508
70508
|
`No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`,
|
|
70509
70509
|
config
|
|
70510
70510
|
);
|
|
@@ -70512,7 +70512,7 @@ var runCommitLint = async (config, params) => {
|
|
|
70512
70512
|
}
|
|
70513
70513
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
70514
70514
|
if (!commitMessage) {
|
|
70515
|
-
|
|
70515
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0,
|
|
70516
70516
|
"No commits found. Skipping commit message validation.",
|
|
70517
70517
|
config
|
|
70518
70518
|
);
|
|
@@ -70535,7 +70535,7 @@ var runCommitLint = async (config, params) => {
|
|
|
70535
70535
|
helpUrl: commitlintConfig.helpUrl
|
|
70536
70536
|
});
|
|
70537
70537
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
70538
|
-
|
|
70538
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
70539
70539
|
} else {
|
|
70540
70540
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
70541
70541
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -71696,7 +71696,7 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
|
|
|
71696
71696
|
answers: {}
|
|
71697
71697
|
};
|
|
71698
71698
|
} else {
|
|
71699
|
-
|
|
71699
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
71700
71700
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
71701
71701
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default])) {
|
|
71702
71702
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _95 => _95.default]);
|
|
@@ -71759,7 +71759,7 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
|
|
|
71759
71759
|
const project = projectConfigurations.projects[scope];
|
|
71760
71760
|
if (project) {
|
|
71761
71761
|
let description = `${project.name} - ${project.root}`;
|
|
71762
|
-
const packageJsonPath =
|
|
71762
|
+
const packageJsonPath = _chunkF4T262FKcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
71763
71763
|
if (_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
71764
71764
|
const packageJson = await hfs.json(packageJsonPath);
|
|
71765
71765
|
description = packageJson.description || description;
|
|
@@ -71839,10 +71839,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
71839
71839
|
|
|
71840
71840
|
// src/commit/run.ts
|
|
71841
71841
|
var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
71842
|
-
const config = await
|
|
71842
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
71843
71843
|
const state = await createState(config, commitizenFile);
|
|
71844
71844
|
if (dryRun) {
|
|
71845
|
-
|
|
71845
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
71846
71846
|
}
|
|
71847
71847
|
console.log(chalk_template_default`
|
|
71848
71848
|
{bold.#999999 ----------------------------------------}
|
|
@@ -71852,7 +71852,7 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
|
|
|
71852
71852
|
`);
|
|
71853
71853
|
state.answers = await askQuestions(state);
|
|
71854
71854
|
const message2 = formatCommitMessage(state);
|
|
71855
|
-
const commitMsgFile =
|
|
71855
|
+
const commitMsgFile = _chunkF4T262FKcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
71856
71856
|
console.log(chalk_template_default`
|
|
71857
71857
|
{bold.#999999 ----------------------------------------}
|
|
71858
71858
|
|
|
@@ -71865,11 +71865,11 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
|
|
|
71865
71865
|
commandItems.push(...["--file", commitMsgFile]);
|
|
71866
71866
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
71867
71867
|
if (dryRun) {
|
|
71868
|
-
|
|
71868
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0,
|
|
71869
71869
|
`Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
|
|
71870
71870
|
config
|
|
71871
71871
|
);
|
|
71872
|
-
|
|
71872
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
71873
71873
|
} else {
|
|
71874
71874
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
71875
71875
|
_chunkGWDOCACNcjs.run.call(void 0, config, command);
|
|
@@ -77652,7 +77652,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
|
77652
77652
|
|
|
77653
77653
|
// src/release/changelog.ts
|
|
77654
77654
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
77655
|
-
var chalk3 = _chunkIG6EXAQUcjs.__toESM.call(void 0,
|
|
77655
|
+
var chalk3 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkF4T262FKcjs.require_source.call(void 0, ), 1);
|
|
77656
77656
|
var import_enquirer2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
77657
77657
|
var import_semver2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_semver4(), 1);
|
|
77658
77658
|
var import_tmp = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_tmp2(), 1);
|
|
@@ -81569,7 +81569,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
|
|
|
81569
81569
|
};
|
|
81570
81570
|
}
|
|
81571
81571
|
async render() {
|
|
81572
|
-
this.workspaceConfig = await
|
|
81572
|
+
this.workspaceConfig = await _chunkF4T262FKcjs.getWorkspaceConfig.call(void 0, );
|
|
81573
81573
|
return await super.render();
|
|
81574
81574
|
}
|
|
81575
81575
|
preprocessChanges() {
|
|
@@ -81751,7 +81751,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
|
|
|
81751
81751
|
// src/release/github.ts
|
|
81752
81752
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
81753
81753
|
var import_devkit = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_devkit(), 1);
|
|
81754
|
-
var chalk2 = _chunkIG6EXAQUcjs.__toESM.call(void 0,
|
|
81754
|
+
var chalk2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkF4T262FKcjs.require_source.call(void 0, ), 1);
|
|
81755
81755
|
var import_enquirer = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
81756
81756
|
|
|
81757
81757
|
|
|
@@ -82116,7 +82116,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
|
|
|
82116
82116
|
// src/release/changelog.ts
|
|
82117
82117
|
function createAPI(overrideReleaseConfig) {
|
|
82118
82118
|
return async function releaseChangelog(args) {
|
|
82119
|
-
const workspaceConfig = await
|
|
82119
|
+
const workspaceConfig = await _chunkF4T262FKcjs.getWorkspaceConfig.call(void 0, );
|
|
82120
82120
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, { exitOnError: true });
|
|
82121
82121
|
const nxJson = _nxjson.readNxJson.call(void 0, );
|
|
82122
82122
|
const userProvidedReleaseConfig = _deepmergejson.deepMergeJson.call(void 0,
|
|
@@ -82811,7 +82811,7 @@ async function generateChangelogForWorkspace({
|
|
|
82811
82811
|
workspaceChangelogVersion,
|
|
82812
82812
|
changes
|
|
82813
82813
|
}) {
|
|
82814
|
-
const workspaceConfig = await
|
|
82814
|
+
const workspaceConfig = await _chunkF4T262FKcjs.getWorkspaceConfig.call(void 0, );
|
|
82815
82815
|
if (!workspaceConfig) {
|
|
82816
82816
|
throw new Error(
|
|
82817
82817
|
`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
|
|
@@ -82927,7 +82927,7 @@ async function generateChangelogForProjects({
|
|
|
82927
82927
|
nxReleaseConfig,
|
|
82928
82928
|
projectToAdditionalDependencyBumps
|
|
82929
82929
|
}) {
|
|
82930
|
-
const workspaceConfig = await
|
|
82930
|
+
const workspaceConfig = await _chunkF4T262FKcjs.getWorkspaceConfig.call(void 0, );
|
|
82931
82931
|
if (!workspaceConfig) {
|
|
82932
82932
|
throw new Error(
|
|
82933
82933
|
`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
|
|
@@ -83235,7 +83235,7 @@ var runRelease = async (config, options) => {
|
|
|
83235
83235
|
throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
|
|
83236
83236
|
}
|
|
83237
83237
|
if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config)) {
|
|
83238
|
-
|
|
83238
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
83239
83239
|
"You must be a member of the Storm Software organization to run the release process.",
|
|
83240
83240
|
config
|
|
83241
83241
|
);
|
|
@@ -83252,12 +83252,12 @@ var runRelease = async (config, options) => {
|
|
|
83252
83252
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
83253
83253
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
83254
83254
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
83255
|
-
|
|
83255
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
83256
83256
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
83257
|
-
|
|
83257
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
83258
83258
|
const to = options.head || process.env.NX_HEAD;
|
|
83259
83259
|
const from = options.base || process.env.NX_BASE;
|
|
83260
|
-
|
|
83260
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0,
|
|
83261
83261
|
`Using the following Git SHAs to determine the release content:
|
|
83262
83262
|
- From: ${from}
|
|
83263
83263
|
- To: ${to}
|
|
@@ -83278,18 +83278,18 @@ var runRelease = async (config, options) => {
|
|
|
83278
83278
|
nxJson.release,
|
|
83279
83279
|
DEFAULT_RELEASE_CONFIG
|
|
83280
83280
|
);
|
|
83281
|
-
|
|
83281
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0,
|
|
83282
83282
|
"Using the following `nx.json` release configuration values",
|
|
83283
83283
|
config
|
|
83284
83284
|
);
|
|
83285
|
-
|
|
83285
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
83286
83286
|
const releaseVersion = _versionjs.createAPI.call(void 0, nxReleaseConfig);
|
|
83287
83287
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
83288
83288
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
83289
|
-
|
|
83289
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
83290
83290
|
const { workspaceVersion, projectsVersionData } = await releaseVersion({
|
|
83291
83291
|
dryRun: false,
|
|
83292
|
-
verbose:
|
|
83292
|
+
verbose: _chunkF4T262FKcjs.isVerbose.call(void 0, config.logLevel),
|
|
83293
83293
|
preid: config.preid,
|
|
83294
83294
|
deleteVersionPlans: false,
|
|
83295
83295
|
stageChanges: true,
|
|
@@ -83300,15 +83300,15 @@ var runRelease = async (config, options) => {
|
|
|
83300
83300
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _314 => _314.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
83301
83301
|
versionData: projectsVersionData,
|
|
83302
83302
|
dryRun: false,
|
|
83303
|
-
verbose:
|
|
83303
|
+
verbose: _chunkF4T262FKcjs.isVerbose.call(void 0, config.logLevel),
|
|
83304
83304
|
to,
|
|
83305
83305
|
from,
|
|
83306
83306
|
gitCommit: true,
|
|
83307
83307
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
83308
83308
|
});
|
|
83309
|
-
|
|
83309
|
+
_chunkF4T262FKcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
83310
83310
|
if (options.skipPublish) {
|
|
83311
|
-
|
|
83311
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0,
|
|
83312
83312
|
"Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
|
|
83313
83313
|
config
|
|
83314
83314
|
);
|
|
@@ -83317,7 +83317,7 @@ var runRelease = async (config, options) => {
|
|
|
83317
83317
|
(key) => _optionalChain([projectsVersionData, 'access', _315 => _315[key], 'optionalAccess', _316 => _316.newVersion])
|
|
83318
83318
|
);
|
|
83319
83319
|
if (changedProjects.length > 0) {
|
|
83320
|
-
|
|
83320
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0,
|
|
83321
83321
|
`Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
83322
83322
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
83323
83323
|
`,
|
|
@@ -83327,7 +83327,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
|
83327
83327
|
const result2 = await releasePublish({
|
|
83328
83328
|
...options,
|
|
83329
83329
|
dryRun: !!options.dryRun,
|
|
83330
|
-
verbose:
|
|
83330
|
+
verbose: _chunkF4T262FKcjs.isVerbose.call(void 0, config.logLevel)
|
|
83331
83331
|
});
|
|
83332
83332
|
const failedProjects = Object.keys(result2).filter(
|
|
83333
83333
|
(key) => _optionalChain([result2, 'access', _317 => _317[key], 'optionalAccess', _318 => _318.code]) && _optionalChain([result2, 'access', _319 => _319[key], 'optionalAccess', _320 => _320.code]) > 0
|
|
@@ -83342,10 +83342,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
83342
83342
|
);
|
|
83343
83343
|
}
|
|
83344
83344
|
} else {
|
|
83345
|
-
|
|
83345
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
83346
83346
|
}
|
|
83347
83347
|
}
|
|
83348
|
-
|
|
83348
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
83349
83349
|
};
|
|
83350
83350
|
async function updatePackageManifests(projectsVersionData, config) {
|
|
83351
83351
|
let projectGraph;
|
|
@@ -83360,7 +83360,7 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
83360
83360
|
Object.keys(projectsVersionData).map(async (node) => {
|
|
83361
83361
|
const projectNode = projectGraph.nodes[node];
|
|
83362
83362
|
if (!_optionalChain([projectNode, 'optionalAccess', _323 => _323.data, 'access', _324 => _324.root])) {
|
|
83363
|
-
|
|
83363
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0,
|
|
83364
83364
|
`Project node ${node} not found in the project graph. Skipping manifest update.`,
|
|
83365
83365
|
config
|
|
83366
83366
|
);
|
|
@@ -83368,17 +83368,17 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
83368
83368
|
}
|
|
83369
83369
|
const versionData = projectsVersionData[node];
|
|
83370
83370
|
if (_optionalChain([projectNode, 'optionalAccess', _325 => _325.data, 'access', _326 => _326.root]) && versionData && versionData.newVersion !== null) {
|
|
83371
|
-
|
|
83371
|
+
_chunkF4T262FKcjs.writeTrace.call(void 0,
|
|
83372
83372
|
`Writing version ${versionData.newVersion} update to manifest file for ${node}
|
|
83373
83373
|
`,
|
|
83374
83374
|
config
|
|
83375
83375
|
);
|
|
83376
|
-
const projectRoot =
|
|
83376
|
+
const projectRoot = _chunkF4T262FKcjs.joinPaths.call(void 0,
|
|
83377
83377
|
config.workspaceRoot,
|
|
83378
83378
|
projectNode.data.root
|
|
83379
83379
|
);
|
|
83380
|
-
const packageJsonPath =
|
|
83381
|
-
const cargoTomlPath =
|
|
83380
|
+
const packageJsonPath = _chunkF4T262FKcjs.joinPaths.call(void 0, projectRoot, "package.json");
|
|
83381
|
+
const cargoTomlPath = _chunkF4T262FKcjs.joinPaths.call(void 0, projectRoot, "Cargo.toml");
|
|
83382
83382
|
if (_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
83383
83383
|
const packageJsonContent = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
83384
83384
|
const packageJson = JSON.parse(packageJsonContent);
|
|
@@ -83396,7 +83396,7 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
83396
83396
|
})
|
|
83397
83397
|
);
|
|
83398
83398
|
} else {
|
|
83399
|
-
|
|
83399
|
+
_chunkF4T262FKcjs.writeWarning.call(void 0, "No project nodes found. Skipping manifest updates.", config);
|
|
83400
83400
|
}
|
|
83401
83401
|
}
|
|
83402
83402
|
|
|
@@ -83404,8 +83404,8 @@ async function updatePackageManifests(projectsVersionData, config) {
|
|
|
83404
83404
|
var _config = {};
|
|
83405
83405
|
function createProgram(config) {
|
|
83406
83406
|
_config = config;
|
|
83407
|
-
|
|
83408
|
-
const root2 =
|
|
83407
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
83408
|
+
const root2 = _chunkF4T262FKcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
83409
83409
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
83410
83410
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
83411
83411
|
if (root2) {
|
|
@@ -83470,12 +83470,12 @@ async function commitAction({
|
|
|
83470
83470
|
dryRun = false
|
|
83471
83471
|
}) {
|
|
83472
83472
|
try {
|
|
83473
|
-
|
|
83473
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0,
|
|
83474
83474
|
`\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
|
|
83475
83475
|
_config
|
|
83476
83476
|
);
|
|
83477
83477
|
await runCommit(config, dryRun);
|
|
83478
|
-
|
|
83478
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0,
|
|
83479
83479
|
`\u{1F389} Storm Commit processing completed successfully!
|
|
83480
83480
|
|
|
83481
83481
|
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}
|
|
@@ -83483,7 +83483,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
|
|
|
83483
83483
|
_config
|
|
83484
83484
|
);
|
|
83485
83485
|
} catch (error) {
|
|
83486
|
-
|
|
83486
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
83487
83487
|
`A fatal error occurred while running commit action:
|
|
83488
83488
|
|
|
83489
83489
|
${error.message}`,
|
|
@@ -83494,14 +83494,14 @@ ${error.message}`,
|
|
|
83494
83494
|
}
|
|
83495
83495
|
async function readmeAction(options) {
|
|
83496
83496
|
try {
|
|
83497
|
-
|
|
83497
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
83498
83498
|
await runReadme(options);
|
|
83499
|
-
|
|
83499
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0,
|
|
83500
83500
|
"Formatting of the workspace's README.md files is complete\n",
|
|
83501
83501
|
_config
|
|
83502
83502
|
);
|
|
83503
83503
|
} catch (error) {
|
|
83504
|
-
|
|
83504
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
83505
83505
|
`A fatal error occurred while running README format action:
|
|
83506
83506
|
|
|
83507
83507
|
${error.message}`
|
|
@@ -83516,7 +83516,7 @@ async function releaseAction({
|
|
|
83516
83516
|
dryRun
|
|
83517
83517
|
}) {
|
|
83518
83518
|
try {
|
|
83519
|
-
|
|
83519
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0,
|
|
83520
83520
|
"\u26A1 Running the Storm Release and Publish process on the workspace",
|
|
83521
83521
|
_config
|
|
83522
83522
|
);
|
|
@@ -83526,9 +83526,9 @@ async function releaseAction({
|
|
|
83526
83526
|
base,
|
|
83527
83527
|
head
|
|
83528
83528
|
});
|
|
83529
|
-
|
|
83529
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
83530
83530
|
} catch (error) {
|
|
83531
|
-
|
|
83531
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
83532
83532
|
`A fatal error occurred while running release action:
|
|
83533
83533
|
|
|
83534
83534
|
${error.message} ${error.stack ? `
|
|
@@ -83546,7 +83546,7 @@ async function commitLintAction({
|
|
|
83546
83546
|
file
|
|
83547
83547
|
}) {
|
|
83548
83548
|
try {
|
|
83549
|
-
|
|
83549
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0,
|
|
83550
83550
|
`\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _optionalChain([_config, 'access', _327 => _327.organization, 'optionalAccess', _328 => _328.name]) ? _optionalChain([_config, 'access', _329 => _329.organization, 'optionalAccess', _330 => _330.name]) : "Storm-Software"} repository's commit messages.`,
|
|
83551
83551
|
_config
|
|
83552
83552
|
);
|
|
@@ -83555,12 +83555,12 @@ async function commitLintAction({
|
|
|
83555
83555
|
message: message2,
|
|
83556
83556
|
file
|
|
83557
83557
|
});
|
|
83558
|
-
|
|
83558
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0,
|
|
83559
83559
|
"Linting the commit messages completed successfully!\n",
|
|
83560
83560
|
_config
|
|
83561
83561
|
);
|
|
83562
83562
|
} catch (error) {
|
|
83563
|
-
|
|
83563
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
83564
83564
|
`A fatal error occurred while linting the commit messages:
|
|
83565
83565
|
|
|
83566
83566
|
${error.message}`,
|
|
@@ -83572,18 +83572,18 @@ ${error.message}`,
|
|
|
83572
83572
|
|
|
83573
83573
|
// bin/git.ts
|
|
83574
83574
|
void (async () => {
|
|
83575
|
-
const config = await
|
|
83575
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
83576
83576
|
try {
|
|
83577
|
-
|
|
83577
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
83578
83578
|
const program2 = createProgram(config);
|
|
83579
83579
|
await program2.parseAsync(process.argv);
|
|
83580
|
-
|
|
83580
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0,
|
|
83581
83581
|
`\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
|
|
83582
83582
|
config
|
|
83583
83583
|
);
|
|
83584
|
-
|
|
83584
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
83585
83585
|
} catch (error) {
|
|
83586
|
-
|
|
83586
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
83587
83587
|
process.exit(1);
|
|
83588
83588
|
}
|
|
83589
83589
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
17
17
|
require('./chunk-FMYKTN2Z.cjs');
|
|
18
18
|
require('./chunk-MXO7CLUN.cjs');
|
|
19
19
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkF4T262FKcjs.writeError.call(void 0,
|
|
39
39
|
`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.
|
|
40
40
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
44
44
|
}
|
|
45
45
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
46
|
-
|
|
46
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
48
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
49
49
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
50
50
|
config
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
})();
|
package/bin/post-checkout.js
CHANGED
package/bin/post-commit.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
17
17
|
require('./chunk-FMYKTN2Z.cjs');
|
|
18
18
|
require('./chunk-MXO7CLUN.cjs');
|
|
19
19
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkF4T262FKcjs.writeError.call(void 0,
|
|
39
39
|
`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.
|
|
40
40
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
44
44
|
}
|
|
45
45
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-commit");
|
|
46
|
-
|
|
46
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
48
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
49
49
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
50
50
|
config
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
})();
|
package/bin/post-commit.js
CHANGED
package/bin/post-merge.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
17
17
|
require('./chunk-FMYKTN2Z.cjs');
|
|
18
18
|
require('./chunk-MXO7CLUN.cjs');
|
|
19
19
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkF4T262FKcjs.writeError.call(void 0,
|
|
39
39
|
`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.
|
|
40
40
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
41
41
|
config
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
44
44
|
}
|
|
45
45
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-merge");
|
|
46
|
-
|
|
46
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
48
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
49
49
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
50
50
|
config
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
55
|
})();
|
package/bin/post-merge.js
CHANGED
package/bin/pre-commit.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
15
15
|
require('./chunk-FMYKTN2Z.cjs');
|
|
16
16
|
require('./chunk-MXO7CLUN.cjs');
|
|
17
17
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -25,25 +25,25 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunkHTVOKCRJcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
34
|
+
_chunkF4T262FKcjs.writeError.call(void 0,
|
|
35
35
|
"Please regenerate the package lock file before committing...",
|
|
36
36
|
config
|
|
37
37
|
);
|
|
38
|
-
|
|
38
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
41
41
|
} catch (error) {
|
|
42
|
-
|
|
42
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
43
43
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
44
44
|
config
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
}
|
|
49
49
|
})();
|
package/bin/pre-commit.js
CHANGED
package/bin/pre-install.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
13
13
|
require('./chunk-FMYKTN2Z.cjs');
|
|
14
14
|
require('./chunk-MXO7CLUN.cjs');
|
|
15
15
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -23,22 +23,22 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkGWDOCACNcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
37
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
38
38
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
39
39
|
config
|
|
40
40
|
);
|
|
41
|
-
|
|
41
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
42
42
|
process.exit(1);
|
|
43
43
|
}
|
|
44
44
|
})();
|
package/bin/pre-install.js
CHANGED
package/bin/pre-push.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
18
18
|
require('./chunk-FMYKTN2Z.cjs');
|
|
19
19
|
require('./chunk-MXO7CLUN.cjs');
|
|
20
20
|
require('./chunk-GSZ2Y7H4.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 _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkF4T262FKcjs.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(
|
|
42
42
|
_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json")
|
|
@@ -71,32 +71,32 @@ void (async () => {
|
|
|
71
71
|
errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
|
|
72
72
|
}
|
|
73
73
|
if (errors.length > 0) {
|
|
74
|
-
|
|
74
|
+
_chunkF4T262FKcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
|
|
75
75
|
for (const error of errors) {
|
|
76
76
|
console.error(error);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
_chunkF4T262FKcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
81
81
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
82
82
|
try {
|
|
83
83
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
|
|
84
84
|
} catch (error) {
|
|
85
|
-
|
|
85
|
+
_chunkF4T262FKcjs.writeError.call(void 0,
|
|
86
86
|
`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.
|
|
87
87
|
Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
|
|
88
88
|
config
|
|
89
89
|
);
|
|
90
|
-
|
|
90
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
91
91
|
}
|
|
92
92
|
_chunkGWDOCACNcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
93
|
-
|
|
93
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
94
94
|
} catch (error) {
|
|
95
|
-
|
|
95
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
96
96
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
97
97
|
config
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
100
100
|
process.exit(1);
|
|
101
101
|
}
|
|
102
102
|
})();
|
package/bin/pre-push.js
CHANGED
package/bin/prepare.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
13
13
|
require('./chunk-FMYKTN2Z.cjs');
|
|
14
14
|
require('./chunk-MXO7CLUN.cjs');
|
|
15
15
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -23,20 +23,20 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkF4T262FKcjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkGWDOCACNcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkF4T262FKcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
35
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
36
36
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
40
40
|
process.exit(1);
|
|
41
41
|
}
|
|
42
42
|
})();
|
package/bin/prepare.js
CHANGED
package/bin/version-warning.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var _chunkHTVOKCRJcjs = require('./chunk-HTVOKCRJ.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkF4T262FKcjs = require('./chunk-F4T262FK.cjs');
|
|
11
11
|
require('./chunk-FMYKTN2Z.cjs');
|
|
12
12
|
require('./chunk-MXO7CLUN.cjs');
|
|
13
13
|
require('./chunk-GSZ2Y7H4.cjs');
|
|
@@ -21,16 +21,16 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkF4T262FKcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkF4T262FKcjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
29
|
+
_chunkF4T262FKcjs.writeFatal.call(void 0,
|
|
30
30
|
`A fatal error occurred while running the program: ${error.message}`,
|
|
31
31
|
config
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
_chunkF4T262FKcjs.exitWithError.call(void 0, config);
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
36
36
|
})();
|
package/bin/version-warning.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tools for managing Git repositories within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -265,5 +265,5 @@
|
|
|
265
265
|
"zod": "^4.0.2"
|
|
266
266
|
},
|
|
267
267
|
"publishConfig": { "access": "public" },
|
|
268
|
-
"gitHead": "
|
|
268
|
+
"gitHead": "005337ee22db37f2a7054c2be1a48eb960e0b39b"
|
|
269
269
|
}
|