relizy 1.2.1 → 1.2.2-beta.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/dist/cli.mjs CHANGED
@@ -5,7 +5,7 @@ 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 { ag as isInCI, ah 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.DgHrn_Fg.mjs';
8
+ import { ag as isInCI, ah 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.B3g_9J7u.mjs';
9
9
  import '@maz-ui/utils';
10
10
  import 'c12';
11
11
  import 'changelogen';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { aa as NEW_PACKAGE_MARKER, T as PR_COMMENT_MARKER, a as buildCommentBody, b as bump, c as changelog, u as checkGitStatusIfDirty, aA as confirmBump, A as createCommitAndTags, I as createGitlabRelease, k as defineConfig, x as detectGitProvider, K as detectPackageManager, S as detectPullRequest, L as determinePublishTag, ao as determineReleaseType, an as determineSemverChange, aj as executeBuildCmd, ai as executeFormatCmd, af as executeHook, o as expandPackagesToBumpWithDependents, a3 as extractChangelogSummary, as as extractVersionFromPackageTag, aD as extractVersionFromTag, v as fetchGitTags, Q as findGitHubPR, R as findGitLabMR, a0 as formatChangelogForSlack, a1 as formatSlackMessage, ad as formatTweetMessage, i as generateChangelog, O as getAuthCommand, aB as getBumpedIndependentPackages, az as getBumpedPackageIndependently, ah as getCIName, aE as getCanaryVersion, E as getCurrentGitBranch, F as getCurrentGitRef, j as getDefaultConfig, n as getDependentsOf, D as getFirstCommit, q as getGitStatus, a5 as getIndependentTag, a9 as getLastPackageTag, a8 as getLastRepoTag, a6 as getLastStableTag, a7 as getLastTag, z as getModifiedReleaseFilePatterns, Z as getPackageCommits, m as getPackageDependencies, aq as getPackageNewVersion, Y as getPackages, al as getPackagesOrBumpedPackages, N as getPackagesToPublishInIndependentMode, M as getPackagesToPublishInSelectiveMode, ax as getPreid, a4 as getReleaseUrl, W as getRootPackage, G as getShortCommitSha, $ as getSlackToken, ac as getTwitterCredentials, H as github, J as gitlab, _ as hasLernaJson, ak as isBumpedPackage, ay as isChangedPreid, aw as isGraduating, am as isGraduatingToStableBetweenVersion, ag as isInCI, at as isPrerelease, av as isPrereleaseReleaseType, au as isStableReleaseType, aF as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, y as parseGitRemoteUrl, U as postPrComment, a2 as postReleaseToSlack, ae as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, P as publishPackage, f as publishSafetyCheck, B as pushCommitAndTags, V as readPackageJson, X as readPackages, r as release, ab as resolveTags, C as rollbackModifiedFiles, aC as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, ar as updateLernaVersion, w as writeChangelogToFile, ap as writeVersion } from './shared/relizy.DgHrn_Fg.mjs';
1
+ export { aa as NEW_PACKAGE_MARKER, T as PR_COMMENT_MARKER, a as buildCommentBody, b as bump, c as changelog, u as checkGitStatusIfDirty, aA as confirmBump, A as createCommitAndTags, I as createGitlabRelease, k as defineConfig, x as detectGitProvider, K as detectPackageManager, S as detectPullRequest, L as determinePublishTag, ao as determineReleaseType, an as determineSemverChange, aj as executeBuildCmd, ai as executeFormatCmd, af as executeHook, o as expandPackagesToBumpWithDependents, a3 as extractChangelogSummary, as as extractVersionFromPackageTag, aD as extractVersionFromTag, v as fetchGitTags, Q as findGitHubPR, R as findGitLabMR, a0 as formatChangelogForSlack, a1 as formatSlackMessage, ad as formatTweetMessage, i as generateChangelog, O as getAuthCommand, aB as getBumpedIndependentPackages, az as getBumpedPackageIndependently, ah as getCIName, aE as getCanaryVersion, E as getCurrentGitBranch, F as getCurrentGitRef, j as getDefaultConfig, n as getDependentsOf, D as getFirstCommit, q as getGitStatus, a5 as getIndependentTag, a9 as getLastPackageTag, a8 as getLastRepoTag, a6 as getLastStableTag, a7 as getLastTag, z as getModifiedReleaseFilePatterns, Z as getPackageCommits, m as getPackageDependencies, aq as getPackageNewVersion, Y as getPackages, al as getPackagesOrBumpedPackages, N as getPackagesToPublishInIndependentMode, M as getPackagesToPublishInSelectiveMode, ax as getPreid, a4 as getReleaseUrl, W as getRootPackage, G as getShortCommitSha, $ as getSlackToken, ac as getTwitterCredentials, H as github, J as gitlab, _ as hasLernaJson, ak as isBumpedPackage, ay as isChangedPreid, aw as isGraduating, am as isGraduatingToStableBetweenVersion, ag as isInCI, at as isPrerelease, av as isPrereleaseReleaseType, au as isStableReleaseType, aF as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, y as parseGitRemoteUrl, U as postPrComment, a2 as postReleaseToSlack, ae as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, P as publishPackage, f as publishSafetyCheck, B as pushCommitAndTags, V as readPackageJson, X as readPackages, r as release, ab as resolveTags, C as rollbackModifiedFiles, aC as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, ar as updateLernaVersion, w as writeChangelogToFile, ap as writeVersion } from './shared/relizy.B3g_9J7u.mjs';
2
2
  import '@maz-ui/node';
3
3
  import 'node:process';
4
4
  import '@maz-ui/utils';
@@ -5,7 +5,7 @@ import { setupDotenv, loadConfig } from 'c12';
5
5
  import { getGitDiff, parseCommits, resolveRepoConfig, getRepoConfig, formatCompareChanges, formatReference, createGithubRelease } from 'changelogen';
6
6
  import { defu } from 'defu';
7
7
  import { existsSync, readFileSync, statSync, writeFileSync } from 'node:fs';
8
- import path, { join, relative } from 'node:path';
8
+ import path, { join, relative, sep } from 'node:path';
9
9
  import { confirm, input } from '@inquirer/prompts';
10
10
  import { execSync } from 'node:child_process';
11
11
  import fastGlob from 'fast-glob';
@@ -432,7 +432,7 @@ function isCommitOfTrackedPackages({
432
432
  ignorePackageNames: config.monorepo?.ignorePackageNames
433
433
  });
434
434
  return packages.some((pkg) => {
435
- const path = relative(config.cwd, pkg.path);
435
+ const path = relative(config.cwd, pkg.path).split(sep).join("/");
436
436
  return commit.body.includes(path);
437
437
  });
438
438
  }
@@ -477,7 +477,7 @@ async function getPackageCommits({
477
477
  if ((pkg.path === changelogConfig.cwd || pkg.name === rootPackage.name) && isTrackedPackage) {
478
478
  return true;
479
479
  }
480
- const packageRelativePath = relative(changelogConfig.cwd, pkg.path);
480
+ const packageRelativePath = relative(changelogConfig.cwd, pkg.path).split(sep).join("/");
481
481
  const bodyContainsPath = commit.body.includes(packageRelativePath);
482
482
  return bodyContainsPath && isTrackedPackage;
483
483
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relizy",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.2.2-beta.0",
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",