@storm-software/git-tools 2.99.0 → 2.100.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-3M4QBJZE.js → chunk-6ZE252BR.js} +1 -1
- package/bin/{chunk-SBZRK235.cjs → chunk-GLCRW2R7.cjs} +1 -1
- package/bin/git.cjs +75 -73
- package/bin/git.js +4 -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
|
@@ -35350,7 +35350,7 @@ var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/share
|
|
|
35350
35350
|
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
35351
35351
|
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
35352
35352
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
35353
|
-
|
|
35353
|
+
Storm Software 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.
|
|
35354
35354
|
|
|
35355
35355
|
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
35356
35356
|
|
|
@@ -35350,7 +35350,7 @@ var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/share
|
|
|
35350
35350
|
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
35351
35351
|
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
35352
35352
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
35353
|
-
|
|
35353
|
+
Storm Software 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.
|
|
35354
35354
|
|
|
35355
35355
|
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
35356
35356
|
|
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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 = _chunkGLCRW2R7cjs.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 = _chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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 = _chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
|
|
67119
67119
|
return;
|
|
67120
67120
|
}
|
|
67121
|
-
|
|
67121
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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 = _chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
68458
68458
|
const state = await createState(config, commitizenFile);
|
|
68459
68459
|
if (dryRun) {
|
|
68460
|
-
|
|
68460
|
+
_chunkGLCRW2R7cjs.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 = _chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
|
|
68495
|
+
_chunkGLCRW2R7cjs.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, _chunkGLCRW2R7cjs.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);
|
|
@@ -84455,7 +84455,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84455
84455
|
super(config);_class13.prototype.__init27.call(this);;
|
|
84456
84456
|
}
|
|
84457
84457
|
async render() {
|
|
84458
|
-
this.workspaceConfig = await
|
|
84458
|
+
this.workspaceConfig = await _chunkGLCRW2R7cjs.getWorkspaceConfig.call(void 0, );
|
|
84459
84459
|
return await super.render();
|
|
84460
84460
|
}
|
|
84461
84461
|
preprocessChanges() {
|
|
@@ -84629,7 +84629,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
|
|
|
84629
84629
|
// src/release/changelog.ts
|
|
84630
84630
|
function createAPI(overrideReleaseConfig) {
|
|
84631
84631
|
return /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async function releaseChangelog(args) {
|
|
84632
|
-
const workspaceConfig = await
|
|
84632
|
+
const workspaceConfig = await _chunkGLCRW2R7cjs.getWorkspaceConfig.call(void 0, );
|
|
84633
84633
|
const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
|
|
84634
84634
|
exitOnError: true
|
|
84635
84635
|
});
|
|
@@ -85179,7 +85179,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
|
|
|
85179
85179
|
}
|
|
85180
85180
|
_chunkKK4YC43Scjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
|
|
85181
85181
|
async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
|
|
85182
|
-
const workspaceConfig = await
|
|
85182
|
+
const workspaceConfig = await _chunkGLCRW2R7cjs.getWorkspaceConfig.call(void 0, );
|
|
85183
85183
|
if (!workspaceConfig) {
|
|
85184
85184
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85185
85185
|
}
|
|
@@ -85269,7 +85269,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
|
|
|
85269
85269
|
}
|
|
85270
85270
|
_chunkKK4YC43Scjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
|
|
85271
85271
|
async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
|
|
85272
|
-
const workspaceConfig = await
|
|
85272
|
+
const workspaceConfig = await _chunkGLCRW2R7cjs.getWorkspaceConfig.call(void 0, );
|
|
85273
85273
|
if (!workspaceConfig) {
|
|
85274
85274
|
throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
|
|
85275
85275
|
}
|
|
@@ -85476,10 +85476,12 @@ ${workspaceConfig.release.header || ""}
|
|
|
85476
85476
|
|
|
85477
85477
|
# ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion2.rawVersion}
|
|
85478
85478
|
|
|
85479
|
-
We at ${titleCase(workspaceConfig.organization)} are very excited to announce the v${releaseVersion2.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
|
|
85479
|
+
We at [${titleCase(workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion2.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
|
|
85480
85480
|
|
|
85481
85481
|
These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}).
|
|
85482
85482
|
|
|
85483
|
+
You can find the documentation around this release and much more [our documentation site](${workspaceConfig.docs}).
|
|
85484
|
+
|
|
85483
85485
|
If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call', _236 => _236(projectName), 'optionalAccess', _237 => _237.replaceAll, 'call', _238 => _238(" ", "%20")])}%20` : ""}v${releaseVersion2.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion2.gitTag}) about this release!
|
|
85484
85486
|
|
|
85485
85487
|
## Release Notes
|
|
@@ -85569,13 +85571,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
|
|
|
85569
85571
|
var _paramsjs = require('nx/src/utils/params.js');
|
|
85570
85572
|
async function releaseVersion(config, args) {
|
|
85571
85573
|
try {
|
|
85572
|
-
|
|
85574
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Running release version command", config);
|
|
85573
85575
|
const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
|
|
85574
85576
|
exitOnError: true
|
|
85575
85577
|
});
|
|
85576
85578
|
const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
85577
85579
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85578
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => (
|
|
85580
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => ( _chunkGLCRW2R7cjs.findWorkspaceRoot.call(void 0, )));
|
|
85579
85581
|
if (args.verbose) {
|
|
85580
85582
|
process.env.NX_VERBOSE_LOGGING = "true";
|
|
85581
85583
|
}
|
|
@@ -85590,10 +85592,10 @@ async function releaseVersion(config, args) {
|
|
|
85590
85592
|
]);
|
|
85591
85593
|
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".`);
|
|
85592
85594
|
}
|
|
85593
|
-
|
|
85595
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
|
|
85594
85596
|
const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
|
|
85595
85597
|
if (filterError) {
|
|
85596
|
-
|
|
85598
|
+
_chunkGLCRW2R7cjs.writeError.call(void 0, filterError.title, config);
|
|
85597
85599
|
throw new Error(filterError.title);
|
|
85598
85600
|
}
|
|
85599
85601
|
const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
|
|
@@ -85602,10 +85604,10 @@ async function releaseVersion(config, args) {
|
|
|
85602
85604
|
const additionalChangedFiles = /* @__PURE__ */ new Set();
|
|
85603
85605
|
const generatorCallbacks = [];
|
|
85604
85606
|
if (_optionalChain([args, 'access', _245 => _245.projects, 'optionalAccess', _246 => _246.length])) {
|
|
85605
|
-
|
|
85607
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
|
|
85606
85608
|
for (const releaseGroup of releaseGroups) {
|
|
85607
85609
|
const releaseGroupName = releaseGroup.name;
|
|
85608
|
-
|
|
85610
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
|
|
85609
85611
|
const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
|
|
85610
85612
|
const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
|
|
85611
85613
|
projectGraph,
|
|
@@ -85614,7 +85616,7 @@ async function releaseVersion(config, args) {
|
|
|
85614
85616
|
releaseGroupProjectNames
|
|
85615
85617
|
);
|
|
85616
85618
|
for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
|
|
85617
|
-
|
|
85619
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
|
|
85618
85620
|
const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
|
|
85619
85621
|
const generatorData = resolveGeneratorData({
|
|
85620
85622
|
...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
|
|
@@ -85667,7 +85669,7 @@ async function releaseVersion(config, args) {
|
|
|
85667
85669
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _253 => _253.version, 'access', _254 => _254.git, 'access', _255 => _255.commitArgs])
|
|
85668
85670
|
});
|
|
85669
85671
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.stageChanges])))) {
|
|
85670
|
-
|
|
85672
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85671
85673
|
await _gitjs.gitAdd.call(void 0, {
|
|
85672
85674
|
changedFiles: changedFiles2,
|
|
85673
85675
|
dryRun: args.dryRun,
|
|
@@ -85675,7 +85677,7 @@ async function releaseVersion(config, args) {
|
|
|
85675
85677
|
});
|
|
85676
85678
|
}
|
|
85677
85679
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.tag])))) {
|
|
85678
|
-
|
|
85680
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85679
85681
|
for (const tag of gitTagValues2) {
|
|
85680
85682
|
await _gitjs.gitTag.call(void 0, {
|
|
85681
85683
|
tag,
|
|
@@ -85762,7 +85764,7 @@ async function releaseVersion(config, args) {
|
|
|
85762
85764
|
gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _277 => _277.version, 'access', _278 => _278.git, 'access', _279 => _279.commitArgs])
|
|
85763
85765
|
});
|
|
85764
85766
|
} else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.stageChanges])))) {
|
|
85765
|
-
|
|
85767
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Staging changed files with git", config);
|
|
85766
85768
|
await _gitjs.gitAdd.call(void 0, {
|
|
85767
85769
|
changedFiles,
|
|
85768
85770
|
dryRun: args.dryRun,
|
|
@@ -85770,7 +85772,7 @@ async function releaseVersion(config, args) {
|
|
|
85770
85772
|
});
|
|
85771
85773
|
}
|
|
85772
85774
|
if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.tag])))) {
|
|
85773
|
-
|
|
85775
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Tagging commit with git", config);
|
|
85774
85776
|
for (const tag of gitTagValues) {
|
|
85775
85777
|
await _gitjs.gitTag.call(void 0, {
|
|
85776
85778
|
tag,
|
|
@@ -85786,8 +85788,8 @@ async function releaseVersion(config, args) {
|
|
|
85786
85788
|
projectsVersionData: versionData
|
|
85787
85789
|
};
|
|
85788
85790
|
} catch (error) {
|
|
85789
|
-
|
|
85790
|
-
|
|
85791
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
|
|
85792
|
+
_chunkGLCRW2R7cjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
|
|
85791
85793
|
- Details: ${error.message}
|
|
85792
85794
|
- Stacktrace: ${error.stack}`, config);
|
|
85793
85795
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -85798,7 +85800,7 @@ async function releaseVersion(config, args) {
|
|
|
85798
85800
|
}
|
|
85799
85801
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
|
|
85800
85802
|
async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
|
|
85801
|
-
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _292 => _292.workspaceRoot]), () => (
|
|
85803
|
+
const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _292 => _292.workspaceRoot]), () => ( _chunkGLCRW2R7cjs.findWorkspaceRoot.call(void 0, )));
|
|
85802
85804
|
const generatorOptions = {
|
|
85803
85805
|
// Always ensure a string to avoid generator schema validation errors
|
|
85804
85806
|
specifier: _nullishCoalesce(args.specifier, () => ( "")),
|
|
@@ -85817,7 +85819,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
|
|
|
85817
85819
|
throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
|
|
85818
85820
|
}
|
|
85819
85821
|
appendVersionData(versionData, versionResult.data);
|
|
85820
|
-
|
|
85822
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
|
|
85821
85823
|
return versionResult.callback;
|
|
85822
85824
|
}
|
|
85823
85825
|
_chunkKK4YC43Scjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
|
|
@@ -85825,10 +85827,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
|
|
|
85825
85827
|
const changes = tree.listChanges();
|
|
85826
85828
|
for (const f of changes) {
|
|
85827
85829
|
if (f.type === "CREATE") {
|
|
85828
|
-
|
|
85830
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85829
85831
|
_printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _293 => _293.content, 'optionalAccess', _294 => _294.toString, 'call', _295 => _295()]) || "");
|
|
85830
85832
|
} else if (f.type === "UPDATE") {
|
|
85831
|
-
|
|
85833
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
|
|
85832
85834
|
const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
|
|
85833
85835
|
_printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
|
|
85834
85836
|
} else if (f.type === "DELETE") {
|
|
@@ -85900,12 +85902,12 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85900
85902
|
process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85901
85903
|
process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
|
|
85902
85904
|
process.env.NPM_CONFIG_PROVENANCE = "true";
|
|
85903
|
-
|
|
85905
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
|
|
85904
85906
|
const nxJson = _nxjsonjs.readNxJson.call(void 0, );
|
|
85905
|
-
|
|
85907
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
|
|
85906
85908
|
const to = options.head || process.env.NX_HEAD;
|
|
85907
85909
|
const from = options.base || process.env.NX_BASE;
|
|
85908
|
-
|
|
85910
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
|
|
85909
85911
|
- From: ${from}
|
|
85910
85912
|
- To: ${to}
|
|
85911
85913
|
`, config);
|
|
@@ -85917,14 +85919,14 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85917
85919
|
}, {});
|
|
85918
85920
|
}
|
|
85919
85921
|
const nxReleaseConfig = _chunkP2CHIYIKcjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
|
|
85920
|
-
|
|
85921
|
-
|
|
85922
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
|
|
85923
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, nxReleaseConfig, config);
|
|
85922
85924
|
const releaseChangelog = createAPI(nxReleaseConfig);
|
|
85923
85925
|
const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
|
|
85924
|
-
|
|
85926
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, "Determining the current release versions...", config);
|
|
85925
85927
|
const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
|
|
85926
85928
|
dryRun: false,
|
|
85927
|
-
verbose:
|
|
85929
|
+
verbose: _chunkGLCRW2R7cjs.isVerbose.call(void 0, config.logLevel),
|
|
85928
85930
|
preid: config.preid,
|
|
85929
85931
|
deleteVersionPlans: false,
|
|
85930
85932
|
stageChanges: true,
|
|
@@ -85937,25 +85939,25 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
|
|
|
85937
85939
|
version: _optionalChain([nxReleaseConfig, 'optionalAccess', _304 => _304.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
|
|
85938
85940
|
versionData: projectsVersionData,
|
|
85939
85941
|
dryRun: false,
|
|
85940
|
-
verbose:
|
|
85942
|
+
verbose: _chunkGLCRW2R7cjs.isVerbose.call(void 0, config.logLevel),
|
|
85941
85943
|
to,
|
|
85942
85944
|
from,
|
|
85943
85945
|
gitCommit: true,
|
|
85944
85946
|
gitCommitMessage: "release(monorepo): Publish workspace release updates"
|
|
85945
85947
|
});
|
|
85946
|
-
|
|
85948
|
+
_chunkGLCRW2R7cjs.writeDebug.call(void 0, "Tagging commit with git", config);
|
|
85947
85949
|
if (options.skipPublish) {
|
|
85948
|
-
|
|
85950
|
+
_chunkGLCRW2R7cjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
|
|
85949
85951
|
} else {
|
|
85950
85952
|
const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _305 => _305[key], 'optionalAccess', _306 => _306.newVersion]));
|
|
85951
85953
|
if (changedProjects.length > 0) {
|
|
85952
|
-
|
|
85954
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
|
|
85953
85955
|
${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
|
|
85954
85956
|
`, config);
|
|
85955
85957
|
const result2 = await releasePublish({
|
|
85956
85958
|
...options,
|
|
85957
85959
|
dryRun: !!options.dryRun,
|
|
85958
|
-
verbose:
|
|
85960
|
+
verbose: _chunkGLCRW2R7cjs.isVerbose.call(void 0, config.logLevel)
|
|
85959
85961
|
});
|
|
85960
85962
|
const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _307 => _307[key], 'optionalAccess', _308 => _308.code]) && _optionalChain([result2, 'access', _309 => _309[key], 'optionalAccess', _310 => _310.code]) > 0);
|
|
85961
85963
|
if (failedProjects.length > 0) {
|
|
@@ -85966,18 +85968,18 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
|
|
|
85966
85968
|
`);
|
|
85967
85969
|
}
|
|
85968
85970
|
} else {
|
|
85969
|
-
|
|
85971
|
+
_chunkGLCRW2R7cjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
|
|
85970
85972
|
}
|
|
85971
85973
|
}
|
|
85972
|
-
|
|
85974
|
+
_chunkGLCRW2R7cjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
|
|
85973
85975
|
}, "runRelease");
|
|
85974
85976
|
|
|
85975
85977
|
// src/cli/index.ts
|
|
85976
85978
|
var _config = {};
|
|
85977
85979
|
function createProgram(config) {
|
|
85978
85980
|
_config = config;
|
|
85979
|
-
|
|
85980
|
-
const root2 =
|
|
85981
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
|
|
85982
|
+
const root2 = _chunkGLCRW2R7cjs.findWorkspaceRootSafe.call(void 0, process.cwd());
|
|
85981
85983
|
process.env.STORM_WORKSPACE_ROOT ??= root2;
|
|
85982
85984
|
process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
|
|
85983
85985
|
root2 && process.chdir(root2);
|
|
@@ -86005,14 +86007,14 @@ function createProgram(config) {
|
|
|
86005
86007
|
_chunkKK4YC43Scjs.__name.call(void 0, createProgram, "createProgram");
|
|
86006
86008
|
async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
|
|
86007
86009
|
try {
|
|
86008
|
-
|
|
86010
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
|
|
86009
86011
|
await runCommit(config, dryRun);
|
|
86010
|
-
|
|
86012
|
+
_chunkGLCRW2R7cjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
|
|
86011
86013
|
|
|
86012
86014
|
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}
|
|
86013
86015
|
`, _config);
|
|
86014
86016
|
} catch (error) {
|
|
86015
|
-
|
|
86017
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
|
|
86016
86018
|
|
|
86017
86019
|
${error.message}`, _config);
|
|
86018
86020
|
throw new Error(error.message, {
|
|
@@ -86023,11 +86025,11 @@ ${error.message}`, _config);
|
|
|
86023
86025
|
_chunkKK4YC43Scjs.__name.call(void 0, commitAction, "commitAction");
|
|
86024
86026
|
async function readmeAction(options) {
|
|
86025
86027
|
try {
|
|
86026
|
-
|
|
86028
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
|
|
86027
86029
|
await runReadme(options);
|
|
86028
|
-
|
|
86030
|
+
_chunkGLCRW2R7cjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
|
|
86029
86031
|
} catch (error) {
|
|
86030
|
-
|
|
86032
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
|
|
86031
86033
|
|
|
86032
86034
|
${error.message}`);
|
|
86033
86035
|
throw new Error(error.message, {
|
|
@@ -86038,16 +86040,16 @@ ${error.message}`);
|
|
|
86038
86040
|
_chunkKK4YC43Scjs.__name.call(void 0, readmeAction, "readmeAction");
|
|
86039
86041
|
async function releaseAction({ project, base, head, dryRun }) {
|
|
86040
86042
|
try {
|
|
86041
|
-
|
|
86043
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
|
|
86042
86044
|
await runRelease(_config, {
|
|
86043
86045
|
dryRun,
|
|
86044
86046
|
project,
|
|
86045
86047
|
base,
|
|
86046
86048
|
head
|
|
86047
86049
|
});
|
|
86048
|
-
|
|
86050
|
+
_chunkGLCRW2R7cjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
|
|
86049
86051
|
} catch (error) {
|
|
86050
|
-
|
|
86052
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
|
|
86051
86053
|
|
|
86052
86054
|
${error.message} ${error.stack ? `
|
|
86053
86055
|
|
|
@@ -86061,15 +86063,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
|
|
|
86061
86063
|
_chunkKK4YC43Scjs.__name.call(void 0, releaseAction, "releaseAction");
|
|
86062
86064
|
async function commitLintAction({ config, message: message2, file }) {
|
|
86063
86065
|
try {
|
|
86064
|
-
|
|
86066
|
+
_chunkGLCRW2R7cjs.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);
|
|
86065
86067
|
await runCommitLint(_config, {
|
|
86066
86068
|
config,
|
|
86067
86069
|
message: message2,
|
|
86068
86070
|
file
|
|
86069
86071
|
});
|
|
86070
|
-
|
|
86072
|
+
_chunkGLCRW2R7cjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
|
|
86071
86073
|
} catch (error) {
|
|
86072
|
-
|
|
86074
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
|
|
86073
86075
|
|
|
86074
86076
|
${error.message}`, _config);
|
|
86075
86077
|
throw new Error(error.message, {
|
|
@@ -86081,15 +86083,15 @@ _chunkKK4YC43Scjs.__name.call(void 0, commitLintAction, "commitLintAction");
|
|
|
86081
86083
|
|
|
86082
86084
|
// bin/git.ts
|
|
86083
86085
|
void (async () => {
|
|
86084
|
-
const config = await
|
|
86086
|
+
const config = await _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
86085
86087
|
try {
|
|
86086
|
-
|
|
86088
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
86087
86089
|
const program2 = createProgram(config);
|
|
86088
86090
|
await program2.parseAsync(process.argv);
|
|
86089
|
-
|
|
86090
|
-
|
|
86091
|
+
_chunkGLCRW2R7cjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
|
|
86092
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
86091
86093
|
} catch (error) {
|
|
86092
|
-
|
|
86094
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
86093
86095
|
process.exit(1);
|
|
86094
86096
|
}
|
|
86095
86097
|
})();
|
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-6ZE252BR.js";
|
|
25
25
|
import {
|
|
26
26
|
defu
|
|
27
27
|
} from "./chunk-5L6OQPTU.js";
|
|
@@ -85475,10 +85475,12 @@ ${workspaceConfig.release.header || ""}
|
|
|
85475
85475
|
|
|
85476
85476
|
# ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion2.rawVersion}
|
|
85477
85477
|
|
|
85478
|
-
We at ${titleCase(workspaceConfig.organization)} are very excited to announce the v${releaseVersion2.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
|
|
85478
|
+
We at [${titleCase(workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion2.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
|
|
85479
85479
|
|
|
85480
85480
|
These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}).
|
|
85481
85481
|
|
|
85482
|
+
You can find the documentation around this release and much more [our documentation site](${workspaceConfig.docs}).
|
|
85483
|
+
|
|
85482
85484
|
If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${titleCase(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion2.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion2.gitTag}) about this release!
|
|
85483
85485
|
|
|
85484
85486
|
## Release Notes
|
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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-checkout");
|
|
43
|
-
|
|
43
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-commit");
|
|
43
|
-
|
|
43
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
33
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
41
41
|
}
|
|
42
42
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-merge");
|
|
43
|
-
|
|
43
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
46
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
31
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
|
|
35
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
40
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Running pre-install hook...", config);
|
|
30
30
|
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_chunkGLCRW2R7cjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
|
|
32
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
33
33
|
}
|
|
34
34
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "npx -y only-allow pnpm");
|
|
35
|
-
|
|
35
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
36
36
|
} catch (error) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
38
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
35
35
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
37
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
75
75
|
}
|
|
76
76
|
_chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
|
|
77
|
-
|
|
77
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
80
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
27
27
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
29
|
+
_chunkGLCRW2R7cjs.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
|
+
_chunkGLCRW2R7cjs.exitWithSuccess.call(void 0, config);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
36
|
+
_chunkGLCRW2R7cjs.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 _chunkGLCRW2R7cjs = require('./chunk-GLCRW2R7.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 _chunkGLCRW2R7cjs.getConfig.call(void 0, );
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
_chunkGLCRW2R7cjs.handleProcess.call(void 0, config);
|
|
27
27
|
_chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkGLCRW2R7cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
|
|
30
|
+
_chunkGLCRW2R7cjs.exitWithError.call(void 0, config);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
})();
|
package/bin/version-warning.js
CHANGED