@storm-software/git-tools 2.104.18 → 2.104.20
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-QK2VZAYO.js → chunk-JAFROF2D.js} +2 -1
- package/bin/{chunk-LQQPLYSL.cjs → chunk-ZMBKNBZ3.cjs} +2 -1
- package/bin/git.cjs +72 -72
- package/bin/git.js +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -35356,6 +35356,7 @@ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, re
|
|
|
35356
35356
|
|
|
35357
35357
|
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](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
35358
35358
|
`;
|
|
35359
|
+
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
35359
35360
|
|
|
35360
35361
|
// ../config/src/define-config.ts
|
|
35361
35362
|
init_esm_shims();
|
|
@@ -39679,7 +39680,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
39679
39680
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
39680
39681
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
39681
39682
|
var errorConfigSchema = z.object({
|
|
39682
|
-
codesFile: z.string().trim().default(
|
|
39683
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
39683
39684
|
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
39684
39685
|
}).describe("The workspace's error config used during the error process");
|
|
39685
39686
|
var stormWorkspaceConfigSchema = z.object({
|
|
@@ -35356,6 +35356,7 @@ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, re
|
|
|
35356
35356
|
|
|
35357
35357
|
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](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
35358
35358
|
`;
|
|
35359
|
+
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
35359
35360
|
|
|
35360
35361
|
// ../config/src/define-config.ts
|
|
35361
35362
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
@@ -39679,7 +39680,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
39679
39680
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
39680
39681
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
39681
39682
|
var errorConfigSchema = z.object({
|
|
39682
|
-
codesFile: z.string().trim().default(
|
|
39683
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
39683
39684
|
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
39684
39685
|
}).describe("The workspace's error config used during the error process");
|
|
39685
39686
|
var stormWorkspaceConfigSchema = z.object({
|
package/bin/git.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkDKTCGII6cjs = require('./chunk-DKTCGII6.cjs');
|
|
@@ -3264,7 +3264,7 @@ var require_wrap_ansi = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
3264
3264
|
_chunkUQVAG5OCcjs.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 = _chunkZMBKNBZ3cjs.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 = _chunkUQVAG5OCcjs.__commonJS.call(void 0, {
|
|
|
15606
15606
|
1
|
|
15607
15607
|
];
|
|
15608
15608
|
try {
|
|
15609
|
-
const supportsColor2 =
|
|
15609
|
+
const supportsColor2 = _chunkZMBKNBZ3cjs.require_supports_color.call(void 0, );
|
|
15610
15610
|
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
15611
15611
|
exports.colors = [
|
|
15612
15612
|
20,
|
|
@@ -67097,12 +67097,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0,
|
|
|
67097
67097
|
// src/commitlint/run.ts
|
|
67098
67098
|
var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
|
|
67099
67099
|
var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (config, params) => {
|
|
67100
|
-
|
|
67100
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
|
|
67101
67101
|
let commitMessage;
|
|
67102
67102
|
if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
|
|
67103
67103
|
commitMessage = params.message;
|
|
67104
67104
|
} else {
|
|
67105
|
-
const commitFile =
|
|
67105
|
+
const commitFile = _chunkZMBKNBZ3cjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
|
|
67106
67106
|
if (_fs.existsSync.call(void 0, commitFile)) {
|
|
67107
67107
|
commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
|
|
67108
67108
|
}
|
|
@@ -67114,19 +67114,19 @@ var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
67114
67114
|
if (upstreamRemote) {
|
|
67115
67115
|
const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
|
|
67116
67116
|
if (!upstreamRemoteIdentifier) {
|
|
67117
|
-
|
|
67117
|
+
_chunkZMBKNBZ3cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
67118
67118
|
return;
|
|
67119
67119
|
}
|
|
67120
|
-
|
|
67120
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
|
|
67121
67121
|
const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
|
|
67122
67122
|
gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
|
|
67123
67123
|
} else {
|
|
67124
|
-
|
|
67124
|
+
_chunkZMBKNBZ3cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
|
|
67125
67125
|
return;
|
|
67126
67126
|
}
|
|
67127
67127
|
commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
|
|
67128
67128
|
if (!commitMessage) {
|
|
67129
|
-
|
|
67129
|
+
_chunkZMBKNBZ3cjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
|
|
67130
67130
|
return;
|
|
67131
67131
|
}
|
|
67132
67132
|
}
|
|
@@ -67144,7 +67144,7 @@ var runCommitLint = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async
|
|
|
67144
67144
|
helpUrl: commitlintConfig.helpUrl
|
|
67145
67145
|
});
|
|
67146
67146
|
if (!matchCommit || report.errors.length || report.warnings.length) {
|
|
67147
|
-
|
|
67147
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
|
|
67148
67148
|
} else {
|
|
67149
67149
|
let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
|
|
67150
67150
|
errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
|
|
@@ -68338,7 +68338,7 @@ var createState = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (c
|
|
|
68338
68338
|
answers: {}
|
|
68339
68339
|
};
|
|
68340
68340
|
} else {
|
|
68341
|
-
|
|
68341
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
|
|
68342
68342
|
let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
|
|
68343
68343
|
if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
|
|
68344
68344
|
commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
|
|
@@ -68379,7 +68379,7 @@ var createState = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (c
|
|
|
68379
68379
|
}
|
|
68380
68380
|
if (project) {
|
|
68381
68381
|
let description = `${project.name} - ${project.root}`;
|
|
68382
|
-
const packageJsonPath =
|
|
68382
|
+
const packageJsonPath = _chunkZMBKNBZ3cjs.joinPaths.call(void 0, project.root, "package.json");
|
|
68383
68383
|
if (await hfs.isFile(packageJsonPath)) {
|
|
68384
68384
|
const packageJson = await hfs.json(packageJsonPath);
|
|
68385
68385
|
description = packageJson.description || description;
|
|
@@ -68453,10 +68453,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
|
|
|
68453
68453
|
|
|
68454
68454
|
// src/commit/run.ts
|
|
68455
68455
|
var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
|
|
68456
|
-
const config = await
|
|
68456
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
68457
68457
|
const state = await createState(config, commitizenFile);
|
|
68458
68458
|
if (dryRun) {
|
|
68459
|
-
|
|
68459
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running in dry mode.", config);
|
|
68460
68460
|
}
|
|
68461
68461
|
console.log(chalk_template_default`
|
|
68462
68462
|
{bold.#999999 ----------------------------------------}
|
|
@@ -68466,7 +68466,7 @@ var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (com
|
|
|
68466
68466
|
`);
|
|
68467
68467
|
state.answers = await askQuestions(state);
|
|
68468
68468
|
const message2 = formatCommitMessage(state);
|
|
68469
|
-
const commitMsgFile =
|
|
68469
|
+
const commitMsgFile = _chunkZMBKNBZ3cjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
|
|
68470
68470
|
console.log(chalk_template_default`
|
|
68471
68471
|
{bold.#999999 ----------------------------------------}
|
|
68472
68472
|
|
|
@@ -68490,8 +68490,8 @@ var runCommit = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (com
|
|
|
68490
68490
|
]);
|
|
68491
68491
|
const command = (0, import_any_shell_escape.default)(commandItems);
|
|
68492
68492
|
if (dryRun) {
|
|
68493
|
-
|
|
68494
|
-
|
|
68493
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
68494
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
|
|
68495
68495
|
} else {
|
|
68496
68496
|
await _promises2.default.writeFile(commitMsgFile, message2);
|
|
68497
68497
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, command);
|
|
@@ -80884,7 +80884,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
|
80884
80884
|
|
|
80885
80885
|
// src/release/changelog.ts
|
|
80886
80886
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
80887
|
-
var chalk2 = _chunkUQVAG5OCcjs.__toESM.call(void 0,
|
|
80887
|
+
var chalk2 = _chunkUQVAG5OCcjs.__toESM.call(void 0, _chunkZMBKNBZ3cjs.require_source.call(void 0, ), 1);
|
|
80888
80888
|
var import_enquirer = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_enquirer(), 1);
|
|
80889
80889
|
var import_semver2 = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_semver2(), 1);
|
|
80890
80890
|
var import_tmp = _chunkUQVAG5OCcjs.__toESM.call(void 0, require_tmp2(), 1);
|
|
@@ -84524,7 +84524,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84524
84524
|
super(config);_class13.prototype.__init27.call(this);;
|
|
84525
84525
|
}
|
|
84526
84526
|
async render() {
|
|
84527
|
-
this.workspaceConfig = await
|
|
84527
|
+
this.workspaceConfig = await _chunkZMBKNBZ3cjs.getWorkspaceConfig.call(void 0, );
|
|
84528
84528
|
return await super.render();
|
|
84529
84529
|
}
|
|
84530
84530
|
preprocessChanges() {
|
|
@@ -84698,7 +84698,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84698
84698
|
// src/release/changelog.ts
|
|
84699
84699
|
function createAPI(overrideReleaseConfig) {
|
|
84700
84700
|
return /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async function releaseChangelog(args) {
|
|
84701
|
-
const workspaceConfig = await
|
|
84701
|
+
const workspaceConfig = await _chunkZMBKNBZ3cjs.getWorkspaceConfig.call(void 0, );
|
|
84702
84702
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
|
|
84703
84703
|
exitOnError: true
|
|
84704
84704
|
});
|
|
@@ -85248,7 +85248,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85248
85248
|
}
|
|
85249
85249
|
_chunkUQVAG5OCcjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
|
|
85250
85250
|
async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
|
|
85251
|
-
const workspaceConfig = await
|
|
85251
|
+
const workspaceConfig = await _chunkZMBKNBZ3cjs.getWorkspaceConfig.call(void 0, );
|
|
85252
85252
|
if (!workspaceConfig) {
|
|
85253
85253
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85254
85254
|
}
|
|
@@ -85338,7 +85338,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
|
|
|
85338
85338
|
}
|
|
85339
85339
|
_chunkUQVAG5OCcjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
|
|
85340
85340
|
async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
|
|
85341
|
-
const workspaceConfig = await
|
|
85341
|
+
const workspaceConfig = await _chunkZMBKNBZ3cjs.getWorkspaceConfig.call(void 0, );
|
|
85342
85342
|
if (!workspaceConfig) {
|
|
85343
85343
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85344
85344
|
}
|
|
@@ -85644,13 +85644,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
85644
85644
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
85645
85645
|
async function releaseVersion(config, args) {
|
|
85646
85646
|
try {
|
|
85647
|
-
|
|
85647
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running release version command", config);
|
|
85648
85648
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
85649
85649
|
exitOnError: true
|
|
85650
85650
|
});
|
|
85651
85651
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85652
85652
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85653
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => (
|
|
85653
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => ( _chunkZMBKNBZ3cjs.findWorkspaceRoot.call(void 0, )));
|
|
85654
85654
|
if (args.verbose) {
|
|
85655
85655
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85656
85656
|
}
|
|
@@ -85665,10 +85665,10 @@ async function releaseVersion(config, args) {
|
|
|
85665
85665
|
]);
|
|
85666
85666
|
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".`);
|
|
85667
85667
|
}
|
|
85668
|
-
|
|
85668
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
85669
85669
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
85670
85670
|
if (filterError) {
|
|
85671
|
-
|
|
85671
|
+
_chunkZMBKNBZ3cjs.writeError.call(void 0, filterError.title, config);
|
|
85672
85672
|
throw new Error(filterError.title);
|
|
85673
85673
|
}
|
|
85674
85674
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
@@ -85677,10 +85677,10 @@ async function releaseVersion(config, args) {
|
|
|
85677
85677
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85678
85678
|
const generatorCallbacks = [];
|
|
85679
85679
|
if (_optionalChain([args, 'access', _248 => _248.projects, 'optionalAccess', _249 => _249.length])) {
|
|
85680
|
-
|
|
85680
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85681
85681
|
for (const releaseGroup of releaseGroups) {
|
|
85682
85682
|
const releaseGroupName = releaseGroup.name;
|
|
85683
|
-
|
|
85683
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
85684
85684
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85685
85685
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
85686
85686
|
projectGraph,
|
|
@@ -85689,7 +85689,7 @@ async function releaseVersion(config, args) {
|
|
|
85689
85689
|
releaseGroupProjectNames
|
|
85690
85690
|
);
|
|
85691
85691
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
85692
|
-
|
|
85692
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
85693
85693
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
85694
85694
|
const generatorData = resolveGeneratorData({
|
|
85695
85695
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -85742,7 +85742,7 @@ async function releaseVersion(config, args) {
|
|
|
85742
85742
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.commitArgs])
|
|
85743
85743
|
});
|
|
85744
85744
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.stageChanges])))) {
|
|
85745
|
-
|
|
85745
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85746
85746
|
await _gitjs.gitAdd.call(void 0, {
|
|
85747
85747
|
changedFiles: changedFiles2,
|
|
85748
85748
|
dryRun: args.dryRun,
|
|
@@ -85750,7 +85750,7 @@ async function releaseVersion(config, args) {
|
|
|
85750
85750
|
});
|
|
85751
85751
|
}
|
|
85752
85752
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _262 => _262.version, 'access', _263 => _263.git, 'access', _264 => _264.tag])))) {
|
|
85753
|
-
|
|
85753
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85754
85754
|
for (const tag of gitTagValues2) {
|
|
85755
85755
|
await gitTag({
|
|
85756
85756
|
tag,
|
|
@@ -85837,7 +85837,7 @@ async function releaseVersion(config, args) {
|
|
|
85837
85837
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.commitArgs])
|
|
85838
85838
|
});
|
|
85839
85839
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.stageChanges])))) {
|
|
85840
|
-
|
|
85840
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85841
85841
|
await _gitjs.gitAdd.call(void 0, {
|
|
85842
85842
|
changedFiles,
|
|
85843
85843
|
dryRun: args.dryRun,
|
|
@@ -85845,7 +85845,7 @@ async function releaseVersion(config, args) {
|
|
|
85845
85845
|
});
|
|
85846
85846
|
}
|
|
85847
85847
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _286 => _286.version, 'access', _287 => _287.git, 'access', _288 => _288.tag])))) {
|
|
85848
|
-
|
|
85848
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85849
85849
|
for (const tag of gitTagValues) {
|
|
85850
85850
|
await gitTag({
|
|
85851
85851
|
tag,
|
|
@@ -85861,8 +85861,8 @@ async function releaseVersion(config, args) {
|
|
|
85861
85861
|
projectsVersionData: versionData
|
|
85862
85862
|
};
|
|
85863
85863
|
} catch (error) {
|
|
85864
|
-
|
|
85865
|
-
|
|
85864
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
85865
|
+
_chunkZMBKNBZ3cjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
85866
85866
|
- Details: ${error.message}
|
|
85867
85867
|
- Stacktrace: ${error.stack}`, config);
|
|
85868
85868
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -85873,7 +85873,7 @@ async function releaseVersion(config, args) {
|
|
|
85873
85873
|
}
|
|
85874
85874
|
_chunkUQVAG5OCcjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85875
85875
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85876
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => (
|
|
85876
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => ( _chunkZMBKNBZ3cjs.findWorkspaceRoot.call(void 0, )));
|
|
85877
85877
|
const generatorOptions = {
|
|
85878
85878
|
// Always ensure a string to avoid generator schema validation errors
|
|
85879
85879
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85892,7 +85892,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
85892
85892
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
85893
85893
|
}
|
|
85894
85894
|
appendVersionData(versionData, versionResult.data);
|
|
85895
|
-
|
|
85895
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
85896
85896
|
return versionResult.callback;
|
|
85897
85897
|
}
|
|
85898
85898
|
_chunkUQVAG5OCcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -85900,10 +85900,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85900
85900
|
const changes = tree.listChanges();
|
|
85901
85901
|
for (const f of changes) {
|
|
85902
85902
|
if (f.type === "CREATE") {
|
|
85903
|
-
|
|
85903
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85904
85904
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
|
|
85905
85905
|
} else if (f.type === "UPDATE") {
|
|
85906
|
-
|
|
85906
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85907
85907
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85908
85908
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _299 => _299.content, 'optionalAccess', _300 => _300.toString, 'call', _301 => _301()]) || "");
|
|
85909
85909
|
} else if (f.type === "DELETE") {
|
|
@@ -85975,12 +85975,12 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
85975
85975
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85976
85976
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85977
85977
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
85978
|
-
|
|
85978
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
85979
85979
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85980
|
-
|
|
85980
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
85981
85981
|
const to = options.head || process.env.NX_HEAD;
|
|
85982
85982
|
const from = options.base || process.env.NX_BASE;
|
|
85983
|
-
|
|
85983
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
85984
85984
|
- From: ${from}
|
|
85985
85985
|
- To: ${to}
|
|
85986
85986
|
`, config);
|
|
@@ -85992,14 +85992,14 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
85992
85992
|
}, {});
|
|
85993
85993
|
}
|
|
85994
85994
|
const nxReleaseConfig = _chunkDKTCGII6cjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
85995
|
-
|
|
85996
|
-
|
|
85995
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
85996
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
85997
85997
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
85998
85998
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
85999
|
-
|
|
85999
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
86000
86000
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
86001
86001
|
dryRun: false,
|
|
86002
|
-
verbose:
|
|
86002
|
+
verbose: _chunkZMBKNBZ3cjs.isVerbose.call(void 0, config.logLevel),
|
|
86003
86003
|
preid: config.preid,
|
|
86004
86004
|
deleteVersionPlans: false,
|
|
86005
86005
|
stageChanges: true,
|
|
@@ -86011,25 +86011,25 @@ var runRelease = /* @__PURE__ */ _chunkUQVAG5OCcjs.__name.call(void 0, async (co
|
|
|
86011
86011
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _307 => _307.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
86012
86012
|
versionData: projectsVersionData,
|
|
86013
86013
|
dryRun: false,
|
|
86014
|
-
verbose:
|
|
86014
|
+
verbose: _chunkZMBKNBZ3cjs.isVerbose.call(void 0, config.logLevel),
|
|
86015
86015
|
to,
|
|
86016
86016
|
from,
|
|
86017
86017
|
gitCommit: true,
|
|
86018
86018
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
86019
86019
|
});
|
|
86020
|
-
|
|
86020
|
+
_chunkZMBKNBZ3cjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
86021
86021
|
if (options.skipPublish) {
|
|
86022
|
-
|
|
86022
|
+
_chunkZMBKNBZ3cjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
86023
86023
|
} else {
|
|
86024
86024
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.newVersion]));
|
|
86025
86025
|
if (changedProjects.length > 0) {
|
|
86026
|
-
|
|
86026
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
86027
86027
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
86028
86028
|
`, config);
|
|
86029
86029
|
const result2 = await releasePublish({
|
|
86030
86030
|
...options,
|
|
86031
86031
|
dryRun: !!options.dryRun,
|
|
86032
|
-
verbose:
|
|
86032
|
+
verbose: _chunkZMBKNBZ3cjs.isVerbose.call(void 0, config.logLevel)
|
|
86033
86033
|
});
|
|
86034
86034
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _310 => _310[key], 'optionalAccess', _311 => _311.code]) && _optionalChain([result2, 'access', _312 => _312[key], 'optionalAccess', _313 => _313.code]) > 0);
|
|
86035
86035
|
if (failedProjects.length > 0) {
|
|
@@ -86040,18 +86040,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
86040
86040
|
`);
|
|
86041
86041
|
}
|
|
86042
86042
|
} else {
|
|
86043
|
-
|
|
86043
|
+
_chunkZMBKNBZ3cjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
86044
86044
|
}
|
|
86045
86045
|
}
|
|
86046
|
-
|
|
86046
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
86047
86047
|
}, "runRelease");
|
|
86048
86048
|
|
|
86049
86049
|
// src/cli/index.ts
|
|
86050
86050
|
var _config = {};
|
|
86051
86051
|
function createProgram(config) {
|
|
86052
86052
|
_config = config;
|
|
86053
|
-
|
|
86054
|
-
const root2 =
|
|
86053
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
86054
|
+
const root2 = _chunkZMBKNBZ3cjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
86055
86055
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
86056
86056
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
86057
86057
|
if (root2) {
|
|
@@ -86081,14 +86081,14 @@ function createProgram(config) {
|
|
|
86081
86081
|
_chunkUQVAG5OCcjs.__name.call(void 0, createProgram, "createProgram");
|
|
86082
86082
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
86083
86083
|
try {
|
|
86084
|
-
|
|
86084
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
86085
86085
|
await runCommit(config, dryRun);
|
|
86086
|
-
|
|
86086
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
86087
86087
|
|
|
86088
86088
|
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}
|
|
86089
86089
|
`, _config);
|
|
86090
86090
|
} catch (error) {
|
|
86091
|
-
|
|
86091
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
86092
86092
|
|
|
86093
86093
|
${error.message}`, _config);
|
|
86094
86094
|
throw new Error(error.message, {
|
|
@@ -86099,11 +86099,11 @@ ${error.message}`, _config);
|
|
|
86099
86099
|
_chunkUQVAG5OCcjs.__name.call(void 0, commitAction, "commitAction");
|
|
86100
86100
|
async function readmeAction(options) {
|
|
86101
86101
|
try {
|
|
86102
|
-
|
|
86102
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
86103
86103
|
await runReadme(options);
|
|
86104
|
-
|
|
86104
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
86105
86105
|
} catch (error) {
|
|
86106
|
-
|
|
86106
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
86107
86107
|
|
|
86108
86108
|
${error.message}`);
|
|
86109
86109
|
throw new Error(error.message, {
|
|
@@ -86114,16 +86114,16 @@ ${error.message}`);
|
|
|
86114
86114
|
_chunkUQVAG5OCcjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
86115
86115
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
86116
86116
|
try {
|
|
86117
|
-
|
|
86117
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
86118
86118
|
await runRelease(_config, {
|
|
86119
86119
|
dryRun,
|
|
86120
86120
|
project,
|
|
86121
86121
|
base,
|
|
86122
86122
|
head
|
|
86123
86123
|
});
|
|
86124
|
-
|
|
86124
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
86125
86125
|
} catch (error) {
|
|
86126
|
-
|
|
86126
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
86127
86127
|
|
|
86128
86128
|
${error.message} ${error.stack ? `
|
|
86129
86129
|
|
|
@@ -86137,15 +86137,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
86137
86137
|
_chunkUQVAG5OCcjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
86138
86138
|
async function commitLintAction({ config, message: message2, file }) {
|
|
86139
86139
|
try {
|
|
86140
|
-
|
|
86140
|
+
_chunkZMBKNBZ3cjs.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);
|
|
86141
86141
|
await runCommitLint(_config, {
|
|
86142
86142
|
config,
|
|
86143
86143
|
message: message2,
|
|
86144
86144
|
file
|
|
86145
86145
|
});
|
|
86146
|
-
|
|
86146
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
86147
86147
|
} catch (error) {
|
|
86148
|
-
|
|
86148
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
86149
86149
|
|
|
86150
86150
|
${error.message}`, _config);
|
|
86151
86151
|
throw new Error(error.message, {
|
|
@@ -86157,15 +86157,15 @@ _chunkUQVAG5OCcjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
86157
86157
|
|
|
86158
86158
|
// bin/git.ts
|
|
86159
86159
|
void (async () => {
|
|
86160
|
-
const config = await
|
|
86160
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
86161
86161
|
try {
|
|
86162
|
-
|
|
86162
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
86163
86163
|
const program2 = createProgram(config);
|
|
86164
86164
|
await program2.parseAsync(process.argv);
|
|
86165
|
-
|
|
86166
|
-
|
|
86165
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
86166
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
86167
86167
|
} catch (error) {
|
|
86168
|
-
|
|
86168
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
86169
86169
|
process.exit(1);
|
|
86170
86170
|
}
|
|
86171
86171
|
})();
|
package/bin/git.js
CHANGED
package/bin/post-checkout.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
17
17
|
require('./chunk-DKTCGII6.cjs');
|
|
18
18
|
require('./chunk-LTA6IYNE.cjs');
|
|
19
19
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
27
27
|
// bin/post-checkout.ts
|
|
28
28
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
|
|
34
34
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkZMBKNBZ3cjs.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
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkZMBKNBZ3cjs.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 _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
17
17
|
require('./chunk-DKTCGII6.cjs');
|
|
18
18
|
require('./chunk-LTA6IYNE.cjs');
|
|
19
19
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
27
27
|
// bin/post-commit.ts
|
|
28
28
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running post-commit hook...", config);
|
|
34
34
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkZMBKNBZ3cjs.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
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkZMBKNBZ3cjs.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 _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
17
17
|
require('./chunk-DKTCGII6.cjs');
|
|
18
18
|
require('./chunk-LTA6IYNE.cjs');
|
|
19
19
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -27,23 +27,23 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
27
27
|
// bin/post-merge.ts
|
|
28
28
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
29
29
|
void (async () => {
|
|
30
|
-
const config = await
|
|
30
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running post-merge hook...", config);
|
|
34
34
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
35
35
|
try {
|
|
36
36
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
37
37
|
} catch (error) {
|
|
38
|
-
|
|
38
|
+
_chunkZMBKNBZ3cjs.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
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkZMBKNBZ3cjs.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 _chunk27AR76DXcjs = require('./chunk-27AR76DX.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
15
15
|
require('./chunk-DKTCGII6.cjs');
|
|
16
16
|
require('./chunk-LTA6IYNE.cjs');
|
|
17
17
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
25
25
|
// bin/pre-commit.ts
|
|
26
26
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
void (async () => {
|
|
28
|
-
const config = await
|
|
28
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
|
|
32
32
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
33
33
|
if (_chunk27AR76DXcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
_chunkZMBKNBZ3cjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkZMBKNBZ3cjs.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 _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
13
13
|
require('./chunk-DKTCGII6.cjs');
|
|
14
14
|
require('./chunk-LTA6IYNE.cjs');
|
|
15
15
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -23,19 +23,19 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
23
23
|
// bin/pre-install.ts
|
|
24
24
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkZMBKNBZ3cjs.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 _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
18
18
|
require('./chunk-DKTCGII6.cjs');
|
|
19
19
|
require('./chunk-LTA6IYNE.cjs');
|
|
20
20
|
require('./chunk-CRYAP7RE.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 _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running pre-push hook...", config);
|
|
38
38
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
|
|
39
|
-
|
|
39
|
+
_chunkZMBKNBZ3cjs.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
|
+
_chunkZMBKNBZ3cjs.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
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkZMBKNBZ3cjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
|
|
68
68
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
69
69
|
try {
|
|
70
70
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git-lfs version");
|
|
71
71
|
} catch (error) {
|
|
72
|
-
|
|
72
|
+
_chunkZMBKNBZ3cjs.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
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkZMBKNBZ3cjs.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 _chunkUGYHVU7Fcjs = require('./chunk-UGYHVU7F.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
13
13
|
require('./chunk-DKTCGII6.cjs');
|
|
14
14
|
require('./chunk-LTA6IYNE.cjs');
|
|
15
15
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -23,17 +23,17 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
23
23
|
// bin/prepare.ts
|
|
24
24
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
void (async () => {
|
|
26
|
-
const config = await
|
|
26
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkZMBKNBZ3cjs.writeInfo.call(void 0, "Running prepare hook...", config);
|
|
30
30
|
if (!process.env.CI && !process.env.STORM_CI) {
|
|
31
31
|
_chunkUGYHVU7Fcjs.run.call(void 0, config, "lefthook install");
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
_chunkZMBKNBZ3cjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkZMBKNBZ3cjs.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 _chunk27AR76DXcjs = require('./chunk-27AR76DX.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZMBKNBZ3cjs = require('./chunk-ZMBKNBZ3.cjs');
|
|
11
11
|
require('./chunk-DKTCGII6.cjs');
|
|
12
12
|
require('./chunk-LTA6IYNE.cjs');
|
|
13
13
|
require('./chunk-CRYAP7RE.cjs');
|
|
@@ -21,13 +21,13 @@ var _chunkUQVAG5OCcjs = require('./chunk-UQVAG5OC.cjs');
|
|
|
21
21
|
// bin/version-warning.ts
|
|
22
22
|
_chunkUQVAG5OCcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
void (async () => {
|
|
24
|
-
const config = await
|
|
24
|
+
const config = await _chunkZMBKNBZ3cjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkZMBKNBZ3cjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunk27AR76DXcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkZMBKNBZ3cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkZMBKNBZ3cjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED