@storm-software/git-tools 2.97.2 → 2.99.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/git.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  writeInfo,
22
22
  writeSuccess,
23
23
  writeWarning
24
- } from "./chunk-7HYXXE5S.js";
24
+ } from "./chunk-3M4QBJZE.js";
25
25
  import {
26
26
  defu
27
27
  } from "./chunk-5L6OQPTU.js";
@@ -80927,7 +80927,7 @@ async function generateChangelogContent(releaseVersion2, filepath, newContent, c
80927
80927
  const changelogReleases = parseChangelogMarkdown(changelogContents).releases;
80928
80928
  const existingVersionToUpdate = changelogReleases.find((r) => r.version === releaseVersion2.rawVersion);
80929
80929
  if (existingVersionToUpdate) {
80930
- changelogContents = changelogContents.replace(`## ${generateChangelogTitle(releaseVersion2.rawVersion, project, false, workspaceConfig)}
80930
+ changelogContents = changelogContents.replace(`## ${generateChangelogTitle(releaseVersion2.rawVersion, project, workspaceConfig)}
80931
80931
 
80932
80932
 
80933
80933
  ${existingVersionToUpdate.body}`, newContent);
@@ -80950,16 +80950,11 @@ var titleCase = /* @__PURE__ */ __name((input) => {
80950
80950
  }
80951
80951
  return input.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toLowerCase().charAt(0).toUpperCase() + s.toLowerCase().slice(1) : s).join(" ");
80952
80952
  }, "titleCase");
80953
- function generateChangelogTitle(version, project, excludeDate = false, workspaceConfig) {
80954
- if (!workspaceConfig?.repository || !project) {
80953
+ function generateChangelogTitle(version, project, workspaceConfig) {
80954
+ if (!workspaceConfig?.name || !project) {
80955
80955
  return version;
80956
80956
  }
80957
- let maybeDateStr = "";
80958
- if (excludeDate !== false) {
80959
- const dateStr = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
80960
- maybeDateStr = ` (${dateStr})`;
80961
- }
80962
- return `[${version}](${workspaceConfig.repository}/releases/tag/${project}%40${version})${maybeDateStr}`;
80957
+ return `[${version}](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${project}%40${version}) (${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)})`;
80963
80958
  }
80964
80959
  __name(generateChangelogTitle, "generateChangelogTitle");
80965
80960
  function parseChangelogMarkdown(contents) {
@@ -80970,7 +80965,7 @@ function parseChangelogMarkdown(contents) {
80970
80965
  const releases = [];
80971
80966
  for (let i = 0; i < headings.length; i++) {
80972
80967
  const heading = headings[i];
80973
- if (!heading || heading.length < 2) {
80968
+ if (!heading) {
80974
80969
  continue;
80975
80970
  }
80976
80971
  const nextHeading = headings[i + 1];
@@ -84460,7 +84455,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
84460
84455
  }
84461
84456
  async render() {
84462
84457
  this.workspaceConfig = await getWorkspaceConfig();
84463
- return super.render();
84458
+ return await super.render();
84464
84459
  }
84465
84460
  preprocessChanges() {
84466
84461
  this.relevantChanges = [
@@ -84510,23 +84505,20 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
84510
84505
  }
84511
84506
  }
84512
84507
  /**
84513
- * Determines if the changelog entry should be rendered as empty.
84514
- * This is the case when there are no relevant changes, breaking changes,
84515
- * or dependency bumps.
84508
+ * Determines if the changelog entry should be rendered as empty. This is the case when there are no relevant changes, breaking changes, or dependency bumps.
84516
84509
  */
84517
- shouldRenderEmptyEntry() {
84518
- return true;
84519
- }
84510
+ // protected override shouldRenderEmptyEntry(): boolean {
84511
+ // return true;
84512
+ // }
84520
84513
  renderVersionTitle() {
84521
84514
  const isMajorVersion = `${(0, import_semver.major)(this.changelogEntryVersion)}.0.0` === this.changelogEntryVersion.replace(/^v/, "");
84522
- return isMajorVersion ? `# ${generateChangelogTitle(this.changelogEntryVersion, this.project, false, this.workspaceConfig)}` : `## ${generateChangelogTitle(this.changelogEntryVersion, this.project, false, this.workspaceConfig)}`;
84515
+ return isMajorVersion ? `# ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}` : `## ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}`;
84523
84516
  }
84524
84517
  renderBreakingChanges() {
84525
- const uniqueBreakingChanges = Array.from(new Set(this.breakingChanges));
84526
84518
  return [
84527
84519
  "### Breaking Changes",
84528
84520
  "",
84529
- ...uniqueBreakingChanges
84521
+ ...Array.from(new Set(this.breakingChanges))
84530
84522
  ];
84531
84523
  }
84532
84524
  renderDependencyBumps() {
@@ -84800,11 +84792,16 @@ function createAPI(overrideReleaseConfig) {
84800
84792
  });
84801
84793
  if (workspaceChangelog && shouldCreateGitHubRelease(nxReleaseConfig.changelog.workspaceChangelog, args.createRelease)) {
84802
84794
  postGitTasks.push(async (latestCommit) => {
84803
- output.logSingleLine(`Creating GitHub Release`);
84804
- await createOrUpdateGithubRelease(nxReleaseConfig.changelog.workspaceChangelog ? nxReleaseConfig.changelog.workspaceChangelog.createRelease : defaultCreateReleaseProvider, workspaceChangelog.releaseVersion, formatGithubReleaseNotes(workspaceChangelog.contents, workspaceConfig), latestCommit, {
84795
+ const contents = formatGithubReleaseNotes(workspaceChangelog.releaseVersion, workspaceChangelog.contents, null, workspaceConfig);
84796
+ output.logSingleLine(`Creating GitHub Release
84797
+
84798
+ ${contents}`);
84799
+ await createOrUpdateGithubRelease(nxReleaseConfig.changelog.workspaceChangelog ? nxReleaseConfig.changelog.workspaceChangelog.createRelease : defaultCreateReleaseProvider, workspaceChangelog.releaseVersion, contents, latestCommit, {
84805
84800
  dryRun: !!args.dryRun
84806
84801
  });
84807
84802
  });
84803
+ } else {
84804
+ output.logSingleLine(`Skipping GitHub Release for workspace changelog as it is disabled in the release group configuration`);
84808
84805
  }
84809
84806
  const projectToAdditionalDependencyBumps = /* @__PURE__ */ new Map();
84810
84807
  for (const releaseGroup of releaseGroups) {
@@ -84812,7 +84809,7 @@ function createAPI(overrideReleaseConfig) {
84812
84809
  continue;
84813
84810
  }
84814
84811
  for (const project of releaseGroup.projects) {
84815
- if (!projectsVersionData[project] || projectsVersionData[project].newVersion === null) {
84812
+ if (!projectsVersionData[project]?.newVersion) {
84816
84813
  continue;
84817
84814
  }
84818
84815
  const dependentProjects = (projectsVersionData[project].dependentProjects || []).map((dep) => {
@@ -84926,11 +84923,16 @@ function createAPI(overrideReleaseConfig) {
84926
84923
  for (const [projectName, projectChangelog] of Object.entries(projectChangelogs)) {
84927
84924
  if (projectChangelogs && shouldCreateGitHubRelease(releaseGroup.changelog, args.createRelease)) {
84928
84925
  postGitTasks.push(async (latestCommit) => {
84929
- output.logSingleLine(`Creating GitHub Release`);
84930
- await createOrUpdateGithubRelease(releaseGroup.changelog ? releaseGroup.changelog.createRelease : defaultCreateReleaseProvider, projectChangelog.releaseVersion, formatGithubReleaseNotes(projectChangelog.contents, workspaceConfig), latestCommit, {
84926
+ const contents = formatGithubReleaseNotes(projectChangelog.releaseVersion, projectChangelog.contents, projectName, workspaceConfig);
84927
+ output.logSingleLine(`Creating GitHub Release
84928
+
84929
+ ${contents}`);
84930
+ await createOrUpdateGithubRelease(releaseGroup.changelog ? releaseGroup.changelog.createRelease : defaultCreateReleaseProvider, projectChangelog.releaseVersion, contents, latestCommit, {
84931
84931
  dryRun: !!args.dryRun
84932
84932
  });
84933
84933
  });
84934
+ } else {
84935
+ output.logSingleLine(`Skipping GitHub Release for ${projectName} as it is disabled in the release group configuration`);
84934
84936
  }
84935
84937
  allProjectChangelogs[projectName] = projectChangelog;
84936
84938
  }
@@ -85029,6 +85031,8 @@ function createAPI(overrideReleaseConfig) {
85029
85031
  dryRun: !!args.dryRun
85030
85032
  });
85031
85033
  });
85034
+ } else {
85035
+ output.logSingleLine(`Skipping GitHub Release for ${projectName} as it is disabled in the release group configuration`);
85032
85036
  }
85033
85037
  allProjectChangelogs[projectName] = projectChangelog;
85034
85038
  }
@@ -85254,8 +85258,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
85254
85258
  contents = readFileSync4(changelogPath, "utf8");
85255
85259
  }
85256
85260
  if (interpolatedTreePath) {
85257
- const rootChangelogContents = tree.exists(interpolatedTreePath) ? tree.read(interpolatedTreePath)?.toString() : "";
85258
- tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, rootChangelogContents, null, workspaceConfig));
85261
+ tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, tree.exists(interpolatedTreePath) ? tree.read(interpolatedTreePath)?.toString() : "", null, workspaceConfig));
85259
85262
  printAndFlushChanges(tree, !!dryRun, 3, false, noDiffInChangelogMessage);
85260
85263
  }
85261
85264
  return {
@@ -85284,7 +85287,6 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
85284
85287
  projectName: project.name,
85285
85288
  projectRoot: project.data.root,
85286
85289
  workspaceRoot: ""
85287
- // within the tree, workspaceRoot is the root
85288
85290
  });
85289
85291
  }
85290
85292
  if (!projectsVersionData[project.name]?.newVersion) {
@@ -85300,53 +85302,56 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
85300
85302
  output.log({
85301
85303
  title: `${prefix} an entry in ${interpolatedTreePath} for ${chalk2.white(releaseVersion2.gitTag)}`
85302
85304
  });
85305
+ const githubRepoData = getGitHubRepoData(gitRemote, config.createRelease);
85306
+ const changelogRenderer = new StormChangelogRenderer({
85307
+ changes,
85308
+ changelogEntryVersion: releaseVersion2.rawVersion,
85309
+ project: project.name,
85310
+ repoData: githubRepoData,
85311
+ entryWhenNoChanges: typeof config.entryWhenNoChanges === "string" ? interpolate(config.entryWhenNoChanges, {
85312
+ projectName: project.name,
85313
+ projectRoot: project.data.root,
85314
+ workspaceRoot: ""
85315
+ }) : false,
85316
+ changelogRenderOptions: config.renderOptions,
85317
+ isVersionPlans: !!releaseGroup.versionPlans,
85318
+ conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
85319
+ dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
85320
+ });
85321
+ let contents = await changelogRenderer.render();
85322
+ output.log({
85323
+ title: `Changelog renderer for ${project.name} rendered the following content:
85324
+
85325
+ ${contents}`.trim()
85326
+ });
85327
+ if (interactive) {
85328
+ const tmpDir = (0, import_tmp.dirSync)().name;
85329
+ const changelogPath = joinPathFragments(
85330
+ tmpDir,
85331
+ // Include the tree path in the name so that it is easier to identify which changelog file is being edited
85332
+ `PREVIEW__${interpolatedTreePath.replace(/\//g, "_")}`
85333
+ );
85334
+ writeFileSync3(changelogPath, contents);
85335
+ await launchEditor(changelogPath);
85336
+ contents = readFileSync4(changelogPath, "utf8");
85337
+ }
85338
+ if (interpolatedTreePath) {
85339
+ tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, tree.exists(interpolatedTreePath) ? tree.read(interpolatedTreePath)?.toString() : "", project.name, workspaceConfig));
85340
+ printAndFlushChanges(
85341
+ tree,
85342
+ !!dryRun,
85343
+ 3,
85344
+ false,
85345
+ noDiffInChangelogMessage,
85346
+ // Only print the change for the current changelog file at this point
85347
+ (f) => f.path === interpolatedTreePath
85348
+ );
85349
+ }
85350
+ projectChangelogs[project.name] = {
85351
+ releaseVersion: releaseVersion2,
85352
+ contents
85353
+ };
85303
85354
  }
85304
- const githubRepoData = getGitHubRepoData(gitRemote, config.createRelease);
85305
- const changelogRenderer = new StormChangelogRenderer({
85306
- changes,
85307
- changelogEntryVersion: releaseVersion2.rawVersion,
85308
- project: project.name,
85309
- repoData: githubRepoData,
85310
- entryWhenNoChanges: typeof config.entryWhenNoChanges === "string" ? interpolate(config.entryWhenNoChanges, {
85311
- projectName: project.name,
85312
- projectRoot: project.data.root,
85313
- workspaceRoot: ""
85314
- // within the tree, workspaceRoot is the root
85315
- }) : false,
85316
- changelogRenderOptions: config.renderOptions,
85317
- isVersionPlans: !!releaseGroup.versionPlans,
85318
- conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
85319
- dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
85320
- });
85321
- let contents = await changelogRenderer.render();
85322
- if (interactive) {
85323
- const tmpDir = (0, import_tmp.dirSync)().name;
85324
- const changelogPath = joinPathFragments(
85325
- tmpDir,
85326
- // Include the tree path in the name so that it is easier to identify which changelog file is being edited
85327
- `PREVIEW__${interpolatedTreePath.replace(/\//g, "_")}`
85328
- );
85329
- writeFileSync3(changelogPath, contents);
85330
- await launchEditor(changelogPath);
85331
- contents = readFileSync4(changelogPath, "utf8");
85332
- }
85333
- if (interpolatedTreePath) {
85334
- const changelogContents = tree.exists(interpolatedTreePath) ? tree.read(interpolatedTreePath)?.toString() : "";
85335
- tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, changelogContents, project.name, workspaceConfig));
85336
- printAndFlushChanges(
85337
- tree,
85338
- !!dryRun,
85339
- 3,
85340
- false,
85341
- noDiffInChangelogMessage,
85342
- // Only print the change for the current changelog file at this point
85343
- (f) => f.path === interpolatedTreePath
85344
- );
85345
- }
85346
- projectChangelogs[project.name] = {
85347
- releaseVersion: releaseVersion2,
85348
- contents
85349
- };
85350
85355
  }
85351
85356
  return projectChangelogs;
85352
85357
  }
@@ -85355,12 +85360,7 @@ function checkChangelogFilesEnabled(nxReleaseConfig) {
85355
85360
  if (nxReleaseConfig.changelog.workspaceChangelog && nxReleaseConfig.changelog.workspaceChangelog.file) {
85356
85361
  return true;
85357
85362
  }
85358
- for (const releaseGroup of Object.values(nxReleaseConfig.groups)) {
85359
- if (releaseGroup.changelog && releaseGroup.changelog.file) {
85360
- return true;
85361
- }
85362
- }
85363
- return false;
85363
+ return Object.values(nxReleaseConfig.groups).some((releaseGroup) => releaseGroup?.changelog?.file);
85364
85364
  }
85365
85365
  __name(checkChangelogFilesEnabled, "checkChangelogFilesEnabled");
85366
85366
  async function getCommits(fromSHA, toSHA) {
@@ -85466,13 +85466,26 @@ function versionPlanSemverReleaseTypeToChangelogType(bump) {
85466
85466
  }
85467
85467
  }
85468
85468
  __name(versionPlanSemverReleaseTypeToChangelogType, "versionPlanSemverReleaseTypeToChangelogType");
85469
- function formatGithubReleaseNotes(content, workspaceConfig) {
85469
+ function formatGithubReleaseNotes(releaseVersion2, content, projectName, workspaceConfig) {
85470
85470
  if (!workspaceConfig) {
85471
85471
  return content;
85472
85472
  }
85473
- return `![Storm Software](${workspaceConfig.release.banner})
85473
+ return `![${titleCase(workspaceConfig.organization)}](${workspaceConfig.release.banner})
85474
85474
  ${workspaceConfig.release.header || ""}
85475
- ${content}
85475
+
85476
+ # ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion2.rawVersion}
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}
85479
+
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
+
85482
+ 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
+
85484
+ ## Release Notes
85485
+
85486
+ ${content.replaceAll(`## ${generateChangelogTitle(releaseVersion2.rawVersion, projectName, workspaceConfig)}`, "").replaceAll(`# ${generateChangelogTitle(releaseVersion2.rawVersion, projectName, workspaceConfig)}`, "")}
85487
+
85488
+ ---
85476
85489
 
85477
85490
  ${workspaceConfig.release.footer}
85478
85491
  `;
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
16
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
30
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
33
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
32
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
33
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
38
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
40
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-checkout");
43
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
45
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-7HYXXE5S.js";
16
+ } from "./chunk-3M4QBJZE.js";
17
17
  import "./chunk-5L6OQPTU.js";
18
18
  import "./chunk-44NY3AUB.js";
19
19
  import "./chunk-7TOVDNAL.js";
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
16
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
30
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
33
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
32
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
33
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.
38
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
40
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-commit");
43
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
45
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-7HYXXE5S.js";
16
+ } from "./chunk-3M4QBJZE.js";
17
17
  import "./chunk-5L6OQPTU.js";
18
18
  import "./chunk-44NY3AUB.js";
19
19
  import "./chunk-7TOVDNAL.js";
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
16
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
30
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
33
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
32
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
33
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.
38
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
40
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-merge");
43
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
45
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
package/bin/post-merge.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-7HYXXE5S.js";
16
+ } from "./chunk-3M4QBJZE.js";
17
17
  import "./chunk-5L6OQPTU.js";
18
18
  import "./chunk-44NY3AUB.js";
19
19
  import "./chunk-7TOVDNAL.js";
@@ -11,7 +11,7 @@ var _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
14
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
28
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
29
29
  try {
30
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
31
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
30
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
31
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
35
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
34
+ _chunkSBZRK235cjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
35
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
36
36
  }
37
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
37
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
38
38
  } catch (error) {
39
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
40
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
39
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
40
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
41
41
  process.exit(1);
42
42
  }
43
43
  })();
package/bin/pre-commit.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  writeError,
12
12
  writeFatal,
13
13
  writeInfo
14
- } from "./chunk-7HYXXE5S.js";
14
+ } from "./chunk-3M4QBJZE.js";
15
15
  import "./chunk-5L6OQPTU.js";
16
16
  import "./chunk-44NY3AUB.js";
17
17
  import "./chunk-7TOVDNAL.js";
@@ -9,7 +9,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
12
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
26
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
27
27
  try {
28
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
29
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
28
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
29
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Running pre-install hook...", config);
30
30
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
31
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
31
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
33
33
  }
34
34
  _chunkFNIN2HF7cjs.run.call(void 0, config, "npx -y only-allow pnpm");
35
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
35
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
36
36
  } catch (error) {
37
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
38
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
37
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
38
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
39
39
  process.exit(1);
40
40
  }
41
41
  })();
@@ -9,7 +9,7 @@ import {
9
9
  handleProcess,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-7HYXXE5S.js";
12
+ } from "./chunk-3M4QBJZE.js";
13
13
  import "./chunk-5L6OQPTU.js";
14
14
  import "./chunk-44NY3AUB.js";
15
15
  import "./chunk-7TOVDNAL.js";
package/bin/pre-push.cjs CHANGED
@@ -14,7 +14,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
17
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.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 _chunkLFH4CIZMcjs.getConfig.call(void 0, );
34
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
35
35
  try {
36
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
37
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
36
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
37
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
39
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
61
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
65
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
66
66
  }
67
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
67
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.writeError.call(void 0, `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
72
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
74
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
75
75
  }
76
76
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
77
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
77
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
78
78
  } catch (error) {
79
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
79
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
81
81
  process.exit(1);
82
82
  }
83
83
  })();
package/bin/pre-push.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  writeFatal,
15
15
  writeInfo,
16
16
  writeSuccess
17
- } from "./chunk-7HYXXE5S.js";
17
+ } from "./chunk-3M4QBJZE.js";
18
18
  import "./chunk-5L6OQPTU.js";
19
19
  import "./chunk-44NY3AUB.js";
20
20
  import "./chunk-7TOVDNAL.js";