relizy 1.2.2-beta.1 → 1.2.2-beta.2

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.D-9J-Nlo.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.CiHvixG7.mjs';
9
9
  import '@maz-ui/utils';
10
10
  import 'c12';
11
11
  import 'changelogen';
@@ -66,7 +66,7 @@ function getReleaseType(options) {
66
66
  return type;
67
67
  }
68
68
  program.name("relizy").description("Release management tool for monorepos and standalone packages").version(version).option("--config <name>", "Config file name (without .config.ts - e.g. changelog-test)").option("--no-safety-check", "Skip safety check").option("--log-level <level>", "Set log level (silent, error, warning, normal, default, debug, trace, verbose)", "default").option("--dry-run", "Preview changes without writing files, creating tags, commits or publishing").option("--pr-number <number>", "Override PR/MR number for PR comment features", Number);
69
- program.command("bump").description("Bump package versions").option("--major", "Bump major version").option("--minor", "Bump minor version").option("--patch", "Bump patch version").option("--prerelease", "Bump prerelease version").option("--premajor", "Bump premajor version").option("--preminor", "Bump preminor version").option("--prepatch", "Bump prepatch version").option("--preid <id>", "Prerelease identifier (alpha, beta, rc, etc.)").option("--suffix <suffix>", "Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)").option("--no-clean", "Skip check if the working directory is clean").option("--force", "Bump even if there are no commits").option("--yes", "Skip confirmation prompt about bumping packages").option("--canary", "Publish a canary release from the current commit").action(async (options) => {
69
+ program.command("bump").description("Bump package versions").option("--major", "Bump major version").option("--minor", "Bump minor version").option("--patch", "Bump patch version").option("--prerelease", "Bump prerelease version").option("--premajor", "Bump premajor version").option("--preminor", "Bump preminor version").option("--prepatch", "Bump prepatch version").option("--preid <id>", "Prerelease identifier (alpha, beta, rc, etc.)").option("--suffix <suffix>", "Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)").option("--no-clean", "Skip check if the working directory is clean").option("--force", "Bump even if there are no commits").option("--yes", "Skip confirmation prompt about bumping packages").option("--canary", "Publish a canary release from the current commit").option("--include-private", "Include private packages in the bump").action(async (options) => {
70
70
  try {
71
71
  const result = await bump({
72
72
  type: getReleaseType(options),
@@ -78,7 +78,8 @@ program.command("bump").description("Bump package versions").option("--major", "
78
78
  yes: options.yes,
79
79
  suffix: options.suffix,
80
80
  configName: program.opts().config,
81
- canary: options.canary
81
+ canary: options.canary,
82
+ includePrivates: options.includePrivate || void 0
82
83
  });
83
84
  if (!result.bumped) {
84
85
  process.exit(1);
@@ -88,7 +89,7 @@ program.command("bump").description("Bump package versions").option("--major", "
88
89
  process.exit(1);
89
90
  }
90
91
  });
91
- program.command("changelog").description("Generate changelogs for all packages").option("--from <ref>", "Start commit reference").option("--to <ref>", "End commit reference").option("--format-cmd <cmd>", 'Command to format CHANGELOG files after generation (e.g. "pnpm lint")').option("--no-root-changelog", "Skip generation of root changelog file").action(async (options) => {
92
+ program.command("changelog").description("Generate changelogs for all packages").option("--from <ref>", "Start commit reference").option("--to <ref>", "End commit reference").option("--format-cmd <cmd>", 'Command to format CHANGELOG files after generation (e.g. "pnpm lint")').option("--no-root-changelog", "Skip generation of root changelog file").option("--include-private", "Include private packages in changelog generation").action(async (options) => {
92
93
  try {
93
94
  await changelog({
94
95
  from: options.from,
@@ -97,7 +98,8 @@ program.command("changelog").description("Generate changelogs for all packages")
97
98
  rootChangelog: hasCliFlag("--no-root-changelog") ? false : void 0,
98
99
  dryRun: program.opts().dryRun,
99
100
  logLevel: program.opts().logLevel,
100
- configName: program.opts().config
101
+ configName: program.opts().config,
102
+ includePrivates: options.includePrivate || void 0
101
103
  });
102
104
  } catch (error) {
103
105
  logger.error("Failed to generate changelog -", error);
@@ -166,13 +168,14 @@ program.command("pr-comment").description("Post or re-post a PR comment with rel
166
168
  process.exit(1);
167
169
  }
168
170
  });
169
- program.command("release").description("Complete release workflow (bump + changelog + commit + tag + push to remote + publish release)").option("--major", "Bump major version").option("--minor", "Bump minor version").option("--patch", "Bump patch version").option("--prerelease", "Bump prerelease version").option("--premajor", "Bump premajor version").option("--preminor", "Bump preminor version").option("--prepatch", "Bump prepatch version").option("--preid <id>", "Prerelease identifier (alpha, beta, rc, etc.)").option("--suffix <suffix>", "Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)").option("--from <ref>", "Start commit reference").option("--to <ref>", "End commit reference").option("--no-push", "Skip push changes and tags to remote").option("--no-provider-release", "Skip release creation (GitHub/GitLab)").option("--no-publish", "Skip npm publish").option("--registry <url>", "Custom npm registry URL").option("--tag <tag>", "Publish with specific tag (default: latest for stable, next for prerelease)").option("--access <type>", "Package access level (public or restricted)").option("--otp <code>", "One-time password for 2FA").option("--no-verify", "Skip git hooks during commit").option("--format-cmd <cmd>", 'Command to format CHANGELOG files after generation (e.g. "pnpm lint")').option("--build-cmd <cmd>", 'Command to build packages before publish (e.g. "pnpm build")').option("--no-root-changelog", "Skip generation of root changelog file").option("--token <token>", "Git token (github or gitlab)").option("--force", "Bump even if there are no commits").option("--no-clean", "Skip check if the working directory is clean").option("--no-commit", "Skip commit and tag").option("--no-git-tag", "Skip tag creation").option("--no-changelog", "Skip changelog generation files").option("--provider <provider>", "Git provider (github or gitlab)").option("--no-social", "Skip social media posting").option("--no-pr-comment", "Skip PR comment posting").option("--yes", "Skip confirmation prompt about bumping packages").option("--publish-token <token>", 'NPM token (e.g. "123456") - only supported for pnpm and npm').option("--canary", "Publish a canary release from the current commit").action(async (options) => {
171
+ program.command("release").description("Complete release workflow (bump + changelog + commit + tag + push to remote + publish release)").option("--major", "Bump major version").option("--minor", "Bump minor version").option("--patch", "Bump patch version").option("--prerelease", "Bump prerelease version").option("--premajor", "Bump premajor version").option("--preminor", "Bump preminor version").option("--prepatch", "Bump prepatch version").option("--preid <id>", "Prerelease identifier (alpha, beta, rc, etc.)").option("--suffix <suffix>", "Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)").option("--from <ref>", "Start commit reference").option("--to <ref>", "End commit reference").option("--no-push", "Skip push changes and tags to remote").option("--no-provider-release", "Skip release creation (GitHub/GitLab)").option("--no-publish", "Skip npm publish").option("--registry <url>", "Custom npm registry URL").option("--tag <tag>", "Publish with specific tag (default: latest for stable, next for prerelease)").option("--access <type>", "Package access level (public or restricted)").option("--otp <code>", "One-time password for 2FA").option("--no-verify", "Skip git hooks during commit").option("--format-cmd <cmd>", 'Command to format CHANGELOG files after generation (e.g. "pnpm lint")').option("--build-cmd <cmd>", 'Command to build packages before publish (e.g. "pnpm build")').option("--no-root-changelog", "Skip generation of root changelog file").option("--token <token>", "Git token (github or gitlab)").option("--force", "Bump even if there are no commits").option("--no-clean", "Skip check if the working directory is clean").option("--no-commit", "Skip commit and tag").option("--no-git-tag", "Skip tag creation").option("--no-changelog", "Skip changelog generation files").option("--provider <provider>", "Git provider (github or gitlab)").option("--no-social", "Skip social media posting").option("--no-pr-comment", "Skip PR comment posting").option("--yes", "Skip confirmation prompt about bumping packages").option("--publish-token <token>", 'NPM token (e.g. "123456") - only supported for pnpm and npm').option("--canary", "Publish a canary release from the current commit").option("--include-private", "Include private packages in bump and changelog phases").action(async (options) => {
170
172
  try {
171
173
  await release({
172
174
  type: getReleaseType(options),
173
175
  preid: options.preid,
174
176
  suffix: options.suffix,
175
177
  canary: options.canary,
178
+ includePrivates: options.includePrivate || void 0,
176
179
  from: options.from,
177
180
  to: options.to,
178
181
  changelog: hasCliFlag("--no-changelog") ? false : void 0,
package/dist/index.d.mts CHANGED
@@ -21,6 +21,7 @@ declare function getDefaultConfig(): {
21
21
  noAuthors: boolean;
22
22
  bump: Required<Omit<BumpConfig, "preid">>;
23
23
  changelog: Required<ChangelogConfig>;
24
+ monorepo: MonorepoConfig;
24
25
  publish: {
25
26
  private: false;
26
27
  args: never[];
@@ -270,10 +271,11 @@ declare function getRootPackage({ config, force, from, to, suffix, changelog, }:
270
271
  suffix: string | undefined;
271
272
  changelog: boolean;
272
273
  }): Promise<RootPackage>;
273
- declare function readPackages({ cwd, patterns, ignorePackageNames, }: {
274
+ declare function readPackages({ cwd, patterns, ignorePackageNames, includePrivates, }: {
274
275
  cwd: string;
275
276
  patterns?: string[];
276
277
  ignorePackageNames: NonNullable<ResolvedRelizyConfig['monorepo']>['ignorePackageNames'];
278
+ includePrivates?: boolean;
277
279
  }): ReadPackage[];
278
280
  declare function getPackages({ config, suffix, force, }: {
279
281
  config: ResolvedRelizyConfig;
@@ -422,6 +424,9 @@ declare function executeBuildCmd({ config, dryRun, }: {
422
424
  declare function isBumpedPackage(pkg: PackageBase): pkg is PackageBase & {
423
425
  oldVersion: string;
424
426
  };
427
+ declare function filterOutPrivatePackages<T extends {
428
+ private: boolean;
429
+ }>(packages: T[]): T[];
425
430
  declare function getPackagesOrBumpedPackages({ config, bumpResult, suffix, force, }: {
426
431
  config: ResolvedRelizyConfig;
427
432
  bumpResult: BumpResultTruthy | undefined;
@@ -723,6 +728,13 @@ interface MonorepoConfig {
723
728
  * @default []
724
729
  */
725
730
  ignorePackageNames?: string[];
731
+ /**
732
+ * Include private packages (with `"private": true` in package.json) in
733
+ * bump and changelog operations. Private packages remain excluded from
734
+ * publish, provider-release, and pr-comment regardless of this flag.
735
+ * @default false
736
+ */
737
+ includePrivates?: boolean;
726
738
  }
727
739
  type ConfigType = {
728
740
  /**
@@ -793,6 +805,11 @@ interface BumpOptions extends BumpConfig {
793
805
  * @default false
794
806
  */
795
807
  canary?: boolean;
808
+ /**
809
+ * Include private packages in the bump.
810
+ * @default false
811
+ */
812
+ includePrivates?: boolean;
796
813
  }
797
814
  interface ChangelogConfig {
798
815
  /**
@@ -850,6 +867,11 @@ interface ChangelogOptions extends ChangelogConfig {
850
867
  * Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)
851
868
  */
852
869
  suffix?: string;
870
+ /**
871
+ * Include private packages in the changelog generation.
872
+ * @default false
873
+ */
874
+ includePrivates?: boolean;
853
875
  }
854
876
  interface ProviderReleaseOptions {
855
877
  /**
@@ -1121,6 +1143,11 @@ interface ReleaseOptions extends ReleaseConfig, BumpConfig, ChangelogConfig, Pub
1121
1143
  * @default false
1122
1144
  */
1123
1145
  canary?: boolean;
1146
+ /**
1147
+ * Include private packages in bump and changelog operations.
1148
+ * @default false
1149
+ */
1150
+ includePrivates?: boolean;
1124
1151
  }
1125
1152
  interface TwitterCredentials {
1126
1153
  /**
@@ -1538,5 +1565,5 @@ declare function socialSafetyCheck({ config }: {
1538
1565
  }): Promise<void>;
1539
1566
  declare function social(options?: Partial<SocialOptions>): Promise<SocialResult>;
1540
1567
 
1541
- export { NEW_PACKAGE_MARKER, PR_COMMENT_MARKER, buildCommentBody, bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, detectPullRequest, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractChangelogSummary, extractVersionFromPackageTag, extractVersionFromTag, fetchGitTags, findGitHubPR, findGitLabMR, formatChangelogForSlack, formatSlackMessage, formatTweetMessage, generateChangelog, getAuthCommand, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCanaryVersion, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getModifiedReleaseFilePatterns, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesOrBumpedPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getReleaseUrl, getRootPackage, getShortCommitSha, getSlackToken, getTwitterCredentials, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isGraduatingToStableBetweenVersion, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, isTagVersionCompatibleWithCurrent, loadRelizyConfig, parseGitRemoteUrl, postPrComment, postReleaseToSlack, postReleaseToTwitter, prComment, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, publishSafetyCheck, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, rollbackModifiedFiles, shouldFilterPrereleaseTags, social, socialSafetyCheck, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
1568
+ export { NEW_PACKAGE_MARKER, PR_COMMENT_MARKER, buildCommentBody, bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, detectPullRequest, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractChangelogSummary, extractVersionFromPackageTag, extractVersionFromTag, fetchGitTags, filterOutPrivatePackages, findGitHubPR, findGitLabMR, formatChangelogForSlack, formatSlackMessage, formatTweetMessage, generateChangelog, getAuthCommand, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCanaryVersion, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getModifiedReleaseFilePatterns, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesOrBumpedPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getReleaseUrl, getRootPackage, getShortCommitSha, getSlackToken, getTwitterCredentials, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isGraduatingToStableBetweenVersion, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, isTagVersionCompatibleWithCurrent, loadRelizyConfig, parseGitRemoteUrl, postPrComment, postReleaseToSlack, postReleaseToTwitter, prComment, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, publishSafetyCheck, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, rollbackModifiedFiles, shouldFilterPrereleaseTags, social, socialSafetyCheck, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
1542
1569
  export type { BumpConfig, BumpOptions, BumpResult, BumpResultFalsy, BumpResultTruthy, ChangelogConfig, ChangelogOptions, ConfigType, GitProvider, GitlabRelease, GitlabReleaseResponse, HookConfig, HookStep, HookType, MonorepoConfig, PackageBase, PackageManager, PostedRelease, PrCommentConfig, PrCommentMode, PrCommentOptions, PrCommentStatus, ProviderReleaseOptions, ProviderReleaseResult, PublishConfig, PublishOptions, PublishResponse, PullRequestInfo, ReadPackage, ReleaseConfig, ReleaseContext, ReleaseOptions, RelizyConfig, RepoConfig, ResolvedConfig, ResolvedRelizyConfig, ResolvedTags, ResolvedTwitterCredentials, RootPackage, SlackCredentials, SlackOptions, SlackSocialConfig, SocialConfig, SocialNetworkResult, SocialOptions, SocialResult, Step, TemplatesConfig, TokensConfig, TwitterCredentials, TwitterOptions, TwitterSocialConfig, VersionMode };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ declare function getDefaultConfig(): {
21
21
  noAuthors: boolean;
22
22
  bump: Required<Omit<BumpConfig, "preid">>;
23
23
  changelog: Required<ChangelogConfig>;
24
+ monorepo: MonorepoConfig;
24
25
  publish: {
25
26
  private: false;
26
27
  args: never[];
@@ -270,10 +271,11 @@ declare function getRootPackage({ config, force, from, to, suffix, changelog, }:
270
271
  suffix: string | undefined;
271
272
  changelog: boolean;
272
273
  }): Promise<RootPackage>;
273
- declare function readPackages({ cwd, patterns, ignorePackageNames, }: {
274
+ declare function readPackages({ cwd, patterns, ignorePackageNames, includePrivates, }: {
274
275
  cwd: string;
275
276
  patterns?: string[];
276
277
  ignorePackageNames: NonNullable<ResolvedRelizyConfig['monorepo']>['ignorePackageNames'];
278
+ includePrivates?: boolean;
277
279
  }): ReadPackage[];
278
280
  declare function getPackages({ config, suffix, force, }: {
279
281
  config: ResolvedRelizyConfig;
@@ -422,6 +424,9 @@ declare function executeBuildCmd({ config, dryRun, }: {
422
424
  declare function isBumpedPackage(pkg: PackageBase): pkg is PackageBase & {
423
425
  oldVersion: string;
424
426
  };
427
+ declare function filterOutPrivatePackages<T extends {
428
+ private: boolean;
429
+ }>(packages: T[]): T[];
425
430
  declare function getPackagesOrBumpedPackages({ config, bumpResult, suffix, force, }: {
426
431
  config: ResolvedRelizyConfig;
427
432
  bumpResult: BumpResultTruthy | undefined;
@@ -723,6 +728,13 @@ interface MonorepoConfig {
723
728
  * @default []
724
729
  */
725
730
  ignorePackageNames?: string[];
731
+ /**
732
+ * Include private packages (with `"private": true` in package.json) in
733
+ * bump and changelog operations. Private packages remain excluded from
734
+ * publish, provider-release, and pr-comment regardless of this flag.
735
+ * @default false
736
+ */
737
+ includePrivates?: boolean;
726
738
  }
727
739
  type ConfigType = {
728
740
  /**
@@ -793,6 +805,11 @@ interface BumpOptions extends BumpConfig {
793
805
  * @default false
794
806
  */
795
807
  canary?: boolean;
808
+ /**
809
+ * Include private packages in the bump.
810
+ * @default false
811
+ */
812
+ includePrivates?: boolean;
796
813
  }
797
814
  interface ChangelogConfig {
798
815
  /**
@@ -850,6 +867,11 @@ interface ChangelogOptions extends ChangelogConfig {
850
867
  * Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)
851
868
  */
852
869
  suffix?: string;
870
+ /**
871
+ * Include private packages in the changelog generation.
872
+ * @default false
873
+ */
874
+ includePrivates?: boolean;
853
875
  }
854
876
  interface ProviderReleaseOptions {
855
877
  /**
@@ -1121,6 +1143,11 @@ interface ReleaseOptions extends ReleaseConfig, BumpConfig, ChangelogConfig, Pub
1121
1143
  * @default false
1122
1144
  */
1123
1145
  canary?: boolean;
1146
+ /**
1147
+ * Include private packages in bump and changelog operations.
1148
+ * @default false
1149
+ */
1150
+ includePrivates?: boolean;
1124
1151
  }
1125
1152
  interface TwitterCredentials {
1126
1153
  /**
@@ -1538,5 +1565,5 @@ declare function socialSafetyCheck({ config }: {
1538
1565
  }): Promise<void>;
1539
1566
  declare function social(options?: Partial<SocialOptions>): Promise<SocialResult>;
1540
1567
 
1541
- export { NEW_PACKAGE_MARKER, PR_COMMENT_MARKER, buildCommentBody, bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, detectPullRequest, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractChangelogSummary, extractVersionFromPackageTag, extractVersionFromTag, fetchGitTags, findGitHubPR, findGitLabMR, formatChangelogForSlack, formatSlackMessage, formatTweetMessage, generateChangelog, getAuthCommand, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCanaryVersion, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getModifiedReleaseFilePatterns, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesOrBumpedPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getReleaseUrl, getRootPackage, getShortCommitSha, getSlackToken, getTwitterCredentials, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isGraduatingToStableBetweenVersion, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, isTagVersionCompatibleWithCurrent, loadRelizyConfig, parseGitRemoteUrl, postPrComment, postReleaseToSlack, postReleaseToTwitter, prComment, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, publishSafetyCheck, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, rollbackModifiedFiles, shouldFilterPrereleaseTags, social, socialSafetyCheck, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
1568
+ export { NEW_PACKAGE_MARKER, PR_COMMENT_MARKER, buildCommentBody, bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, detectPullRequest, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractChangelogSummary, extractVersionFromPackageTag, extractVersionFromTag, fetchGitTags, filterOutPrivatePackages, findGitHubPR, findGitLabMR, formatChangelogForSlack, formatSlackMessage, formatTweetMessage, generateChangelog, getAuthCommand, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCanaryVersion, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getModifiedReleaseFilePatterns, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesOrBumpedPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getReleaseUrl, getRootPackage, getShortCommitSha, getSlackToken, getTwitterCredentials, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isGraduatingToStableBetweenVersion, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, isTagVersionCompatibleWithCurrent, loadRelizyConfig, parseGitRemoteUrl, postPrComment, postReleaseToSlack, postReleaseToTwitter, prComment, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, publishSafetyCheck, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, rollbackModifiedFiles, shouldFilterPrereleaseTags, social, socialSafetyCheck, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
1542
1569
  export type { BumpConfig, BumpOptions, BumpResult, BumpResultFalsy, BumpResultTruthy, ChangelogConfig, ChangelogOptions, ConfigType, GitProvider, GitlabRelease, GitlabReleaseResponse, HookConfig, HookStep, HookType, MonorepoConfig, PackageBase, PackageManager, PostedRelease, PrCommentConfig, PrCommentMode, PrCommentOptions, PrCommentStatus, ProviderReleaseOptions, ProviderReleaseResult, PublishConfig, PublishOptions, PublishResponse, PullRequestInfo, ReadPackage, ReleaseConfig, ReleaseContext, ReleaseOptions, RelizyConfig, RepoConfig, ResolvedConfig, ResolvedRelizyConfig, ResolvedTags, ResolvedTwitterCredentials, RootPackage, SlackCredentials, SlackOptions, SlackSocialConfig, SocialConfig, SocialNetworkResult, SocialOptions, SocialResult, Step, TemplatesConfig, TokensConfig, TwitterCredentials, TwitterOptions, TwitterSocialConfig, VersionMode };
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.D-9J-Nlo.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, aB as confirmBump, A as createCommitAndTags, I as createGitlabRelease, k as defineConfig, x as detectGitProvider, K as detectPackageManager, S as detectPullRequest, L as determinePublishTag, ap as determineReleaseType, ao as determineSemverChange, aj as executeBuildCmd, ai as executeFormatCmd, af as executeHook, o as expandPackagesToBumpWithDependents, a3 as extractChangelogSummary, at as extractVersionFromPackageTag, aE as extractVersionFromTag, v as fetchGitTags, al as filterOutPrivatePackages, Q as findGitHubPR, R as findGitLabMR, a0 as formatChangelogForSlack, a1 as formatSlackMessage, ad as formatTweetMessage, i as generateChangelog, O as getAuthCommand, aC as getBumpedIndependentPackages, aA as getBumpedPackageIndependently, ah as getCIName, aF 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, ar as getPackageNewVersion, Y as getPackages, am as getPackagesOrBumpedPackages, N as getPackagesToPublishInIndependentMode, M as getPackagesToPublishInSelectiveMode, ay 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, az as isChangedPreid, ax as isGraduating, an as isGraduatingToStableBetweenVersion, ag as isInCI, au as isPrerelease, aw as isPrereleaseReleaseType, av as isStableReleaseType, aG 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, aD as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, as as updateLernaVersion, w as writeChangelogToFile, aq as writeVersion } from './shared/relizy.CiHvixG7.mjs';
2
2
  import '@maz-ui/node';
3
3
  import 'node:process';
4
4
  import '@maz-ui/utils';
@@ -225,7 +225,8 @@ async function getRootPackage({
225
225
  function readPackages({
226
226
  cwd,
227
227
  patterns,
228
- ignorePackageNames
228
+ ignorePackageNames,
229
+ includePrivates
229
230
  }) {
230
231
  const packages = [];
231
232
  const foundPaths = /* @__PURE__ */ new Set();
@@ -245,7 +246,7 @@ function readPackages({
245
246
  if (foundPaths.has(matchPath))
246
247
  continue;
247
248
  const packageBase = readPackageJson(matchPath);
248
- if (!packageBase || packageBase.private || ignorePackageNames?.includes(packageBase.name))
249
+ if (!packageBase || packageBase.private && !includePrivates || ignorePackageNames?.includes(packageBase.name))
249
250
  continue;
250
251
  foundPaths.add(matchPath);
251
252
  packages.push({
@@ -300,7 +301,8 @@ async function getPackages({
300
301
  const readedPackages = readPackages({
301
302
  cwd: config.cwd,
302
303
  patterns,
303
- ignorePackageNames: config.monorepo?.ignorePackageNames
304
+ ignorePackageNames: config.monorepo?.ignorePackageNames,
305
+ includePrivates: config.monorepo?.includePrivates
304
306
  });
305
307
  const packages = /* @__PURE__ */ new Map();
306
308
  const foundPaths = /* @__PURE__ */ new Set();
@@ -323,7 +325,7 @@ async function getPackages({
323
325
  logger.debug(`Failed to read package.json at ${matchPath} - ignored`);
324
326
  continue;
325
327
  }
326
- if (packageBase.private) {
328
+ if (packageBase.private && !config.monorepo?.includePrivates) {
327
329
  logger.debug(`${packageBase.name} is private and will be ignored`);
328
330
  continue;
329
331
  }
@@ -428,7 +430,8 @@ function isCommitOfTrackedPackages({
428
430
  const packages = readPackages({
429
431
  cwd: config.cwd,
430
432
  patterns: config.monorepo.packages,
431
- ignorePackageNames: config.monorepo?.ignorePackageNames
433
+ ignorePackageNames: config.monorepo?.ignorePackageNames,
434
+ includePrivates: config.monorepo?.includePrivates
432
435
  });
433
436
  return packages.some((pkg) => {
434
437
  const path = relative(config.cwd, pkg.path).split(sep).join("/");
@@ -784,6 +787,7 @@ function displayRootAndLernaUpdates({
784
787
  }
785
788
  }
786
789
  }
790
+ const PRIVATE_SUFFIX = " \u{1F512} [private: bump only, not published]";
787
791
  function displayUnifiedModePackages({
788
792
  packages,
789
793
  newVersion,
@@ -791,7 +795,7 @@ function displayUnifiedModePackages({
791
795
  }) {
792
796
  logger.log(`${packages.length} package(s):`);
793
797
  packages.forEach((pkg) => {
794
- logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}`);
798
+ logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
795
799
  });
796
800
  logger.log("");
797
801
  }
@@ -803,7 +807,7 @@ function displaySelectiveModePackages({
803
807
  if (force) {
804
808
  logger.log(`${packages.length} package(s):`);
805
809
  packages.forEach((pkg) => {
806
- logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (force)`);
810
+ logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (force)${pkg.private ? PRIVATE_SUFFIX : ""}`);
807
811
  });
808
812
  logger.log("");
809
813
  } else {
@@ -813,21 +817,21 @@ function displaySelectiveModePackages({
813
817
  if (packagesWithCommits.length > 0) {
814
818
  logger.log(`${packagesWithCommits.length} package(s) with commits:`);
815
819
  packagesWithCommits.forEach((pkg) => {
816
- logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}`);
820
+ logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
817
821
  });
818
822
  logger.log("");
819
823
  }
820
824
  if (packagesAsDependents.length > 0) {
821
825
  logger.log(`${packagesAsDependents.length} dependent package(s):`);
822
826
  packagesAsDependents.forEach((pkg) => {
823
- logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} ${force ? "(force)" : ""}`);
827
+ logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
824
828
  });
825
829
  logger.log("");
826
830
  }
827
831
  if (packagesAsGraduation.length > 0) {
828
832
  logger.log(`${packagesAsGraduation.length} graduation package(s):`);
829
833
  packagesAsGraduation.forEach((pkg) => {
830
- logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} ${force ? "(force)" : ""}`);
834
+ logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
831
835
  });
832
836
  logger.log("");
833
837
  }
@@ -840,7 +844,7 @@ function displayIndependentModePackages({
840
844
  if (force) {
841
845
  logger.log(`${packages.length} package(s):`);
842
846
  packages.forEach((pkg) => {
843
- logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} (force)`);
847
+ logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} (force)${pkg.private ? PRIVATE_SUFFIX : ""}`);
844
848
  });
845
849
  logger.log("");
846
850
  } else {
@@ -850,21 +854,21 @@ function displayIndependentModePackages({
850
854
  if (packagesWithCommits.length > 0) {
851
855
  logger.log(`${packagesWithCommits.length} package(s) with commits:`);
852
856
  packagesWithCommits.forEach((pkg) => {
853
- pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}`);
857
+ pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
854
858
  });
855
859
  logger.log("");
856
860
  }
857
861
  if (packagesAsDependents.length > 0) {
858
862
  logger.log(`${packagesAsDependents.length} dependent package(s):`);
859
863
  packagesAsDependents.forEach((pkg) => {
860
- pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} ${force ? "(force)" : ""}`);
864
+ pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
861
865
  });
862
866
  logger.log("");
863
867
  }
864
868
  if (packagesAsGraduation.length > 0) {
865
869
  logger.log(`${packagesAsGraduation.length} graduation package(s):`);
866
870
  packagesAsGraduation.forEach((pkg) => {
867
- pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} ${force ? "(force)" : ""}`);
871
+ pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} ${force ? "(force)" : ""}${pkg.private ? PRIVATE_SUFFIX : ""}`);
868
872
  });
869
873
  logger.log("");
870
874
  }
@@ -887,6 +891,9 @@ async function confirmBump({
887
891
  logger.log("");
888
892
  logger.info(`${dryRun ? "[dry-run] " : ""}The following packages will be updated:
889
893
  `);
894
+ if (packages.some((p) => p.private)) {
895
+ logger.log("\u{1F512} Private packages are versioned and get a CHANGELOG, but are never published to a registry, nor included in provider releases or PR comments.\n");
896
+ }
890
897
  displayRootAndLernaUpdates({
891
898
  versionMode,
892
899
  currentVersion,
@@ -1456,6 +1463,9 @@ async function executeBuildCmd({
1456
1463
  function isBumpedPackage(pkg) {
1457
1464
  return "oldVersion" in pkg && !!pkg.oldVersion;
1458
1465
  }
1466
+ function filterOutPrivatePackages(packages) {
1467
+ return packages.filter((p) => !p.private);
1468
+ }
1459
1469
  async function getPackagesOrBumpedPackages({
1460
1470
  config,
1461
1471
  bumpResult,
@@ -1806,6 +1816,9 @@ function getDefaultConfig() {
1806
1816
  rootChangelog: true,
1807
1817
  includeCommitBody: true
1808
1818
  },
1819
+ monorepo: {
1820
+ includePrivates: false
1821
+ },
1809
1822
  publish: {
1810
1823
  private: false,
1811
1824
  args: [],
@@ -2473,12 +2486,12 @@ async function githubIndependentMode({
2473
2486
  if (!config.tokens.github && !config.repo?.token) {
2474
2487
  throw new Error("No GitHub token specified. Set GITHUB_TOKEN or GH_TOKEN environment variable.");
2475
2488
  }
2476
- const packages = await getPackagesOrBumpedPackages({
2489
+ const packages = filterOutPrivatePackages(await getPackagesOrBumpedPackages({
2477
2490
  config,
2478
2491
  bumpResult,
2479
2492
  suffix,
2480
2493
  force
2481
- });
2494
+ }));
2482
2495
  logger.info(`Creating ${packages.length} GitHub release(s)`);
2483
2496
  const postedReleases = [];
2484
2497
  for (const pkg of packages) {
@@ -2723,12 +2736,12 @@ async function gitlabIndependentMode({
2723
2736
  force
2724
2737
  }) {
2725
2738
  logger.debug(`GitLab token: ${config.tokens.gitlab || config.repo?.token ? "\u2713 provided" : "\u2717 missing"}`);
2726
- const packages = await getPackagesOrBumpedPackages({
2739
+ const packages = filterOutPrivatePackages(await getPackagesOrBumpedPackages({
2727
2740
  config,
2728
2741
  bumpResult,
2729
2742
  suffix,
2730
2743
  force
2731
- });
2744
+ }));
2732
2745
  logger.info(`Creating ${packages.length} GitLab release(s) for independent packages`);
2733
2746
  logger.debug("Getting current branch...");
2734
2747
  const { stdout: currentBranch } = await execPromise("git rev-parse --abbrev-ref HEAD", {
@@ -3968,6 +3981,7 @@ async function bump(options = {}) {
3968
3981
  preid: options.preid,
3969
3982
  dependencyTypes: options.dependencyTypes
3970
3983
  },
3984
+ monorepo: options.includePrivates !== void 0 ? { includePrivates: options.includePrivates } : void 0,
3971
3985
  logLevel: options.logLevel
3972
3986
  }
3973
3987
  });
@@ -4003,7 +4017,7 @@ async function bump(options = {}) {
4003
4017
  force,
4004
4018
  suffix: options.suffix
4005
4019
  };
4006
- if (config.monorepo?.versionMode === "unified" || !config.monorepo) {
4020
+ if (config.monorepo?.versionMode === "unified" || !config.monorepo?.versionMode) {
4007
4021
  result = await bumpUnifiedMode(payload);
4008
4022
  } else if (config.monorepo?.versionMode === "selective") {
4009
4023
  result = await bumpSelectiveMode(payload);
@@ -4140,6 +4154,7 @@ async function changelog(options = {}) {
4140
4154
  from: options.from,
4141
4155
  to: options.to,
4142
4156
  logLevel: options.logLevel,
4157
+ monorepo: options.includePrivates !== void 0 ? { includePrivates: options.includePrivates } : void 0,
4143
4158
  changelog: {
4144
4159
  rootChangelog: options.rootChangelog,
4145
4160
  formatCmd: options.formatCmd
@@ -4158,7 +4173,7 @@ async function changelog(options = {}) {
4158
4173
  suffix: options.suffix,
4159
4174
  force: options.force ?? false
4160
4175
  });
4161
- if (config.changelog?.rootChangelog && config.monorepo) {
4176
+ if (config.changelog?.rootChangelog && config.monorepo?.versionMode) {
4162
4177
  if (config.monorepo.versionMode === "independent") {
4163
4178
  await generateIndependentRootChangelog({
4164
4179
  packages,
@@ -4362,7 +4377,7 @@ function buildSuccessComment({
4362
4377
  rootVersion
4363
4378
  }) {
4364
4379
  const bumpResult = releaseContext?.bumpResult;
4365
- const bumpedPackages = bumpResult?.bumpedPackages ?? [];
4380
+ const bumpedPackages = filterOutPrivatePackages(bumpResult?.bumpedPackages ?? []);
4366
4381
  const version = bumpResult?.newVersion ?? rootVersion ?? "unknown";
4367
4382
  const tags = releaseContext?.tags ?? [];
4368
4383
  const distTag = config.publish?.tag;
@@ -4444,11 +4459,12 @@ async function prComment(options = {}) {
4444
4459
  throw new Error("Failed to read root package.json");
4445
4460
  }
4446
4461
  rootVersion = rootPackage.version;
4447
- const readPkgs = readPackages({
4462
+ const readPkgs = filterOutPrivatePackages(readPackages({
4448
4463
  cwd: config.cwd,
4449
4464
  patterns: config.monorepo?.packages,
4450
- ignorePackageNames: config.monorepo?.ignorePackageNames
4451
- });
4465
+ ignorePackageNames: config.monorepo?.ignorePackageNames,
4466
+ includePrivates: config.monorepo?.includePrivates
4467
+ }));
4452
4468
  packages = readPkgs.map((pkg) => ({ name: pkg.name, version: pkg.version }));
4453
4469
  }
4454
4470
  const body = buildCommentBody({
@@ -4654,12 +4670,16 @@ async function publish(options = {}) {
4654
4670
  throw new Error("Failed to read root package.json");
4655
4671
  }
4656
4672
  logger.start("Start publishing packages");
4657
- const packages = await getPackagesOrBumpedPackages({
4673
+ const discoveredPackages = await getPackagesOrBumpedPackages({
4658
4674
  config,
4659
4675
  bumpResult: options.bumpResult,
4660
4676
  suffix: options.suffix,
4661
4677
  force: options.force ?? false
4662
4678
  });
4679
+ const packages = filterOutPrivatePackages(discoveredPackages);
4680
+ if (discoveredPackages.length !== packages.length) {
4681
+ logger.debug(`Filtered out ${discoveredPackages.length - packages.length} private package(s) from publish`);
4682
+ }
4663
4683
  logger.debug(`Found ${packages.length} package(s)`);
4664
4684
  logger.debug("Building dependency graph and sorting...");
4665
4685
  const sortedPackages = topologicalSort(packages);
@@ -5045,6 +5065,7 @@ function getReleaseConfig(options = {}) {
5045
5065
  social: options.social,
5046
5066
  prComment: options.prComment
5047
5067
  },
5068
+ monorepo: options.includePrivates !== void 0 ? { includePrivates: options.includePrivates } : void 0,
5048
5069
  safetyCheck: options.safetyCheck
5049
5070
  }
5050
5071
  });
@@ -5134,7 +5155,8 @@ async function release(options = {}) {
5134
5155
  clean: config.release.clean,
5135
5156
  configName: options.configName,
5136
5157
  suffix: options.suffix,
5137
- canary: isCanary
5158
+ canary: isCanary,
5159
+ includePrivates: options.includePrivates
5138
5160
  });
5139
5161
  if (!bumpResult.bumped) {
5140
5162
  logger.debug("No packages bumped");
@@ -5162,7 +5184,8 @@ async function release(options = {}) {
5162
5184
  logLevel: config.logLevel,
5163
5185
  configName: options.configName,
5164
5186
  force,
5165
- suffix: options.suffix
5187
+ suffix: options.suffix,
5188
+ includePrivates: options.includePrivates
5166
5189
  });
5167
5190
  } else {
5168
5191
  logger.info("Skipping changelog generation (--no-changelog)");
@@ -5334,4 +5357,4 @@ Git provider: ${provider}`);
5334
5357
  }
5335
5358
  }
5336
5359
 
5337
- export { getSlackToken as $, createCommitAndTags as A, pushCommitAndTags as B, rollbackModifiedFiles as C, getFirstCommit as D, getCurrentGitBranch as E, getCurrentGitRef as F, getShortCommitSha as G, github as H, createGitlabRelease as I, gitlab as J, detectPackageManager as K, determinePublishTag as L, getPackagesToPublishInSelectiveMode as M, getPackagesToPublishInIndependentMode as N, getAuthCommand as O, publishPackage as P, findGitHubPR as Q, findGitLabMR as R, detectPullRequest as S, PR_COMMENT_MARKER as T, postPrComment as U, readPackageJson as V, getRootPackage as W, readPackages as X, getPackages as Y, getPackageCommits as Z, hasLernaJson as _, buildCommentBody as a, formatChangelogForSlack as a0, formatSlackMessage as a1, postReleaseToSlack as a2, extractChangelogSummary as a3, getReleaseUrl as a4, getIndependentTag as a5, getLastStableTag as a6, getLastTag as a7, getLastRepoTag as a8, getLastPackageTag as a9, confirmBump as aA, getBumpedIndependentPackages as aB, shouldFilterPrereleaseTags as aC, extractVersionFromTag as aD, getCanaryVersion as aE, isTagVersionCompatibleWithCurrent as aF, NEW_PACKAGE_MARKER as aa, resolveTags as ab, getTwitterCredentials as ac, formatTweetMessage as ad, postReleaseToTwitter as ae, executeHook as af, isInCI as ag, getCIName as ah, executeFormatCmd as ai, executeBuildCmd as aj, isBumpedPackage as ak, getPackagesOrBumpedPackages as al, isGraduatingToStableBetweenVersion as am, determineSemverChange as an, determineReleaseType as ao, writeVersion as ap, getPackageNewVersion as aq, updateLernaVersion as ar, extractVersionFromPackageTag as as, isPrerelease as at, isStableReleaseType as au, isPrereleaseReleaseType as av, isGraduating as aw, getPreid as ax, isChangedPreid as ay, getBumpedPackageIndependently as az, bump as b, changelog as c, providerReleaseSafetyCheck as d, providerRelease as e, publishSafetyCheck as f, publish as g, social as h, generateChangelog as i, getDefaultConfig as j, defineConfig as k, loadRelizyConfig as l, getPackageDependencies as m, getDependentsOf as n, expandPackagesToBumpWithDependents as o, prComment as p, getGitStatus as q, release as r, socialSafetyCheck as s, topologicalSort as t, checkGitStatusIfDirty as u, fetchGitTags as v, writeChangelogToFile as w, detectGitProvider as x, parseGitRemoteUrl as y, getModifiedReleaseFilePatterns as z };
5360
+ export { getSlackToken as $, createCommitAndTags as A, pushCommitAndTags as B, rollbackModifiedFiles as C, getFirstCommit as D, getCurrentGitBranch as E, getCurrentGitRef as F, getShortCommitSha as G, github as H, createGitlabRelease as I, gitlab as J, detectPackageManager as K, determinePublishTag as L, getPackagesToPublishInSelectiveMode as M, getPackagesToPublishInIndependentMode as N, getAuthCommand as O, publishPackage as P, findGitHubPR as Q, findGitLabMR as R, detectPullRequest as S, PR_COMMENT_MARKER as T, postPrComment as U, readPackageJson as V, getRootPackage as W, readPackages as X, getPackages as Y, getPackageCommits as Z, hasLernaJson as _, buildCommentBody as a, formatChangelogForSlack as a0, formatSlackMessage as a1, postReleaseToSlack as a2, extractChangelogSummary as a3, getReleaseUrl as a4, getIndependentTag as a5, getLastStableTag as a6, getLastTag as a7, getLastRepoTag as a8, getLastPackageTag as a9, getBumpedPackageIndependently as aA, confirmBump as aB, getBumpedIndependentPackages as aC, shouldFilterPrereleaseTags as aD, extractVersionFromTag as aE, getCanaryVersion as aF, isTagVersionCompatibleWithCurrent as aG, NEW_PACKAGE_MARKER as aa, resolveTags as ab, getTwitterCredentials as ac, formatTweetMessage as ad, postReleaseToTwitter as ae, executeHook as af, isInCI as ag, getCIName as ah, executeFormatCmd as ai, executeBuildCmd as aj, isBumpedPackage as ak, filterOutPrivatePackages as al, getPackagesOrBumpedPackages as am, isGraduatingToStableBetweenVersion as an, determineSemverChange as ao, determineReleaseType as ap, writeVersion as aq, getPackageNewVersion as ar, updateLernaVersion as as, extractVersionFromPackageTag as at, isPrerelease as au, isStableReleaseType as av, isPrereleaseReleaseType as aw, isGraduating as ax, getPreid as ay, isChangedPreid as az, bump as b, changelog as c, providerReleaseSafetyCheck as d, providerRelease as e, publishSafetyCheck as f, publish as g, social as h, generateChangelog as i, getDefaultConfig as j, defineConfig as k, loadRelizyConfig as l, getPackageDependencies as m, getDependentsOf as n, expandPackagesToBumpWithDependents as o, prComment as p, getGitStatus as q, release as r, socialSafetyCheck as s, topologicalSort as t, checkGitStatusIfDirty as u, fetchGitTags as v, writeChangelogToFile as w, detectGitProvider as x, parseGitRemoteUrl as y, getModifiedReleaseFilePatterns as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relizy",
3
3
  "type": "module",
4
- "version": "1.2.2-beta.1",
4
+ "version": "1.2.2-beta.2",
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",