@storm-software/git-tools 2.96.13 → 2.97.0
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/bin/{chunk-HQRC5X3M.js → chunk-7HYXXE5S.js} +3 -15
- package/bin/{chunk-X4ZORIOI.cjs → chunk-LFH4CIZM.cjs} +3 -15
- package/bin/git.cjs +73 -73
- package/bin/git.js +2 -2
- 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
|
@@ -35343,23 +35343,11 @@ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
|
35343
35343
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
35344
35344
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
35345
35345
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
35346
|
-
Storm Software is an open source software development organization and
|
|
35347
|
-
of Cyclone UI, Storm Stack and Acidic.
|
|
35346
|
+
[Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
35348
35347
|
|
|
35349
|
-
|
|
35350
|
-
one where anyone can create software without years of prior development
|
|
35351
|
-
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
35352
|
-
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
35348
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
35353
35349
|
|
|
35354
|
-
|
|
35355
|
-
receive release notifications, ask questions, and get involved.
|
|
35356
|
-
|
|
35357
|
-
If this sounds interesting, and you would like to help us in creating the next
|
|
35358
|
-
generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our
|
|
35359
|
-
[Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
35360
|
-
|
|
35361
|
-
{ width="200" style="display: block; margin: 0 auto" }
|
|
35362
|
-
{ height="90" style="display: block; margin: 0 auto" }
|
|
35350
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
35363
35351
|
`;
|
|
35364
35352
|
|
|
35365
35353
|
// ../config/src/define-config.ts
|
|
@@ -35343,23 +35343,11 @@ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
|
35343
35343
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
35344
35344
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
35345
35345
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
35346
|
-
Storm Software is an open source software development organization and
|
|
35347
|
-
of Cyclone UI, Storm Stack and Acidic.
|
|
35346
|
+
[Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
35348
35347
|
|
|
35349
|
-
|
|
35350
|
-
one where anyone can create software without years of prior development
|
|
35351
|
-
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
35352
|
-
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
35348
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
35353
35349
|
|
|
35354
|
-
|
|
35355
|
-
receive release notifications, ask questions, and get involved.
|
|
35356
|
-
|
|
35357
|
-
If this sounds interesting, and you would like to help us in creating the next
|
|
35358
|
-
generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our
|
|
35359
|
-
[Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
35360
|
-
|
|
35361
|
-
{ width="200" style="display: block; margin: 0 auto" }
|
|
35362
|
-
{ height="90" style="display: block; margin: 0 auto" }
|
|
35350
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
35363
35351
|
`;
|
|
35364
35352
|
|
|
35365
35353
|
// ../config/src/define-config.ts
|
package/bin/git.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkP2CHIYIKcjs = require('./chunk-P2CHIYIK.cjs');
|
|
@@ -3264,7 +3264,7 @@ var require_wrap_ansi = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
|
|
|
3264
3264
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
3265
3265
|
var stringWidth = require_string_width();
|
|
3266
3266
|
var stripAnsi2 = require_strip_ansi();
|
|
3267
|
-
var ansiStyles2 =
|
|
3267
|
+
var ansiStyles2 = _chunkLFH4CIZMcjs.require_ansi_styles.call(void 0, );
|
|
3268
3268
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
3269
3269
|
"\x1B",
|
|
3270
3270
|
"\x9B"
|
|
@@ -15606,7 +15606,7 @@ var require_node = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
|
|
|
15606
15606
|
1
|
|
15607
15607
|
];
|
|
15608
15608
|
try {
|
|
15609
|
-
const supportsColor2 =
|
|
15609
|
+
const supportsColor2 = _chunkLFH4CIZMcjs.require_supports_color.call(void 0, );
|
|
15610
15610
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15611
15611
|
exports.colors = [
|
|
15612
15612
|
20,
|
|
@@ -67098,12 +67098,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0,
|
|
|
67098
67098
|
// src/commitlint/run.ts
|
|
67099
67099
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
67100
67100
|
var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (config, params) => {
|
|
67101
|
-
|
|
67101
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
67102
67102
|
let commitMessage;
|
|
67103
67103
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
67104
67104
|
commitMessage = params.message;
|
|
67105
67105
|
} else {
|
|
67106
|
-
const commitFile =
|
|
67106
|
+
const commitFile = _chunkLFH4CIZMcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
67107
67107
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
67108
67108
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
67109
67109
|
}
|
|
@@ -67115,19 +67115,19 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
|
|
|
67115
67115
|
if (upstreamRemote) {
|
|
67116
67116
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
67117
67117
|
if (!upstreamRemoteIdentifier) {
|
|
67118
|
-
|
|
67118
|
+
_chunkLFH4CIZMcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
67119
67119
|
return;
|
|
67120
67120
|
}
|
|
67121
|
-
|
|
67121
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
67122
67122
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
67123
67123
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
67124
67124
|
} else {
|
|
67125
|
-
|
|
67125
|
+
_chunkLFH4CIZMcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
67126
67126
|
return;
|
|
67127
67127
|
}
|
|
67128
67128
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
67129
67129
|
if (!commitMessage) {
|
|
67130
|
-
|
|
67130
|
+
_chunkLFH4CIZMcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
67131
67131
|
return;
|
|
67132
67132
|
}
|
|
67133
67133
|
}
|
|
@@ -67145,7 +67145,7 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
|
|
|
67145
67145
|
helpUrl: commitlintConfig.helpUrl
|
|
67146
67146
|
});
|
|
67147
67147
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
67148
|
-
|
|
67148
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
67149
67149
|
} else {
|
|
67150
67150
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
67151
67151
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -68339,7 +68339,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
|
|
|
68339
68339
|
answers: {}
|
|
68340
68340
|
};
|
|
68341
68341
|
} else {
|
|
68342
|
-
|
|
68342
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
68343
68343
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
68344
68344
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
68345
68345
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -68380,7 +68380,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
|
|
|
68380
68380
|
}
|
|
68381
68381
|
if (project) {
|
|
68382
68382
|
let description = `${project.name} - ${project.root}`;
|
|
68383
|
-
const packageJsonPath =
|
|
68383
|
+
const packageJsonPath = _chunkLFH4CIZMcjs.joinPaths.call(void 0, project.root, "package.json");
|
|
68384
68384
|
if (await hfs.isFile(packageJsonPath)) {
|
|
68385
68385
|
const packageJson = await hfs.json(packageJsonPath);
|
|
68386
68386
|
description = packageJson.description || description;
|
|
@@ -68454,10 +68454,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
68454
68454
|
|
|
68455
68455
|
// src/commit/run.ts
|
|
68456
68456
|
var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
68457
|
-
const config = await
|
|
68457
|
+
const config = await _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
68458
68458
|
const state = await createState(config, commitizenFile);
|
|
68459
68459
|
if (dryRun) {
|
|
68460
|
-
|
|
68460
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
68461
68461
|
}
|
|
68462
68462
|
console.log(chalk_template_default`
|
|
68463
68463
|
{bold.#999999 ----------------------------------------}
|
|
@@ -68467,7 +68467,7 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
|
|
|
68467
68467
|
`);
|
|
68468
68468
|
state.answers = await askQuestions(state);
|
|
68469
68469
|
const message2 = formatCommitMessage(state);
|
|
68470
|
-
const commitMsgFile =
|
|
68470
|
+
const commitMsgFile = _chunkLFH4CIZMcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
68471
68471
|
console.log(chalk_template_default`
|
|
68472
68472
|
{bold.#999999 ----------------------------------------}
|
|
68473
68473
|
|
|
@@ -68491,8 +68491,8 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
|
|
|
68491
68491
|
]);
|
|
68492
68492
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
68493
68493
|
if (dryRun) {
|
|
68494
|
-
|
|
68495
|
-
|
|
68494
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
68495
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
68496
68496
|
} else {
|
|
68497
68497
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
68498
68498
|
_chunkFNIN2HF7cjs.run.call(void 0, config, command);
|
|
@@ -80885,7 +80885,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
|
80885
80885
|
|
|
80886
80886
|
// src/release/changelog.ts
|
|
80887
80887
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
80888
|
-
var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0,
|
|
80888
|
+
var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0, _chunkLFH4CIZMcjs.require_source.call(void 0, ), 1);
|
|
80889
80889
|
var import_enquirer = _chunkKK4YC43Scjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
80890
80890
|
var import_semver2 = _chunkKK4YC43Scjs.__toESM.call(void 0, require_semver2(), 1);
|
|
80891
80891
|
var import_tmp = _chunkKK4YC43Scjs.__toESM.call(void 0, require_tmp2(), 1);
|
|
@@ -84394,7 +84394,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84394
84394
|
super(config);_class13.prototype.__init27.call(this);;
|
|
84395
84395
|
}
|
|
84396
84396
|
async render() {
|
|
84397
|
-
this.workspaceConfig = await
|
|
84397
|
+
this.workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
|
|
84398
84398
|
return super.render();
|
|
84399
84399
|
}
|
|
84400
84400
|
preprocessChanges() {
|
|
@@ -84576,7 +84576,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84576
84576
|
// src/release/changelog.ts
|
|
84577
84577
|
function createAPI(overrideReleaseConfig) {
|
|
84578
84578
|
return /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async function releaseChangelog(args) {
|
|
84579
|
-
const workspaceConfig = await
|
|
84579
|
+
const workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
|
|
84580
84580
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
|
|
84581
84581
|
exitOnError: true
|
|
84582
84582
|
});
|
|
@@ -85114,7 +85114,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85114
85114
|
}
|
|
85115
85115
|
_chunkKK4YC43Scjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
|
|
85116
85116
|
async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
|
|
85117
|
-
const workspaceConfig = await
|
|
85117
|
+
const workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
|
|
85118
85118
|
if (!workspaceConfig) {
|
|
85119
85119
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85120
85120
|
}
|
|
@@ -85221,7 +85221,7 @@ ${rootChangelogContents}`;
|
|
|
85221
85221
|
}
|
|
85222
85222
|
_chunkKK4YC43Scjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
|
|
85223
85223
|
async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
|
|
85224
|
-
const workspaceConfig = await
|
|
85224
|
+
const workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
|
|
85225
85225
|
if (!workspaceConfig) {
|
|
85226
85226
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85227
85227
|
}
|
|
@@ -85442,7 +85442,7 @@ function formatGithubReleaseNotes(content, workspaceConfig) {
|
|
|
85442
85442
|
if (!workspaceConfig) {
|
|
85443
85443
|
return content;
|
|
85444
85444
|
}
|
|
85445
|
-
return `
|
|
85445
|
+
return `
|
|
85446
85446
|
${workspaceConfig.release.header || ""}
|
|
85447
85447
|
${content}
|
|
85448
85448
|
|
|
@@ -85527,13 +85527,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
85527
85527
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
85528
85528
|
async function releaseVersion(config, args) {
|
|
85529
85529
|
try {
|
|
85530
|
-
|
|
85530
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running release version command", config);
|
|
85531
85531
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
85532
85532
|
exitOnError: true
|
|
85533
85533
|
});
|
|
85534
85534
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85535
85535
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85536
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _229 => _229.workspaceRoot]), () => (
|
|
85536
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _229 => _229.workspaceRoot]), () => ( _chunkLFH4CIZMcjs.findWorkspaceRoot.call(void 0, )));
|
|
85537
85537
|
if (args.verbose) {
|
|
85538
85538
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85539
85539
|
}
|
|
@@ -85548,10 +85548,10 @@ async function releaseVersion(config, args) {
|
|
|
85548
85548
|
]);
|
|
85549
85549
|
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".`);
|
|
85550
85550
|
}
|
|
85551
|
-
|
|
85551
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
85552
85552
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
85553
85553
|
if (filterError) {
|
|
85554
|
-
|
|
85554
|
+
_chunkLFH4CIZMcjs.writeError.call(void 0, filterError.title, config);
|
|
85555
85555
|
throw new Error(filterError.title);
|
|
85556
85556
|
}
|
|
85557
85557
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
@@ -85560,10 +85560,10 @@ async function releaseVersion(config, args) {
|
|
|
85560
85560
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85561
85561
|
const generatorCallbacks = [];
|
|
85562
85562
|
if (_optionalChain([args, 'access', _235 => _235.projects, 'optionalAccess', _236 => _236.length])) {
|
|
85563
|
-
|
|
85563
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85564
85564
|
for (const releaseGroup of releaseGroups) {
|
|
85565
85565
|
const releaseGroupName = releaseGroup.name;
|
|
85566
|
-
|
|
85566
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
85567
85567
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85568
85568
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
85569
85569
|
projectGraph,
|
|
@@ -85572,7 +85572,7 @@ async function releaseVersion(config, args) {
|
|
|
85572
85572
|
releaseGroupProjectNames
|
|
85573
85573
|
);
|
|
85574
85574
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
85575
|
-
|
|
85575
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
85576
85576
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
85577
85577
|
const generatorData = resolveGeneratorData({
|
|
85578
85578
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -85625,7 +85625,7 @@ async function releaseVersion(config, args) {
|
|
|
85625
85625
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _243 => _243.version, 'access', _244 => _244.git, 'access', _245 => _245.commitArgs])
|
|
85626
85626
|
});
|
|
85627
85627
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _246 => _246.version, 'access', _247 => _247.git, 'access', _248 => _248.stageChanges])))) {
|
|
85628
|
-
|
|
85628
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85629
85629
|
await _gitjs.gitAdd.call(void 0, {
|
|
85630
85630
|
changedFiles: changedFiles2,
|
|
85631
85631
|
dryRun: args.dryRun,
|
|
@@ -85633,7 +85633,7 @@ async function releaseVersion(config, args) {
|
|
|
85633
85633
|
});
|
|
85634
85634
|
}
|
|
85635
85635
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _249 => _249.version, 'access', _250 => _250.git, 'access', _251 => _251.tag])))) {
|
|
85636
|
-
|
|
85636
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85637
85637
|
for (const tag of gitTagValues2) {
|
|
85638
85638
|
await _gitjs.gitTag.call(void 0, {
|
|
85639
85639
|
tag,
|
|
@@ -85720,7 +85720,7 @@ async function releaseVersion(config, args) {
|
|
|
85720
85720
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _267 => _267.version, 'access', _268 => _268.git, 'access', _269 => _269.commitArgs])
|
|
85721
85721
|
});
|
|
85722
85722
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _270 => _270.version, 'access', _271 => _271.git, 'access', _272 => _272.stageChanges])))) {
|
|
85723
|
-
|
|
85723
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85724
85724
|
await _gitjs.gitAdd.call(void 0, {
|
|
85725
85725
|
changedFiles,
|
|
85726
85726
|
dryRun: args.dryRun,
|
|
@@ -85728,7 +85728,7 @@ async function releaseVersion(config, args) {
|
|
|
85728
85728
|
});
|
|
85729
85729
|
}
|
|
85730
85730
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _273 => _273.version, 'access', _274 => _274.git, 'access', _275 => _275.tag])))) {
|
|
85731
|
-
|
|
85731
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85732
85732
|
for (const tag of gitTagValues) {
|
|
85733
85733
|
await _gitjs.gitTag.call(void 0, {
|
|
85734
85734
|
tag,
|
|
@@ -85744,8 +85744,8 @@ async function releaseVersion(config, args) {
|
|
|
85744
85744
|
projectsVersionData: versionData
|
|
85745
85745
|
};
|
|
85746
85746
|
} catch (error) {
|
|
85747
|
-
|
|
85748
|
-
|
|
85747
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
85748
|
+
_chunkLFH4CIZMcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
85749
85749
|
- Details: ${error.message}
|
|
85750
85750
|
- Stacktrace: ${error.stack}`, config);
|
|
85751
85751
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -85756,7 +85756,7 @@ async function releaseVersion(config, args) {
|
|
|
85756
85756
|
}
|
|
85757
85757
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85758
85758
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85759
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _282 => _282.workspaceRoot]), () => (
|
|
85759
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _282 => _282.workspaceRoot]), () => ( _chunkLFH4CIZMcjs.findWorkspaceRoot.call(void 0, )));
|
|
85760
85760
|
const generatorOptions = {
|
|
85761
85761
|
// Always ensure a string to avoid generator schema validation errors
|
|
85762
85762
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85775,7 +85775,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
85775
85775
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
85776
85776
|
}
|
|
85777
85777
|
appendVersionData(versionData, versionResult.data);
|
|
85778
|
-
|
|
85778
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
85779
85779
|
return versionResult.callback;
|
|
85780
85780
|
}
|
|
85781
85781
|
_chunkKK4YC43Scjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -85783,10 +85783,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85783
85783
|
const changes = tree.listChanges();
|
|
85784
85784
|
for (const f of changes) {
|
|
85785
85785
|
if (f.type === "CREATE") {
|
|
85786
|
-
|
|
85786
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85787
85787
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _283 => _283.content, 'optionalAccess', _284 => _284.toString, 'call', _285 => _285()]) || "");
|
|
85788
85788
|
} else if (f.type === "UPDATE") {
|
|
85789
|
-
|
|
85789
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85790
85790
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85791
85791
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _286 => _286.content, 'optionalAccess', _287 => _287.toString, 'call', _288 => _288()]) || "");
|
|
85792
85792
|
} else if (f.type === "DELETE") {
|
|
@@ -85858,12 +85858,12 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85858
85858
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85859
85859
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85860
85860
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
85861
|
-
|
|
85861
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
85862
85862
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85863
|
-
|
|
85863
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
85864
85864
|
const to = options.head || process.env.NX_HEAD;
|
|
85865
85865
|
const from = options.base || process.env.NX_BASE;
|
|
85866
|
-
|
|
85866
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
85867
85867
|
- From: ${from}
|
|
85868
85868
|
- To: ${to}
|
|
85869
85869
|
`, config);
|
|
@@ -85875,14 +85875,14 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85875
85875
|
}, {});
|
|
85876
85876
|
}
|
|
85877
85877
|
const nxReleaseConfig = _chunkP2CHIYIKcjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
85878
|
-
|
|
85879
|
-
|
|
85878
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
85879
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
85880
85880
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
85881
85881
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
85882
|
-
|
|
85882
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
85883
85883
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
85884
85884
|
dryRun: false,
|
|
85885
|
-
verbose:
|
|
85885
|
+
verbose: _chunkLFH4CIZMcjs.isVerbose.call(void 0, config.logLevel),
|
|
85886
85886
|
preid: config.preid,
|
|
85887
85887
|
deleteVersionPlans: false,
|
|
85888
85888
|
stageChanges: true,
|
|
@@ -85895,25 +85895,25 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85895
85895
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _294 => _294.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
85896
85896
|
versionData: projectsVersionData,
|
|
85897
85897
|
dryRun: false,
|
|
85898
|
-
verbose:
|
|
85898
|
+
verbose: _chunkLFH4CIZMcjs.isVerbose.call(void 0, config.logLevel),
|
|
85899
85899
|
to,
|
|
85900
85900
|
from,
|
|
85901
85901
|
gitCommit: true,
|
|
85902
85902
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
85903
85903
|
});
|
|
85904
|
-
|
|
85904
|
+
_chunkLFH4CIZMcjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
85905
85905
|
if (options.skipPublish) {
|
|
85906
|
-
|
|
85906
|
+
_chunkLFH4CIZMcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
85907
85907
|
} else {
|
|
85908
85908
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _295 => _295[key], 'optionalAccess', _296 => _296.newVersion]));
|
|
85909
85909
|
if (changedProjects.length > 0) {
|
|
85910
|
-
|
|
85910
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
85911
85911
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
85912
85912
|
`, config);
|
|
85913
85913
|
const result2 = await releasePublish({
|
|
85914
85914
|
...options,
|
|
85915
85915
|
dryRun: !!options.dryRun,
|
|
85916
|
-
verbose:
|
|
85916
|
+
verbose: _chunkLFH4CIZMcjs.isVerbose.call(void 0, config.logLevel)
|
|
85917
85917
|
});
|
|
85918
85918
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _297 => _297[key], 'optionalAccess', _298 => _298.code]) && _optionalChain([result2, 'access', _299 => _299[key], 'optionalAccess', _300 => _300.code]) > 0);
|
|
85919
85919
|
if (failedProjects.length > 0) {
|
|
@@ -85924,18 +85924,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
85924
85924
|
`);
|
|
85925
85925
|
}
|
|
85926
85926
|
} else {
|
|
85927
|
-
|
|
85927
|
+
_chunkLFH4CIZMcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
85928
85928
|
}
|
|
85929
85929
|
}
|
|
85930
|
-
|
|
85930
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
85931
85931
|
}, "runRelease");
|
|
85932
85932
|
|
|
85933
85933
|
// src/cli/index.ts
|
|
85934
85934
|
var _config = {};
|
|
85935
85935
|
function createProgram(config) {
|
|
85936
85936
|
_config = config;
|
|
85937
|
-
|
|
85938
|
-
const root2 =
|
|
85937
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
85938
|
+
const root2 = _chunkLFH4CIZMcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
85939
85939
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
85940
85940
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
85941
85941
|
root2 && process.chdir(root2);
|
|
@@ -85963,14 +85963,14 @@ function createProgram(config) {
|
|
|
85963
85963
|
_chunkKK4YC43Scjs.__name.call(void 0, createProgram, "createProgram");
|
|
85964
85964
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
85965
85965
|
try {
|
|
85966
|
-
|
|
85966
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
85967
85967
|
await runCommit(config, dryRun);
|
|
85968
|
-
|
|
85968
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
85969
85969
|
|
|
85970
85970
|
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}
|
|
85971
85971
|
`, _config);
|
|
85972
85972
|
} catch (error) {
|
|
85973
|
-
|
|
85973
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
85974
85974
|
|
|
85975
85975
|
${error.message}`, _config);
|
|
85976
85976
|
throw new Error(error.message, {
|
|
@@ -85981,11 +85981,11 @@ ${error.message}`, _config);
|
|
|
85981
85981
|
_chunkKK4YC43Scjs.__name.call(void 0, commitAction, "commitAction");
|
|
85982
85982
|
async function readmeAction(options) {
|
|
85983
85983
|
try {
|
|
85984
|
-
|
|
85984
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
85985
85985
|
await runReadme(options);
|
|
85986
|
-
|
|
85986
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
85987
85987
|
} catch (error) {
|
|
85988
|
-
|
|
85988
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
85989
85989
|
|
|
85990
85990
|
${error.message}`);
|
|
85991
85991
|
throw new Error(error.message, {
|
|
@@ -85996,16 +85996,16 @@ ${error.message}`);
|
|
|
85996
85996
|
_chunkKK4YC43Scjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
85997
85997
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
85998
85998
|
try {
|
|
85999
|
-
|
|
85999
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
86000
86000
|
await runRelease(_config, {
|
|
86001
86001
|
dryRun,
|
|
86002
86002
|
project,
|
|
86003
86003
|
base,
|
|
86004
86004
|
head
|
|
86005
86005
|
});
|
|
86006
|
-
|
|
86006
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
86007
86007
|
} catch (error) {
|
|
86008
|
-
|
|
86008
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
86009
86009
|
|
|
86010
86010
|
${error.message} ${error.stack ? `
|
|
86011
86011
|
|
|
@@ -86019,15 +86019,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
86019
86019
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
86020
86020
|
async function commitLintAction({ config, message: message2, file }) {
|
|
86021
86021
|
try {
|
|
86022
|
-
|
|
86022
|
+
_chunkLFH4CIZMcjs.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);
|
|
86023
86023
|
await runCommitLint(_config, {
|
|
86024
86024
|
config,
|
|
86025
86025
|
message: message2,
|
|
86026
86026
|
file
|
|
86027
86027
|
});
|
|
86028
|
-
|
|
86028
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
86029
86029
|
} catch (error) {
|
|
86030
|
-
|
|
86030
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
86031
86031
|
|
|
86032
86032
|
${error.message}`, _config);
|
|
86033
86033
|
throw new Error(error.message, {
|
|
@@ -86039,15 +86039,15 @@ _chunkKK4YC43Scjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
86039
86039
|
|
|
86040
86040
|
// bin/git.ts
|
|
86041
86041
|
void (async () => {
|
|
86042
|
-
const config = await
|
|
86042
|
+
const config = await _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
86043
86043
|
try {
|
|
86044
|
-
|
|
86044
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
86045
86045
|
const program2 = createProgram(config);
|
|
86046
86046
|
await program2.parseAsync(process.argv);
|
|
86047
|
-
|
|
86048
|
-
|
|
86047
|
+
_chunkLFH4CIZMcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
86048
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
86049
86049
|
} catch (error) {
|
|
86050
|
-
|
|
86050
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
86051
86051
|
process.exit(1);
|
|
86052
86052
|
}
|
|
86053
86053
|
})();
|
package/bin/git.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeInfo,
|
|
22
22
|
writeSuccess,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7HYXXE5S.js";
|
|
25
25
|
import {
|
|
26
26
|
defu
|
|
27
27
|
} from "./chunk-5L6OQPTU.js";
|
|
@@ -85441,7 +85441,7 @@ function formatGithubReleaseNotes(content, workspaceConfig) {
|
|
|
85441
85441
|
if (!workspaceConfig) {
|
|
85442
85442
|
return content;
|
|
85443
85443
|
}
|
|
85444
|
-
return `
|
|
85444
|
+
return `
|
|
85445
85445
|
${workspaceConfig.release.header || ""}
|
|
85446
85446
|
${content}
|
|
85447
85447
|
|
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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkLFH4CIZMcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkLFH4CIZMcjs.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
|
+
_chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkLFH4CIZMcjs.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 _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED