relizy 0.2.5-beta.7 → 0.2.5-beta.9
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 +1 -1
- package/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +1 -1
- package/dist/shared/{relizy.D5HbMqu_.mjs → relizy.DXsVzrS_.mjs} +17 -16
- package/package.json +1 -1
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 { U as isInCI, V as getCIName, b as bump, c as changelog, d as publish, a as providerRelease, r as release } from './shared/relizy.
|
|
8
|
+
import { U as isInCI, V as getCIName, b as bump, c as changelog, d as publish, a as providerRelease, r as release } from './shared/relizy.DXsVzrS_.mjs';
|
|
9
9
|
import 'node:child_process';
|
|
10
10
|
import '@maz-ui/utils';
|
|
11
11
|
import 'c12';
|
package/dist/index.d.mts
CHANGED
|
@@ -310,11 +310,7 @@ declare function getBumpedPackageIndependently({ pkg, dryRun, }: {
|
|
|
310
310
|
declare function confirmBump({ versionMode, config, packages, force, currentVersion, newVersion, dryRun, }: {
|
|
311
311
|
versionMode: VersionMode;
|
|
312
312
|
config: ResolvedRelizyConfig;
|
|
313
|
-
packages:
|
|
314
|
-
name: string;
|
|
315
|
-
version: string;
|
|
316
|
-
newVersion?: string;
|
|
317
|
-
}[];
|
|
313
|
+
packages: PackageBase[];
|
|
318
314
|
force: boolean;
|
|
319
315
|
currentVersion?: string;
|
|
320
316
|
newVersion?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -310,11 +310,7 @@ declare function getBumpedPackageIndependently({ pkg, dryRun, }: {
|
|
|
310
310
|
declare function confirmBump({ versionMode, config, packages, force, currentVersion, newVersion, dryRun, }: {
|
|
311
311
|
versionMode: VersionMode;
|
|
312
312
|
config: ResolvedRelizyConfig;
|
|
313
|
-
packages:
|
|
314
|
-
name: string;
|
|
315
|
-
version: string;
|
|
316
|
-
newVersion?: string;
|
|
317
|
-
}[];
|
|
313
|
+
packages: PackageBase[];
|
|
318
314
|
force: boolean;
|
|
319
315
|
currentVersion?: string;
|
|
320
316
|
newVersion?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as bump, c as changelog, m as checkGitStatusIfDirty, aa as confirmBump, s as createCommitAndTags, A as createGitlabRelease, f as defineConfig, o as detectGitProvider, C as detectPackageManager, D as determinePublishTag, _ as determineReleaseType, Z as determineSemverChange, X as executeBuildCmd, W as executeFormatCmd, T as executeHook, j as expandPackagesToBumpWithDependents, a2 as extractVersionFromPackageTag, n as fetchGitTags, g as generateChangelog, ab as getBumpedIndependentPackages, a9 as getBumpedPackageIndependently, V as getCIName, x as getCurrentGitBranch, y as getCurrentGitRef, e as getDefaultConfig, i as getDependentsOf, v as getFirstCommit, k as getGitStatus, N as getIndependentTag, R as getLastPackageTag, Q as getLastRepoTag, O as getLastStableTag, P as getLastTag, L as getPackageCommits, h as getPackageDependencies, a0 as getPackageNewVersion, K as getPackages, F as getPackagesToPublishInIndependentMode, E as getPackagesToPublishInSelectiveMode, a7 as getPreid, I as getRootPackage, z as github, B as gitlab, M as hasLernaJson, Y as isBumpedPackage, a8 as isChangedPreid, a6 as isGraduating, U as isInCI, a3 as isPrerelease, a5 as isPrereleaseReleaseType, a4 as isStableReleaseType, l as loadRelizyConfig, q as parseGitRemoteUrl, a as providerRelease, p as providerReleaseSafetyCheck, d as publish, G as publishPackage, u as pushCommitAndTags, H as readPackageJson, J as readPackages, r as release, S as resolveTags, t as topologicalSort, a1 as updateLernaVersion, w as writeChangelogToFile, $ as writeVersion } from './shared/relizy.
|
|
1
|
+
export { b as bump, c as changelog, m as checkGitStatusIfDirty, aa as confirmBump, s as createCommitAndTags, A as createGitlabRelease, f as defineConfig, o as detectGitProvider, C as detectPackageManager, D as determinePublishTag, _ as determineReleaseType, Z as determineSemverChange, X as executeBuildCmd, W as executeFormatCmd, T as executeHook, j as expandPackagesToBumpWithDependents, a2 as extractVersionFromPackageTag, n as fetchGitTags, g as generateChangelog, ab as getBumpedIndependentPackages, a9 as getBumpedPackageIndependently, V as getCIName, x as getCurrentGitBranch, y as getCurrentGitRef, e as getDefaultConfig, i as getDependentsOf, v as getFirstCommit, k as getGitStatus, N as getIndependentTag, R as getLastPackageTag, Q as getLastRepoTag, O as getLastStableTag, P as getLastTag, L as getPackageCommits, h as getPackageDependencies, a0 as getPackageNewVersion, K as getPackages, F as getPackagesToPublishInIndependentMode, E as getPackagesToPublishInSelectiveMode, a7 as getPreid, I as getRootPackage, z as github, B as gitlab, M as hasLernaJson, Y as isBumpedPackage, a8 as isChangedPreid, a6 as isGraduating, U as isInCI, a3 as isPrerelease, a5 as isPrereleaseReleaseType, a4 as isStableReleaseType, l as loadRelizyConfig, q as parseGitRemoteUrl, a as providerRelease, p as providerReleaseSafetyCheck, d as publish, G as publishPackage, u as pushCommitAndTags, H as readPackageJson, J as readPackages, r as release, S as resolveTags, t as topologicalSort, a1 as updateLernaVersion, w as writeChangelogToFile, $ as writeVersion } from './shared/relizy.DXsVzrS_.mjs';
|
|
2
2
|
import '@maz-ui/node';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'node:child_process';
|
|
@@ -256,7 +256,7 @@ async function createCommitAndTags({
|
|
|
256
256
|
}
|
|
257
257
|
const rootPackage = readPackageJson(internalConfig.cwd);
|
|
258
258
|
newVersion = newVersion || rootPackage.version;
|
|
259
|
-
const versionForMessage = internalConfig.monorepo?.versionMode === "independent" ? bumpedPackages?.map((pkg) => getIndependentTag(pkg)).join(", ") || "unknown" : newVersion || "unknown";
|
|
259
|
+
const versionForMessage = internalConfig.monorepo?.versionMode === "independent" ? bumpedPackages?.map((pkg) => getIndependentTag({ name: pkg.name, version: pkg.newVersion || pkg.version })).join(", ") || "unknown" : newVersion || "unknown";
|
|
260
260
|
const commitMessage = internalConfig.templates.commitMessage?.replaceAll("{{newVersion}}", versionForMessage) || `chore(release): bump version to ${versionForMessage}`;
|
|
261
261
|
const noVerifyFlag = noVerify ? "--no-verify " : "";
|
|
262
262
|
logger.debug(`No verify: ${noVerify}`);
|
|
@@ -1259,7 +1259,7 @@ async function gitlab(options = {}) {
|
|
|
1259
1259
|
from,
|
|
1260
1260
|
to
|
|
1261
1261
|
});
|
|
1262
|
-
logger.debug(`Root package: ${getIndependentTag(rootPackage)}`);
|
|
1262
|
+
logger.debug(`Root package: ${getIndependentTag({ name: rootPackage.name, version: rootPackage.newVersion || rootPackage.version })}`);
|
|
1263
1263
|
return await gitlabUnified({
|
|
1264
1264
|
config,
|
|
1265
1265
|
dryRun,
|
|
@@ -1585,21 +1585,21 @@ function displaySelectiveModePackages({
|
|
|
1585
1585
|
if (packagesWithCommits.length > 0) {
|
|
1586
1586
|
logger.log(`${packagesWithCommits.length} package(s) with commits:`);
|
|
1587
1587
|
packagesWithCommits.forEach((pkg) => {
|
|
1588
|
-
logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion}`);
|
|
1588
|
+
logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}`);
|
|
1589
1589
|
});
|
|
1590
1590
|
logger.log("");
|
|
1591
1591
|
}
|
|
1592
1592
|
if (packagesAsDependents.length > 0) {
|
|
1593
1593
|
logger.log(`${packagesAsDependents.length} dependent package(s):`);
|
|
1594
1594
|
packagesAsDependents.forEach((pkg) => {
|
|
1595
|
-
logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion}`);
|
|
1595
|
+
logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} ${force ? "(force)" : ""}`);
|
|
1596
1596
|
});
|
|
1597
1597
|
logger.log("");
|
|
1598
1598
|
}
|
|
1599
1599
|
if (packagesAsGraduation.length > 0) {
|
|
1600
1600
|
logger.log(`${packagesAsGraduation.length} graduation package(s):`);
|
|
1601
1601
|
packagesAsGraduation.forEach((pkg) => {
|
|
1602
|
-
logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion}`);
|
|
1602
|
+
logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${newVersion} ${force ? "(force)" : ""}`);
|
|
1603
1603
|
});
|
|
1604
1604
|
logger.log("");
|
|
1605
1605
|
}
|
|
@@ -1622,21 +1622,21 @@ function displayIndependentModePackages({
|
|
|
1622
1622
|
if (packagesWithCommits.length > 0) {
|
|
1623
1623
|
logger.log(`${packagesWithCommits.length} package(s) with commits:`);
|
|
1624
1624
|
packagesWithCommits.forEach((pkg) => {
|
|
1625
|
-
pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion}`);
|
|
1625
|
+
pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} (${pkg.commits.length} commits) ${force ? "(force)" : ""}`);
|
|
1626
1626
|
});
|
|
1627
1627
|
logger.log("");
|
|
1628
1628
|
}
|
|
1629
1629
|
if (packagesAsDependents.length > 0) {
|
|
1630
1630
|
logger.log(`${packagesAsDependents.length} dependent package(s):`);
|
|
1631
1631
|
packagesAsDependents.forEach((pkg) => {
|
|
1632
|
-
pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion}`);
|
|
1632
|
+
pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} ${force ? "(force)" : ""}`);
|
|
1633
1633
|
});
|
|
1634
1634
|
logger.log("");
|
|
1635
1635
|
}
|
|
1636
1636
|
if (packagesAsGraduation.length > 0) {
|
|
1637
1637
|
logger.log(`${packagesAsGraduation.length} graduation package(s):`);
|
|
1638
1638
|
packagesAsGraduation.forEach((pkg) => {
|
|
1639
|
-
pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion}`);
|
|
1639
|
+
pkg.newVersion && logger.log(` \u2022 ${pkg.name}: ${pkg.version} \u2192 ${pkg.newVersion} ${force ? "(force)" : ""}`);
|
|
1640
1640
|
});
|
|
1641
1641
|
logger.log("");
|
|
1642
1642
|
}
|
|
@@ -2085,7 +2085,7 @@ async function publishPackage({
|
|
|
2085
2085
|
dryRun
|
|
2086
2086
|
}) {
|
|
2087
2087
|
const tag = determinePublishTag(pkg.version, config.publish.tag);
|
|
2088
|
-
const packageNameAndVersion = getIndependentTag(pkg);
|
|
2088
|
+
const packageNameAndVersion = getIndependentTag({ name: pkg.name, version: pkg.newVersion || pkg.version });
|
|
2089
2089
|
const baseCommand = packageManager === "yarn" && isYarnBerry() ? "yarn npm" : packageManager;
|
|
2090
2090
|
logger.debug(`Building publish command for ${pkg.name}`);
|
|
2091
2091
|
let dynamicOtp;
|
|
@@ -2200,10 +2200,11 @@ function readPackages({
|
|
|
2200
2200
|
}) {
|
|
2201
2201
|
const packages = [];
|
|
2202
2202
|
const foundPaths = /* @__PURE__ */ new Set();
|
|
2203
|
+
const patternsSet = new Set(patterns);
|
|
2203
2204
|
if (!patterns)
|
|
2204
|
-
|
|
2205
|
-
logger.debug(`
|
|
2206
|
-
for (const pattern of
|
|
2205
|
+
patternsSet.add(".");
|
|
2206
|
+
logger.debug(`Read package.json files from patterns: ${patternsSet.values()}`);
|
|
2207
|
+
for (const pattern of patternsSet) {
|
|
2207
2208
|
try {
|
|
2208
2209
|
const matches = fastGlob.sync(pattern, {
|
|
2209
2210
|
cwd,
|
|
@@ -2274,10 +2275,10 @@ async function getPackages({
|
|
|
2274
2275
|
});
|
|
2275
2276
|
const packages = /* @__PURE__ */ new Map();
|
|
2276
2277
|
const foundPaths = /* @__PURE__ */ new Set();
|
|
2277
|
-
if (!patterns)
|
|
2278
|
-
patterns = ["."];
|
|
2279
|
-
logger.debug(`Getting packages from patterns: ${patterns.join(", ")}`);
|
|
2280
2278
|
const patternsSet = new Set(patterns);
|
|
2279
|
+
if (!patterns)
|
|
2280
|
+
patternsSet.add(".");
|
|
2281
|
+
logger.debug(`Getting packages from patterns: ${patternsSet.values()}`);
|
|
2281
2282
|
for (const pattern of patternsSet) {
|
|
2282
2283
|
const matches = fastGlob.sync(pattern, {
|
|
2283
2284
|
cwd: config.cwd,
|
|
@@ -3061,7 +3062,7 @@ async function publish(options = {}) {
|
|
|
3061
3062
|
});
|
|
3062
3063
|
for (const pkg of sortedPackages) {
|
|
3063
3064
|
if (publishedPackages.some((p) => p.name === pkg.name)) {
|
|
3064
|
-
logger.debug(`Publishing ${getIndependentTag(pkg)}...`);
|
|
3065
|
+
logger.debug(`Publishing ${getIndependentTag({ name: pkg.name, version: pkg.newVersion || pkg.version })}...`);
|
|
3065
3066
|
await publishPackage({
|
|
3066
3067
|
pkg,
|
|
3067
3068
|
config,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relizy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.5-beta.
|
|
4
|
+
"version": "0.2.5-beta.9",
|
|
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",
|