relizy 1.4.1 → 1.4.3
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 { aq as isInCI, ar 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.
|
|
8
|
+
import { aq as isInCI, ar 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.C0nsC_lA.mjs';
|
|
9
9
|
import 'node:child_process';
|
|
10
10
|
import '@maz-ui/utils';
|
|
11
11
|
import 'c12';
|
package/dist/index.d.mts
CHANGED
|
@@ -369,10 +369,11 @@ declare function readPackages({ cwd, patterns, ignorePackageNames, includePrivat
|
|
|
369
369
|
ignorePackageNames: NonNullable<ResolvedRelizyConfig['monorepo']>['ignorePackageNames'];
|
|
370
370
|
includePrivates?: boolean;
|
|
371
371
|
}): ReadPackage[];
|
|
372
|
-
declare function getPackages({ config, suffix, force, }: {
|
|
372
|
+
declare function getPackages({ config, suffix, force, includeAll, }: {
|
|
373
373
|
config: ResolvedRelizyConfig;
|
|
374
374
|
suffix: string | undefined;
|
|
375
375
|
force: boolean;
|
|
376
|
+
includeAll?: boolean;
|
|
376
377
|
}): Promise<PackageBase[]>;
|
|
377
378
|
declare function getPackageCommits({ pkg, from, to, config, changelog, }: {
|
|
378
379
|
pkg: ReadPackage;
|
package/dist/index.d.ts
CHANGED
|
@@ -369,10 +369,11 @@ declare function readPackages({ cwd, patterns, ignorePackageNames, includePrivat
|
|
|
369
369
|
ignorePackageNames: NonNullable<ResolvedRelizyConfig['monorepo']>['ignorePackageNames'];
|
|
370
370
|
includePrivates?: boolean;
|
|
371
371
|
}): ReadPackage[];
|
|
372
|
-
declare function getPackages({ config, suffix, force, }: {
|
|
372
|
+
declare function getPackages({ config, suffix, force, includeAll, }: {
|
|
373
373
|
config: ResolvedRelizyConfig;
|
|
374
374
|
suffix: string | undefined;
|
|
375
375
|
force: boolean;
|
|
376
|
+
includeAll?: boolean;
|
|
376
377
|
}): Promise<PackageBase[]>;
|
|
377
378
|
declare function getPackageCommits({ pkg, from, to, config, changelog, }: {
|
|
378
379
|
pkg: ReadPackage;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ak as NEW_PACKAGE_MARKER, $ as PR_COMMENT_MARKER, M as buildChangelogBody, a as buildCommentBody, L as buildCompareLink, O as buildContributors, b as bump, ay as capReleaseTypeForZeroMajor, c as changelog, v as checkGitStatusIfDirty, N as collectContributorNames, X as collectPackageBumps, aM as confirmBump, B as createCommitAndTags, J as createGitlabRelease, k as defineConfig, y as detectGitProvider, R as detectPackageManager, _ as detectPullRequest, S as determinePublishTag, aA as determineReleaseType, az as determineSemverChange, at as executeBuildCmd, as as executeFormatCmd, ap as executeHook, q as expandPackagesToBumpWithDependents, ad as extractChangelogSummary, aE as extractVersionFromPackageTag, aP as extractVersionFromTag, x as fetchGitTags, av as filterOutPrivatePackages, Y as findGitHubPR, Z as findGitLabMR, a9 as formatChangelogForSlack, aa as formatPackagesForSlack, ab as formatSlackMessage, an as formatTweetMessage, i as generateChangelog, P as generateMarkDown, V as getAuthCommand, aN as getBumpedIndependentPackages, aL as getBumpedPackageIndependently, ar as getCIName, aQ as getCanaryVersion, F as getCurrentGitBranch, G as getCurrentGitRef, j as getDefaultConfig, o as getDependentsOf, E as getFirstCommit, u as getGitStatus, af as getIndependentTag, aj as getLastPackageTag, ai as getLastRepoTag, ag as getLastStableTag, ah as getLastTag, A as getModifiedReleaseFilePatterns, a5 as getPackageCommits, n as getPackageDependencies, aC as getPackageNewVersion, a4 as getPackages, aw as getPackagesOrBumpedPackages, U as getPackagesToPublishInIndependentMode, T as getPackagesToPublishInSelectiveMode, aJ as getPreid, ae as getReleaseUrl, a2 as getRootPackage, H as getShortCommitSha, a7 as getSlackToken, a8 as getSlackWebhookUrl, am as getTwitterCredentials, I as github, K as gitlab, a6 as hasLernaJson, au as isBumpedPackage, aK as isChangedPreid, aI as isGraduating, ax as isGraduatingToStableBetweenVersion, aq as isInCI, aF as isPrerelease, aH as isPrereleaseReleaseType, aG as isStableReleaseType, aR as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, m as mergeTypes, Q as parseChangelogMarkdown, z as parseGitRemoteUrl, a0 as postPrComment, ac as postReleaseToSlack, ao as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, W as publishPackage, f as publishSafetyCheck, C as pushCommitAndTags, a1 as readPackageJson, a3 as readPackages, r as release, al as resolveTags, D as rollbackModifiedFiles, aO as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, aD as updateLernaVersion, w as writeChangelogToFile, aB as writeVersion } from './shared/relizy.
|
|
1
|
+
export { ak as NEW_PACKAGE_MARKER, $ as PR_COMMENT_MARKER, M as buildChangelogBody, a as buildCommentBody, L as buildCompareLink, O as buildContributors, b as bump, ay as capReleaseTypeForZeroMajor, c as changelog, v as checkGitStatusIfDirty, N as collectContributorNames, X as collectPackageBumps, aM as confirmBump, B as createCommitAndTags, J as createGitlabRelease, k as defineConfig, y as detectGitProvider, R as detectPackageManager, _ as detectPullRequest, S as determinePublishTag, aA as determineReleaseType, az as determineSemverChange, at as executeBuildCmd, as as executeFormatCmd, ap as executeHook, q as expandPackagesToBumpWithDependents, ad as extractChangelogSummary, aE as extractVersionFromPackageTag, aP as extractVersionFromTag, x as fetchGitTags, av as filterOutPrivatePackages, Y as findGitHubPR, Z as findGitLabMR, a9 as formatChangelogForSlack, aa as formatPackagesForSlack, ab as formatSlackMessage, an as formatTweetMessage, i as generateChangelog, P as generateMarkDown, V as getAuthCommand, aN as getBumpedIndependentPackages, aL as getBumpedPackageIndependently, ar as getCIName, aQ as getCanaryVersion, F as getCurrentGitBranch, G as getCurrentGitRef, j as getDefaultConfig, o as getDependentsOf, E as getFirstCommit, u as getGitStatus, af as getIndependentTag, aj as getLastPackageTag, ai as getLastRepoTag, ag as getLastStableTag, ah as getLastTag, A as getModifiedReleaseFilePatterns, a5 as getPackageCommits, n as getPackageDependencies, aC as getPackageNewVersion, a4 as getPackages, aw as getPackagesOrBumpedPackages, U as getPackagesToPublishInIndependentMode, T as getPackagesToPublishInSelectiveMode, aJ as getPreid, ae as getReleaseUrl, a2 as getRootPackage, H as getShortCommitSha, a7 as getSlackToken, a8 as getSlackWebhookUrl, am as getTwitterCredentials, I as github, K as gitlab, a6 as hasLernaJson, au as isBumpedPackage, aK as isChangedPreid, aI as isGraduating, ax as isGraduatingToStableBetweenVersion, aq as isInCI, aF as isPrerelease, aH as isPrereleaseReleaseType, aG as isStableReleaseType, aR as isTagVersionCompatibleWithCurrent, l as loadRelizyConfig, m as mergeTypes, Q as parseChangelogMarkdown, z as parseGitRemoteUrl, a0 as postPrComment, ac as postReleaseToSlack, ao as postReleaseToTwitter, p as prComment, e as providerRelease, d as providerReleaseSafetyCheck, g as publish, W as publishPackage, f as publishSafetyCheck, C as pushCommitAndTags, a1 as readPackageJson, a3 as readPackages, r as release, al as resolveTags, D as rollbackModifiedFiles, aO as shouldFilterPrereleaseTags, h as social, s as socialSafetyCheck, t as topologicalSort, aD as updateLernaVersion, w as writeChangelogToFile, aB as writeVersion } from './shared/relizy.C0nsC_lA.mjs';
|
|
2
2
|
import '@maz-ui/node';
|
|
3
3
|
import 'node:child_process';
|
|
4
4
|
import 'node:process';
|
|
@@ -295,7 +295,8 @@ function getPackageReleaseType({
|
|
|
295
295
|
async function getPackages({
|
|
296
296
|
config,
|
|
297
297
|
suffix,
|
|
298
|
-
force
|
|
298
|
+
force,
|
|
299
|
+
includeAll = false
|
|
299
300
|
}) {
|
|
300
301
|
const patterns = config.monorepo?.packages;
|
|
301
302
|
const readedPackages = readPackages({
|
|
@@ -397,7 +398,8 @@ async function getPackages({
|
|
|
397
398
|
reason: pkg.reason || releaseType && graduating && "graduation" || void 0
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
|
-
const
|
|
401
|
+
const allPackages = Array.from(packages.values());
|
|
402
|
+
const packagesToBump = includeAll ? allPackages : allPackages.filter((p) => p.reason || force);
|
|
401
403
|
if (packagesToBump.length === 0) {
|
|
402
404
|
logger.debug("No packages to bump");
|
|
403
405
|
return [];
|
|
@@ -1265,12 +1267,21 @@ async function resolveFromTagUnified({
|
|
|
1265
1267
|
}) {
|
|
1266
1268
|
const filterPrereleases = shouldFilterPrereleaseTags(pkg.version, graduating);
|
|
1267
1269
|
const onlyStable = graduating || filterPrereleases;
|
|
1268
|
-
|
|
1270
|
+
const lastRepoTag = await getLastRepoTag({
|
|
1269
1271
|
pkg,
|
|
1270
1272
|
onlyStable,
|
|
1271
1273
|
logLevel,
|
|
1272
1274
|
cwd: config.cwd
|
|
1273
|
-
})
|
|
1275
|
+
});
|
|
1276
|
+
if (lastRepoTag) {
|
|
1277
|
+
return lastRepoTag;
|
|
1278
|
+
}
|
|
1279
|
+
const isRootPackage = pkg.path === config.cwd;
|
|
1280
|
+
if (!isRootPackage) {
|
|
1281
|
+
logger.debug(`No compatible repo tag for new sub-package ${pkg.name}, marking as new package`);
|
|
1282
|
+
return NEW_PACKAGE_MARKER;
|
|
1283
|
+
}
|
|
1284
|
+
return getFirstCommit(config.cwd);
|
|
1274
1285
|
}
|
|
1275
1286
|
async function resolveFromTag({
|
|
1276
1287
|
config,
|
|
@@ -4146,7 +4157,8 @@ async function bumpUnifiedMode({
|
|
|
4146
4157
|
const packages = await getPackages({
|
|
4147
4158
|
config,
|
|
4148
4159
|
suffix,
|
|
4149
|
-
force
|
|
4160
|
+
force,
|
|
4161
|
+
includeAll: true
|
|
4150
4162
|
});
|
|
4151
4163
|
if (packages.length === 0) {
|
|
4152
4164
|
logger.debug("No packages to bump");
|
|
@@ -4385,10 +4397,12 @@ async function bumpCanaryMode({
|
|
|
4385
4397
|
});
|
|
4386
4398
|
logger.info(`Canary version: ${canaryVersion}`);
|
|
4387
4399
|
const versionMode = config.monorepo?.versionMode || "unified";
|
|
4400
|
+
const isUnified = versionMode === "unified";
|
|
4388
4401
|
const packages = await getPackages({
|
|
4389
4402
|
config,
|
|
4390
4403
|
suffix: void 0,
|
|
4391
|
-
force: false
|
|
4404
|
+
force: false,
|
|
4405
|
+
includeAll: isUnified
|
|
4392
4406
|
});
|
|
4393
4407
|
if (packages.length === 0) {
|
|
4394
4408
|
logger.debug("No packages to bump");
|
package/package.json
CHANGED