relizy 1.3.0-beta.3 → 1.3.0-beta.4

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/dist/cli.mjs CHANGED
@@ -5,13 +5,13 @@ import process from 'node:process';
5
5
  import { fileURLToPath } from 'node:url';
6
6
  import { printBanner, logger } from '@maz-ui/node';
7
7
  import { Command } from 'commander';
8
- import { al as isInCI, am as getCIName, b as bump, c as changelog, g as publish, e as providerRelease, h as social, p as prComment, r as release } from './shared/relizy.BHnDdNQq.mjs';
8
+ import { al as isInCI, am as getCIName, b as bump, c as changelog, g as publish, e as providerRelease, h as social, p as prComment, r as release } from './shared/relizy.DPLg_yCE.mjs';
9
+ import 'node:child_process';
9
10
  import '@maz-ui/utils';
10
11
  import 'c12';
11
12
  import 'changelogen';
12
13
  import 'defu';
13
14
  import '@inquirer/prompts';
14
- import 'node:child_process';
15
15
  import 'fast-glob';
16
16
  import 'semver';
17
17
  import 'convert-gitmoji';
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
- export { af as NEW_PACKAGE_MARKER, Y as PR_COMMENT_MARKER, L as buildChangelogBody, a as buildCommentBody, K as buildCompareLink, M as buildContributors, b as bump, at as capReleaseTypeForZeroMajor, c as changelog, u as checkGitStatusIfDirty, aH as confirmBump, A as createCommitAndTags, I as createGitlabRelease, k as defineConfig, x as detectGitProvider, P as detectPackageManager, X as detectPullRequest, Q as determinePublishTag, av as determineReleaseType, au as determineSemverChange, ao as executeBuildCmd, an as executeFormatCmd, ak as executeHook, o as expandPackagesToBumpWithDependents, a8 as extractChangelogSummary, az as extractVersionFromPackageTag, aK as extractVersionFromTag, v as fetchGitTags, aq as filterOutPrivatePackages, V as findGitHubPR, W as findGitLabMR, a5 as formatChangelogForSlack, a6 as formatSlackMessage, ai as formatTweetMessage, i as generateChangelog, N as generateMarkDown, T as getAuthCommand, aI as getBumpedIndependentPackages, aG as getBumpedPackageIndependently, am as getCIName, aL as getCanaryVersion, E as getCurrentGitBranch, F as getCurrentGitRef, j as getDefaultConfig, n as getDependentsOf, D as getFirstCommit, q as getGitStatus, aa as getIndependentTag, ae as getLastPackageTag, ad as getLastRepoTag, ab as getLastStableTag, ac as getLastTag, z as getModifiedReleaseFilePatterns, a2 as getPackageCommits, m as getPackageDependencies, ax as getPackageNewVersion, a1 as getPackages, ar as getPackagesOrBumpedPackages, S as getPackagesToPublishInIndependentMode, R as getPackagesToPublishInSelectiveMode, aE as getPreid, a9 as getReleaseUrl, $ as getRootPackage, G as getShortCommitSha, a4 as getSlackToken, ah as getTwitterCredentials, H as github, J as gitlab, a3 as hasLernaJson, ap as isBumpedPackage, aF as isChangedPreid, aD as isGraduating, as as isGraduatingToStableBetweenVersion, al as isInCI, aA as isPrerelease, aC as isPrereleaseReleaseType, aB as isStableReleaseType, aM as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, O as parseChangelogMarkdown, y as parseGitRemoteUrl, Z as postPrComment, a7 as postReleaseToSlack, aj as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, U as publishPackage, f as publishSafetyCheck, B as pushCommitAndTags, _ as readPackageJson, a0 as readPackages, r as release, ag as resolveTags, C as rollbackModifiedFiles, aJ as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, ay as updateLernaVersion, w as writeChangelogToFile, aw as writeVersion } from './shared/relizy.BHnDdNQq.mjs';
1
+ export { af as NEW_PACKAGE_MARKER, Y as PR_COMMENT_MARKER, L as buildChangelogBody, a as buildCommentBody, K as buildCompareLink, M as buildContributors, b as bump, at as capReleaseTypeForZeroMajor, c as changelog, u as checkGitStatusIfDirty, aH as confirmBump, A as createCommitAndTags, I as createGitlabRelease, k as defineConfig, x as detectGitProvider, P as detectPackageManager, X as detectPullRequest, Q as determinePublishTag, av as determineReleaseType, au as determineSemverChange, ao as executeBuildCmd, an as executeFormatCmd, ak as executeHook, o as expandPackagesToBumpWithDependents, a8 as extractChangelogSummary, az as extractVersionFromPackageTag, aK as extractVersionFromTag, v as fetchGitTags, aq as filterOutPrivatePackages, V as findGitHubPR, W as findGitLabMR, a5 as formatChangelogForSlack, a6 as formatSlackMessage, ai as formatTweetMessage, i as generateChangelog, N as generateMarkDown, T as getAuthCommand, aI as getBumpedIndependentPackages, aG as getBumpedPackageIndependently, am as getCIName, aL as getCanaryVersion, E as getCurrentGitBranch, F as getCurrentGitRef, j as getDefaultConfig, n as getDependentsOf, D as getFirstCommit, q as getGitStatus, aa as getIndependentTag, ae as getLastPackageTag, ad as getLastRepoTag, ab as getLastStableTag, ac as getLastTag, z as getModifiedReleaseFilePatterns, a2 as getPackageCommits, m as getPackageDependencies, ax as getPackageNewVersion, a1 as getPackages, ar as getPackagesOrBumpedPackages, S as getPackagesToPublishInIndependentMode, R as getPackagesToPublishInSelectiveMode, aE as getPreid, a9 as getReleaseUrl, $ as getRootPackage, G as getShortCommitSha, a4 as getSlackToken, ah as getTwitterCredentials, H as github, J as gitlab, a3 as hasLernaJson, ap as isBumpedPackage, aF as isChangedPreid, aD as isGraduating, as as isGraduatingToStableBetweenVersion, al as isInCI, aA as isPrerelease, aC as isPrereleaseReleaseType, aB as isStableReleaseType, aM as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, O as parseChangelogMarkdown, y as parseGitRemoteUrl, Z as postPrComment, a7 as postReleaseToSlack, aj as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, U as publishPackage, f as publishSafetyCheck, B as pushCommitAndTags, _ as readPackageJson, a0 as readPackages, r as release, ag as resolveTags, C as rollbackModifiedFiles, aJ as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, ay as updateLernaVersion, w as writeChangelogToFile, aw as writeVersion } from './shared/relizy.DPLg_yCE.mjs';
2
2
  import '@maz-ui/node';
3
+ import 'node:child_process';
3
4
  import 'node:process';
4
5
  import '@maz-ui/utils';
5
6
  import 'c12';
@@ -8,7 +9,6 @@ import 'defu';
8
9
  import 'node:fs';
9
10
  import 'node:path';
10
11
  import '@inquirer/prompts';
11
- import 'node:child_process';
12
12
  import 'fast-glob';
13
13
  import 'semver';
14
14
  import 'convert-gitmoji';
@@ -1,4 +1,5 @@
1
1
  import { logger, execPromise } from '@maz-ui/node';
2
+ import { execSync, spawnSync } from 'node:child_process';
2
3
  import process$1 from 'node:process';
3
4
  import { getErrorMessage, formatJson, upperFirst } from '@maz-ui/utils';
4
5
  import { setupDotenv, loadConfig } from 'c12';
@@ -7,7 +8,6 @@ import { defu } from 'defu';
7
8
  import { existsSync, readFileSync, statSync, writeFileSync } from 'node:fs';
8
9
  import path, { join, relative, sep } from 'node:path';
9
10
  import { confirm, input } from '@inquirer/prompts';
10
- import { execSync } from 'node:child_process';
11
11
  import fastGlob from 'fast-glob';
12
12
  import * as semver from 'semver';
13
13
  import { convert } from 'convert-gitmoji';
@@ -2645,6 +2645,14 @@ Keep it synthetic \u2014 3 to 8 bullets maximum.
2645
2645
  If any breaking changes are present, lead with them.
2646
2646
  Tone: factual, oriented toward an internal team audience.`;
2647
2647
 
2648
+ function claudeBinaryAvailable() {
2649
+ try {
2650
+ const result = spawnSync("claude", ["--version"], { stdio: "ignore" });
2651
+ return result.status === 0;
2652
+ } catch {
2653
+ return false;
2654
+ }
2655
+ }
2648
2656
  function resolveAuth(config) {
2649
2657
  const providerOpts = config.ai?.providers?.["claude-code"];
2650
2658
  const tokenOpts = config.tokens?.ai?.["claude-code"];
@@ -2669,6 +2677,11 @@ const claudeCodeProvider = {
2669
2677
  "@yoloship/claude-sdk is not installed. Install it with: pnpm add -D @yoloship/claude-sdk"
2670
2678
  );
2671
2679
  }
2680
+ if (!claudeBinaryAvailable()) {
2681
+ throw new Error(
2682
+ "The `claude` CLI binary was not found on PATH. Install it with one of:\n \u2022 npm install -g @anthropic-ai/claude-code\n \u2022 brew install --cask claude-code\n \u2022 curl -fsSL https://claude.ai/install.sh | bash"
2683
+ );
2684
+ }
2672
2685
  },
2673
2686
  async generate(config, request) {
2674
2687
  const { claudeRun } = await import('@yoloship/claude-sdk');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relizy",
3
3
  "type": "module",
4
- "version": "1.3.0-beta.3",
4
+ "version": "1.3.0-beta.4",
5
5
  "description": "Changelogen adapter for monorepo management with unified and independent versioning",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",