@storm-software/git-tools 2.98.0 → 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,7 +84792,7 @@ function createAPI(overrideReleaseConfig) {
84800
84792
  });
84801
84793
  if (workspaceChangelog && shouldCreateGitHubRelease(nxReleaseConfig.changelog.workspaceChangelog, args.createRelease)) {
84802
84794
  postGitTasks.push(async (latestCommit) => {
84803
- const contents = formatGithubReleaseNotes(workspaceChangelog.contents, workspaceConfig);
84795
+ const contents = formatGithubReleaseNotes(workspaceChangelog.releaseVersion, workspaceChangelog.contents, null, workspaceConfig);
84804
84796
  output.logSingleLine(`Creating GitHub Release
84805
84797
 
84806
84798
  ${contents}`);
@@ -84817,7 +84809,7 @@ ${contents}`);
84817
84809
  continue;
84818
84810
  }
84819
84811
  for (const project of releaseGroup.projects) {
84820
- if (!projectsVersionData[project] || projectsVersionData[project].newVersion === null) {
84812
+ if (!projectsVersionData[project]?.newVersion) {
84821
84813
  continue;
84822
84814
  }
84823
84815
  const dependentProjects = (projectsVersionData[project].dependentProjects || []).map((dep) => {
@@ -84931,7 +84923,7 @@ ${contents}`);
84931
84923
  for (const [projectName, projectChangelog] of Object.entries(projectChangelogs)) {
84932
84924
  if (projectChangelogs && shouldCreateGitHubRelease(releaseGroup.changelog, args.createRelease)) {
84933
84925
  postGitTasks.push(async (latestCommit) => {
84934
- const contents = formatGithubReleaseNotes(projectChangelog.contents, workspaceConfig);
84926
+ const contents = formatGithubReleaseNotes(projectChangelog.releaseVersion, projectChangelog.contents, projectName, workspaceConfig);
84935
84927
  output.logSingleLine(`Creating GitHub Release
84936
84928
 
84937
84929
  ${contents}`);
@@ -85266,8 +85258,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
85266
85258
  contents = readFileSync4(changelogPath, "utf8");
85267
85259
  }
85268
85260
  if (interpolatedTreePath) {
85269
- const rootChangelogContents = tree.exists(interpolatedTreePath) ? tree.read(interpolatedTreePath)?.toString() : "";
85270
- 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));
85271
85262
  printAndFlushChanges(tree, !!dryRun, 3, false, noDiffInChangelogMessage);
85272
85263
  }
85273
85264
  return {
@@ -85296,7 +85287,6 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
85296
85287
  projectName: project.name,
85297
85288
  projectRoot: project.data.root,
85298
85289
  workspaceRoot: ""
85299
- // within the tree, workspaceRoot is the root
85300
85290
  });
85301
85291
  }
85302
85292
  if (!projectsVersionData[project.name]?.newVersion) {
@@ -85312,53 +85302,56 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
85312
85302
  output.log({
85313
85303
  title: `${prefix} an entry in ${interpolatedTreePath} for ${chalk2.white(releaseVersion2.gitTag)}`
85314
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
+ };
85315
85354
  }
85316
- const githubRepoData = getGitHubRepoData(gitRemote, config.createRelease);
85317
- const changelogRenderer = new StormChangelogRenderer({
85318
- changes,
85319
- changelogEntryVersion: releaseVersion2.rawVersion,
85320
- project: project.name,
85321
- repoData: githubRepoData,
85322
- entryWhenNoChanges: typeof config.entryWhenNoChanges === "string" ? interpolate(config.entryWhenNoChanges, {
85323
- projectName: project.name,
85324
- projectRoot: project.data.root,
85325
- workspaceRoot: ""
85326
- // within the tree, workspaceRoot is the root
85327
- }) : false,
85328
- changelogRenderOptions: config.renderOptions,
85329
- isVersionPlans: !!releaseGroup.versionPlans,
85330
- conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
85331
- dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
85332
- });
85333
- let contents = await changelogRenderer.render();
85334
- if (interactive) {
85335
- const tmpDir = (0, import_tmp.dirSync)().name;
85336
- const changelogPath = joinPathFragments(
85337
- tmpDir,
85338
- // Include the tree path in the name so that it is easier to identify which changelog file is being edited
85339
- `PREVIEW__${interpolatedTreePath.replace(/\//g, "_")}`
85340
- );
85341
- writeFileSync3(changelogPath, contents);
85342
- await launchEditor(changelogPath);
85343
- contents = readFileSync4(changelogPath, "utf8");
85344
- }
85345
- if (interpolatedTreePath) {
85346
- const changelogContents = tree.exists(interpolatedTreePath) ? tree.read(interpolatedTreePath)?.toString() : "";
85347
- tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, changelogContents, project.name, workspaceConfig));
85348
- printAndFlushChanges(
85349
- tree,
85350
- !!dryRun,
85351
- 3,
85352
- false,
85353
- noDiffInChangelogMessage,
85354
- // Only print the change for the current changelog file at this point
85355
- (f) => f.path === interpolatedTreePath
85356
- );
85357
- }
85358
- projectChangelogs[project.name] = {
85359
- releaseVersion: releaseVersion2,
85360
- contents
85361
- };
85362
85355
  }
85363
85356
  return projectChangelogs;
85364
85357
  }
@@ -85367,12 +85360,7 @@ function checkChangelogFilesEnabled(nxReleaseConfig) {
85367
85360
  if (nxReleaseConfig.changelog.workspaceChangelog && nxReleaseConfig.changelog.workspaceChangelog.file) {
85368
85361
  return true;
85369
85362
  }
85370
- for (const releaseGroup of Object.values(nxReleaseConfig.groups)) {
85371
- if (releaseGroup.changelog && releaseGroup.changelog.file) {
85372
- return true;
85373
- }
85374
- }
85375
- return false;
85363
+ return Object.values(nxReleaseConfig.groups).some((releaseGroup) => releaseGroup?.changelog?.file);
85376
85364
  }
85377
85365
  __name(checkChangelogFilesEnabled, "checkChangelogFilesEnabled");
85378
85366
  async function getCommits(fromSHA, toSHA) {
@@ -85478,13 +85466,26 @@ function versionPlanSemverReleaseTypeToChangelogType(bump) {
85478
85466
  }
85479
85467
  }
85480
85468
  __name(versionPlanSemverReleaseTypeToChangelogType, "versionPlanSemverReleaseTypeToChangelogType");
85481
- function formatGithubReleaseNotes(content, workspaceConfig) {
85469
+ function formatGithubReleaseNotes(releaseVersion2, content, projectName, workspaceConfig) {
85482
85470
  if (!workspaceConfig) {
85483
85471
  return content;
85484
85472
  }
85485
- return `![Storm Software](${workspaceConfig.release.banner})
85473
+ return `![${titleCase(workspaceConfig.organization)}](${workspaceConfig.release.banner})
85486
85474
  ${workspaceConfig.release.header || ""}
85487
- ${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
+ ---
85488
85489
 
85489
85490
  ${workspaceConfig.release.footer}
85490
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";
package/bin/prepare.cjs CHANGED
@@ -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,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 _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 prepare hook...", config);
28
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
29
+ _chunkSBZRK235cjs.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
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
33
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
34
34
  } catch (error) {
35
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
35
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
37
37
  process.exit(1);
38
38
  }
39
39
  })();
package/bin/prepare.js CHANGED
@@ -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";