relizy 1.4.4 → 1.4.5
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.-Cr2hO3N.mjs';
|
|
9
9
|
import 'node:child_process';
|
|
10
10
|
import '@maz-ui/utils';
|
|
11
11
|
import 'c12';
|
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.-Cr2hO3N.mjs';
|
|
2
2
|
import '@maz-ui/node';
|
|
3
3
|
import 'node:child_process';
|
|
4
4
|
import 'node:process';
|
|
@@ -1163,13 +1163,27 @@ async function getLastRepoTagWithFiltering({
|
|
|
1163
1163
|
pkg,
|
|
1164
1164
|
onlyStable
|
|
1165
1165
|
});
|
|
1166
|
-
if (compatibleTags.length
|
|
1167
|
-
|
|
1168
|
-
|
|
1166
|
+
if (compatibleTags.length > 0) {
|
|
1167
|
+
const lastTag = compatibleTags[0];
|
|
1168
|
+
logger.debug(`Last compatible repo tag: ${lastTag}`);
|
|
1169
|
+
return lastTag;
|
|
1170
|
+
}
|
|
1171
|
+
if (onlyStable) {
|
|
1172
|
+
const prereleaseFallback = filterCompatibleTags({
|
|
1173
|
+
tags: recentTags,
|
|
1174
|
+
pkg,
|
|
1175
|
+
onlyStable: false
|
|
1176
|
+
});
|
|
1177
|
+
if (prereleaseFallback.length > 0) {
|
|
1178
|
+
const fallbackTag = prereleaseFallback[0];
|
|
1179
|
+
logger.info(
|
|
1180
|
+
`No stable repo tag found for version ${pkg.version}, falling back to last prerelease tag: ${fallbackTag}`
|
|
1181
|
+
);
|
|
1182
|
+
return fallbackTag;
|
|
1183
|
+
}
|
|
1169
1184
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
return lastTag;
|
|
1185
|
+
logger.info(`No compatible tags found for version ${pkg.version}`);
|
|
1186
|
+
return null;
|
|
1173
1187
|
}
|
|
1174
1188
|
async function getLastPackageTag({
|
|
1175
1189
|
pkg,
|
|
@@ -1230,13 +1244,27 @@ async function getLastPackageTagWithFiltering({
|
|
|
1230
1244
|
pkg,
|
|
1231
1245
|
onlyStable
|
|
1232
1246
|
});
|
|
1233
|
-
if (compatibleTags.length
|
|
1234
|
-
|
|
1235
|
-
|
|
1247
|
+
if (compatibleTags.length > 0) {
|
|
1248
|
+
const lastTag = compatibleTags[0];
|
|
1249
|
+
logger.debug(`Last compatible package tag for ${pkg.name}: ${lastTag}`);
|
|
1250
|
+
return lastTag;
|
|
1251
|
+
}
|
|
1252
|
+
if (onlyStable) {
|
|
1253
|
+
const prereleaseFallback = filterCompatibleTags({
|
|
1254
|
+
tags: recentTags,
|
|
1255
|
+
pkg,
|
|
1256
|
+
onlyStable: false
|
|
1257
|
+
});
|
|
1258
|
+
if (prereleaseFallback.length > 0) {
|
|
1259
|
+
const fallbackTag = prereleaseFallback[0];
|
|
1260
|
+
logger.info(
|
|
1261
|
+
`No stable tags found for package ${pkg.name} with version ${pkg.version}, falling back to last prerelease tag: ${fallbackTag}`
|
|
1262
|
+
);
|
|
1263
|
+
return fallbackTag;
|
|
1264
|
+
}
|
|
1236
1265
|
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
return lastTag;
|
|
1266
|
+
logger.info(`No compatible tags found for package ${pkg.name} with version ${pkg.version}`);
|
|
1267
|
+
return null;
|
|
1240
1268
|
}
|
|
1241
1269
|
const NEW_PACKAGE_MARKER = "__NEW_PACKAGE__";
|
|
1242
1270
|
async function resolveFromTagIndependent({
|
package/package.json
CHANGED