relizy 0.2.6 → 0.2.7
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 +11 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{relizy.Xd9rFefa.mjs → relizy.6FWq4lmP.mjs} +14 -13
- package/package.json +31 -32
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 { W as isInCI, X as getCIName, b as bump, c as changelog, e as publish, a as providerRelease, r as release } from './shared/relizy.
|
|
8
|
+
import { W as isInCI, X as getCIName, b as bump, c as changelog, e as publish, a as providerRelease, r as release } from './shared/relizy.6FWq4lmP.mjs';
|
|
9
9
|
import 'changelogen';
|
|
10
10
|
import 'fast-glob';
|
|
11
11
|
import '@inquirer/prompts';
|
|
@@ -79,7 +79,8 @@ program.command("bump").description("Bump package versions").option("--major", "
|
|
|
79
79
|
suffix: options.suffix,
|
|
80
80
|
configName: program.opts().config
|
|
81
81
|
});
|
|
82
|
-
} catch {
|
|
82
|
+
} catch (error) {
|
|
83
|
+
logger.error("Failed to bump packages -", error);
|
|
83
84
|
process.exit(1);
|
|
84
85
|
}
|
|
85
86
|
});
|
|
@@ -94,7 +95,8 @@ program.command("changelog").description("Generate changelogs for all packages")
|
|
|
94
95
|
logLevel: program.opts().logLevel,
|
|
95
96
|
configName: program.opts().config
|
|
96
97
|
});
|
|
97
|
-
} catch {
|
|
98
|
+
} catch (error) {
|
|
99
|
+
logger.error("Failed to generate changelog -", error);
|
|
98
100
|
process.exit(1);
|
|
99
101
|
}
|
|
100
102
|
});
|
|
@@ -111,7 +113,8 @@ program.command("publish").description("Publish packages to registry").option("-
|
|
|
111
113
|
logLevel: program.opts().logLevel,
|
|
112
114
|
configName: program.opts().config
|
|
113
115
|
});
|
|
114
|
-
} catch {
|
|
116
|
+
} catch (error) {
|
|
117
|
+
logger.error("Failed to publish packages -", error);
|
|
115
118
|
process.exit(1);
|
|
116
119
|
}
|
|
117
120
|
});
|
|
@@ -127,7 +130,8 @@ program.command("provider-release").description("Publish release to git provider
|
|
|
127
130
|
configName: program.opts().config,
|
|
128
131
|
safetyCheck: hasCliFlag("--no-safety-check") ? false : void 0
|
|
129
132
|
});
|
|
130
|
-
} catch {
|
|
133
|
+
} catch (error) {
|
|
134
|
+
logger.error("Failed to publish release -", error);
|
|
131
135
|
process.exit(1);
|
|
132
136
|
}
|
|
133
137
|
});
|
|
@@ -163,7 +167,8 @@ program.command("release").description("Complete release workflow (bump + change
|
|
|
163
167
|
configName: program.opts().config,
|
|
164
168
|
safetyCheck: hasCliFlag("--no-safety-check") ? false : void 0
|
|
165
169
|
});
|
|
166
|
-
} catch {
|
|
170
|
+
} catch (error) {
|
|
171
|
+
logger.error("Failed to release -", error);
|
|
167
172
|
process.exit(1);
|
|
168
173
|
}
|
|
169
174
|
});
|
package/dist/index.d.mts
CHANGED
|
@@ -57,7 +57,7 @@ declare function getDefaultConfig(): {
|
|
|
57
57
|
declare function loadRelizyConfig(options?: {
|
|
58
58
|
baseConfig?: ResolvedRelizyConfig;
|
|
59
59
|
overrides?: DeepPartial<RelizyConfig>;
|
|
60
|
-
|
|
60
|
+
configFile?: string;
|
|
61
61
|
}): Promise<ResolvedRelizyConfig>;
|
|
62
62
|
type ResolvedConfig = RelizyConfig & ReturnType<typeof getDefaultConfig>;
|
|
63
63
|
type ResolvedRelizyConfig = ResolvedConfig & {
|
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare function getDefaultConfig(): {
|
|
|
57
57
|
declare function loadRelizyConfig(options?: {
|
|
58
58
|
baseConfig?: ResolvedRelizyConfig;
|
|
59
59
|
overrides?: DeepPartial<RelizyConfig>;
|
|
60
|
-
|
|
60
|
+
configFile?: string;
|
|
61
61
|
}): Promise<ResolvedRelizyConfig>;
|
|
62
62
|
type ResolvedConfig = RelizyConfig & ReturnType<typeof getDefaultConfig>;
|
|
63
63
|
type ResolvedRelizyConfig = ResolvedConfig & {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as bump, c as changelog, n as checkGitStatusIfDirty, ae as confirmBump, u as createCommitAndTags, B as createGitlabRelease, h as defineConfig, q as detectGitProvider, D as detectPackageManager, E as determinePublishTag, a2 as determineReleaseType, a1 as determineSemverChange, Z as executeBuildCmd, Y as executeFormatCmd, V as executeHook, k as expandPackagesToBumpWithDependents, a6 as extractVersionFromPackageTag, o as fetchGitTags, g as generateChangelog, H as getAuthCommand, af as getBumpedIndependentPackages, ad as getBumpedPackageIndependently, X as getCIName, y as getCurrentGitBranch, z as getCurrentGitRef, f as getDefaultConfig, j as getDependentsOf, x as getFirstCommit, m as getGitStatus, P as getIndependentTag, T as getLastPackageTag, S as getLastRepoTag, Q as getLastStableTag, R as getLastTag, N as getPackageCommits, i as getPackageDependencies, a4 as getPackageNewVersion, M as getPackages, $ as getPackagesOrBumpedPackages, G as getPackagesToPublishInIndependentMode, F as getPackagesToPublishInSelectiveMode, ab as getPreid, K as getRootPackage, A as github, C as gitlab, O as hasLernaJson, _ as isBumpedPackage, ac as isChangedPreid, aa as isGraduating, a0 as isGraduatingToStableBetweenVersion, W as isInCI, a7 as isPrerelease, a9 as isPrereleaseReleaseType, a8 as isStableReleaseType, l as loadRelizyConfig, s as parseGitRemoteUrl, a as providerRelease, p as providerReleaseSafetyCheck, e as publish, I as publishPackage, d as publishSafetyCheck, v as pushCommitAndTags, J as readPackageJson, L as readPackages, r as release, U as resolveTags, t as topologicalSort, a5 as updateLernaVersion, w as writeChangelogToFile, a3 as writeVersion } from './shared/relizy.
|
|
1
|
+
export { b as bump, c as changelog, n as checkGitStatusIfDirty, ae as confirmBump, u as createCommitAndTags, B as createGitlabRelease, h as defineConfig, q as detectGitProvider, D as detectPackageManager, E as determinePublishTag, a2 as determineReleaseType, a1 as determineSemverChange, Z as executeBuildCmd, Y as executeFormatCmd, V as executeHook, k as expandPackagesToBumpWithDependents, a6 as extractVersionFromPackageTag, o as fetchGitTags, g as generateChangelog, H as getAuthCommand, af as getBumpedIndependentPackages, ad as getBumpedPackageIndependently, X as getCIName, y as getCurrentGitBranch, z as getCurrentGitRef, f as getDefaultConfig, j as getDependentsOf, x as getFirstCommit, m as getGitStatus, P as getIndependentTag, T as getLastPackageTag, S as getLastRepoTag, Q as getLastStableTag, R as getLastTag, N as getPackageCommits, i as getPackageDependencies, a4 as getPackageNewVersion, M as getPackages, $ as getPackagesOrBumpedPackages, G as getPackagesToPublishInIndependentMode, F as getPackagesToPublishInSelectiveMode, ab as getPreid, K as getRootPackage, A as github, C as gitlab, O as hasLernaJson, _ as isBumpedPackage, ac as isChangedPreid, aa as isGraduating, a0 as isGraduatingToStableBetweenVersion, W as isInCI, a7 as isPrerelease, a9 as isPrereleaseReleaseType, a8 as isStableReleaseType, l as loadRelizyConfig, s as parseGitRemoteUrl, a as providerRelease, p as providerReleaseSafetyCheck, e as publish, I as publishPackage, d as publishSafetyCheck, v as pushCommitAndTags, J as readPackageJson, L as readPackages, r as release, U as resolveTags, t as topologicalSort, a5 as updateLernaVersion, w as writeChangelogToFile, a3 as writeVersion } from './shared/relizy.6FWq4lmP.mjs';
|
|
2
2
|
import '@maz-ui/node';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:path';
|
|
@@ -1177,21 +1177,22 @@ async function resolveConfig(config, cwd) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
async function loadRelizyConfig(options) {
|
|
1179
1179
|
const cwd = options?.overrides?.cwd ?? process$1.cwd();
|
|
1180
|
-
const configName = options?.configName ?? "relizy";
|
|
1181
1180
|
await setupDotenv({ cwd });
|
|
1181
|
+
const configFile = options?.configFile ?? "relizy";
|
|
1182
1182
|
const defaultConfig = getDefaultConfig();
|
|
1183
1183
|
const overridesConfig = defu(options?.overrides, options?.baseConfig);
|
|
1184
1184
|
const results = await loadConfig({
|
|
1185
|
+
dotenv: true,
|
|
1185
1186
|
cwd,
|
|
1186
|
-
name:
|
|
1187
|
+
name: configFile,
|
|
1187
1188
|
packageJson: true,
|
|
1188
1189
|
defaults: defaultConfig,
|
|
1189
1190
|
overrides: overridesConfig
|
|
1190
1191
|
});
|
|
1191
|
-
if (
|
|
1192
|
-
logger.debug(`No config file found with name "${
|
|
1193
|
-
if (options?.
|
|
1194
|
-
logger.error(`No config file found with name "${
|
|
1192
|
+
if (typeof results._configFile !== "string") {
|
|
1193
|
+
logger.debug(`No config file found with name "${configFile}"`);
|
|
1194
|
+
if (options?.configFile) {
|
|
1195
|
+
logger.error(`No config file found with name "${configFile}"`);
|
|
1195
1196
|
process$1.exit(1);
|
|
1196
1197
|
}
|
|
1197
1198
|
}
|
|
@@ -1342,7 +1343,7 @@ async function github(options) {
|
|
|
1342
1343
|
const dryRun = options.dryRun ?? false;
|
|
1343
1344
|
logger.debug(`Dry run: ${dryRun}`);
|
|
1344
1345
|
const config = await loadRelizyConfig({
|
|
1345
|
-
|
|
1346
|
+
configFile: options.configName,
|
|
1346
1347
|
baseConfig: options.config,
|
|
1347
1348
|
overrides: {
|
|
1348
1349
|
from: options.from,
|
|
@@ -1586,7 +1587,7 @@ async function gitlab(options = {}) {
|
|
|
1586
1587
|
const dryRun = options.dryRun ?? false;
|
|
1587
1588
|
logger.debug(`Dry run: ${dryRun}`);
|
|
1588
1589
|
const config = await loadRelizyConfig({
|
|
1589
|
-
|
|
1590
|
+
configFile: options.configName,
|
|
1590
1591
|
baseConfig: options.config,
|
|
1591
1592
|
overrides: {
|
|
1592
1593
|
from: options.from,
|
|
@@ -2786,7 +2787,7 @@ async function bumpIndependentMode({
|
|
|
2786
2787
|
}
|
|
2787
2788
|
async function bump(options = {}) {
|
|
2788
2789
|
const config = await loadRelizyConfig({
|
|
2789
|
-
|
|
2790
|
+
configFile: options.configName,
|
|
2790
2791
|
baseConfig: options.config,
|
|
2791
2792
|
overrides: {
|
|
2792
2793
|
bump: {
|
|
@@ -2944,7 +2945,7 @@ async function generateSimpleRootChangelog({
|
|
|
2944
2945
|
}
|
|
2945
2946
|
async function changelog(options = {}) {
|
|
2946
2947
|
const config = await loadRelizyConfig({
|
|
2947
|
-
|
|
2948
|
+
configFile: options.configName,
|
|
2948
2949
|
baseConfig: options.config,
|
|
2949
2950
|
overrides: {
|
|
2950
2951
|
from: options.from,
|
|
@@ -3059,7 +3060,7 @@ function providerReleaseSafetyCheck({ config, provider }) {
|
|
|
3059
3060
|
}
|
|
3060
3061
|
async function providerRelease(options = {}) {
|
|
3061
3062
|
const config = await loadRelizyConfig({
|
|
3062
|
-
|
|
3063
|
+
configFile: options.configName,
|
|
3063
3064
|
baseConfig: options.config,
|
|
3064
3065
|
overrides: {
|
|
3065
3066
|
from: options.from,
|
|
@@ -3156,7 +3157,7 @@ async function publishSafetyCheck({ config }) {
|
|
|
3156
3157
|
}
|
|
3157
3158
|
async function publish(options = {}) {
|
|
3158
3159
|
const config = await loadRelizyConfig({
|
|
3159
|
-
|
|
3160
|
+
configFile: options.configName,
|
|
3160
3161
|
baseConfig: options.config,
|
|
3161
3162
|
overrides: {
|
|
3162
3163
|
publish: {
|
|
@@ -3252,7 +3253,7 @@ async function publish(options = {}) {
|
|
|
3252
3253
|
|
|
3253
3254
|
function getReleaseConfig(options = {}) {
|
|
3254
3255
|
return loadRelizyConfig({
|
|
3255
|
-
|
|
3256
|
+
configFile: options.configName,
|
|
3256
3257
|
overrides: {
|
|
3257
3258
|
logLevel: options.logLevel,
|
|
3258
3259
|
from: options.from,
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relizy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"packageManager": "pnpm@10.22.0",
|
|
4
|
+
"version": "0.2.7",
|
|
6
5
|
"description": "Changelogen adapter for monorepo management with unified and independent versioning",
|
|
7
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
8
7
|
"license": "MIT",
|
|
@@ -55,26 +54,11 @@
|
|
|
55
54
|
"engines": {
|
|
56
55
|
"node": ">=20.0.0"
|
|
57
56
|
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"preinstall": "npx only-allow pnpm",
|
|
60
|
-
"postinstall": "npx husky",
|
|
61
|
-
"build": "unbuild",
|
|
62
|
-
"dev": "unbuild --stub",
|
|
63
|
-
"relizy": "node bin/relizy.mjs",
|
|
64
|
-
"rly": "node bin/relizy.mjs",
|
|
65
|
-
"typecheck": "tsc --noEmit --skipLibCheck",
|
|
66
|
-
"lint": "cross-env NODE_ENV=production eslint .",
|
|
67
|
-
"lint:fix": "pnpm lint --fix",
|
|
68
|
-
"test:unit": "vitest run",
|
|
69
|
-
"test:unit:watch": "vitest watch",
|
|
70
|
-
"test:unit:coverage": "vitest run --coverage",
|
|
71
|
-
"pre-commit": "lint-staged"
|
|
72
|
-
},
|
|
73
57
|
"dependencies": {
|
|
74
|
-
"@inquirer/prompts": "^8.0
|
|
75
|
-
"@maz-ui/node": "4.3.2
|
|
58
|
+
"@inquirer/prompts": "^8.1.0",
|
|
59
|
+
"@maz-ui/node": "4.3.2",
|
|
76
60
|
"@maz-ui/utils": "^4.3.0",
|
|
77
|
-
"c12": "^3.3.
|
|
61
|
+
"c12": "^3.3.3",
|
|
78
62
|
"changelogen": "^0.6.2",
|
|
79
63
|
"commander": "^14.0.2",
|
|
80
64
|
"convert-gitmoji": "^0.1.5",
|
|
@@ -84,27 +68,42 @@
|
|
|
84
68
|
"semver": "^7.7.2"
|
|
85
69
|
},
|
|
86
70
|
"devDependencies": {
|
|
87
|
-
"@commitlint/cli": "^20.
|
|
88
|
-
"@commitlint/config-conventional": "^20.
|
|
89
|
-
"@commitlint/cz-commitlint": "^20.
|
|
90
|
-
"@commitlint/types": "^20.
|
|
91
|
-
"@maz-ui/eslint-config": "4.3.2
|
|
92
|
-
"@types/node": "^25.0.
|
|
71
|
+
"@commitlint/cli": "^20.2.0",
|
|
72
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
73
|
+
"@commitlint/cz-commitlint": "^20.2.0",
|
|
74
|
+
"@commitlint/types": "^20.2.0",
|
|
75
|
+
"@maz-ui/eslint-config": "4.3.2",
|
|
76
|
+
"@types/node": "^25.0.3",
|
|
93
77
|
"@types/semver": "^7.7.1",
|
|
94
|
-
"@vitest/coverage-v8": "^4.0.
|
|
78
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
95
79
|
"cross-env": "^10.1.0",
|
|
96
|
-
"eslint": "^9.39.
|
|
80
|
+
"eslint": "^9.39.2",
|
|
97
81
|
"husky": "^9.1.7",
|
|
98
82
|
"jiti": "^2.6.1",
|
|
99
|
-
"lint-staged": "^16.2.
|
|
100
|
-
"memfs": "^4.51.
|
|
83
|
+
"lint-staged": "^16.2.7",
|
|
84
|
+
"memfs": "^4.51.1",
|
|
101
85
|
"typescript": "^5.9.3",
|
|
102
86
|
"unbuild": "^3.6.1",
|
|
103
|
-
"vitest": "^4.0.
|
|
87
|
+
"vitest": "^4.0.16"
|
|
104
88
|
},
|
|
105
89
|
"lint-staged": {
|
|
106
90
|
"*.{js,jsx,ts,tsx,mjs,mts,cjs,md,yml,json}": [
|
|
107
91
|
"eslint --fix"
|
|
108
92
|
]
|
|
93
|
+
},
|
|
94
|
+
"scripts": {
|
|
95
|
+
"preinstall": "npx only-allow pnpm",
|
|
96
|
+
"postinstall": "npx husky",
|
|
97
|
+
"build": "unbuild",
|
|
98
|
+
"dev": "unbuild --stub",
|
|
99
|
+
"relizy": "node bin/relizy.mjs",
|
|
100
|
+
"rly": "node bin/relizy.mjs",
|
|
101
|
+
"typecheck": "tsc --noEmit --skipLibCheck",
|
|
102
|
+
"lint": "cross-env NODE_ENV=production eslint .",
|
|
103
|
+
"lint:fix": "pnpm lint --fix",
|
|
104
|
+
"test:unit": "vitest run",
|
|
105
|
+
"test:unit:watch": "vitest watch",
|
|
106
|
+
"test:unit:coverage": "vitest run --coverage",
|
|
107
|
+
"pre-commit": "lint-staged"
|
|
109
108
|
}
|
|
110
|
-
}
|
|
109
|
+
}
|