relizy 0.2.5-beta.11 → 0.2.5-beta.13
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 +9 -7
- package/dist/index.d.mts +43 -8
- package/dist/index.d.ts +43 -8
- package/dist/index.mjs +6 -6
- package/dist/shared/{relizy.DLoE22sp.mjs → relizy.qmU37FU2.mjs} +1156 -1056
- package/package.json +18 -16
package/dist/cli.mjs
CHANGED
|
@@ -5,15 +5,15 @@ 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 {
|
|
9
|
-
import 'node:child_process';
|
|
10
|
-
import '@maz-ui/utils';
|
|
11
|
-
import 'c12';
|
|
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.qmU37FU2.mjs';
|
|
12
9
|
import 'changelogen';
|
|
13
|
-
import 'defu';
|
|
14
10
|
import 'fast-glob';
|
|
15
11
|
import '@inquirer/prompts';
|
|
12
|
+
import '@maz-ui/utils';
|
|
16
13
|
import 'semver';
|
|
14
|
+
import 'node:child_process';
|
|
15
|
+
import 'c12';
|
|
16
|
+
import 'defu';
|
|
17
17
|
import 'convert-gitmoji';
|
|
18
18
|
import 'node-fetch-native';
|
|
19
19
|
|
|
@@ -98,7 +98,7 @@ program.command("changelog").description("Generate changelogs for all packages")
|
|
|
98
98
|
process.exit(1);
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
-
program.command("publish").description("Publish packages to registry").option("--registry <url>", "Custom 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("--build-cmd <cmd>", 'Command to build packages before publish (e.g. "pnpm build")').action(async (options) => {
|
|
101
|
+
program.command("publish").description("Publish packages to registry").option("--registry <url>", "Custom 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("--build-cmd <cmd>", 'Command to build packages before publish (e.g. "pnpm build")').option("--publish-token <token>", 'NPM token (e.g. "123456") - only supported for pnpm and npm').action(async (options) => {
|
|
102
102
|
try {
|
|
103
103
|
await publish({
|
|
104
104
|
registry: options.registry,
|
|
@@ -106,6 +106,7 @@ program.command("publish").description("Publish packages to registry").option("-
|
|
|
106
106
|
access: options.access,
|
|
107
107
|
otp: options.otp,
|
|
108
108
|
buildCmd: options.buildCmd,
|
|
109
|
+
token: options.publishToken,
|
|
109
110
|
dryRun: program.opts().dryRun,
|
|
110
111
|
logLevel: program.opts().logLevel,
|
|
111
112
|
configName: program.opts().config
|
|
@@ -130,7 +131,7 @@ program.command("provider-release").description("Publish release to git provider
|
|
|
130
131
|
process.exit(1);
|
|
131
132
|
}
|
|
132
133
|
});
|
|
133
|
-
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("--yes", "Skip confirmation prompt about bumping packages").action(async (options) => {
|
|
134
|
+
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("--yes", "Skip confirmation prompt about bumping packages").option("--publish-token <token>", 'NPM token (e.g. "123456") - only supported for pnpm and npm').action(async (options) => {
|
|
134
135
|
try {
|
|
135
136
|
await release({
|
|
136
137
|
type: getReleaseType(options),
|
|
@@ -155,6 +156,7 @@ program.command("release").description("Complete release workflow (bump + change
|
|
|
155
156
|
buildCmd: options.buildCmd,
|
|
156
157
|
rootChangelog: hasCliFlag("--no-root-changelog") ? false : void 0,
|
|
157
158
|
token: options.token,
|
|
159
|
+
publishToken: options.publishToken,
|
|
158
160
|
logLevel: program.opts().logLevel,
|
|
159
161
|
force: options.force,
|
|
160
162
|
yes: options.yes,
|
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ declare function generateChangelog({ pkg, config, dryRun, newVersion, }: {
|
|
|
15
15
|
};
|
|
16
16
|
config: ResolvedRelizyConfig;
|
|
17
17
|
dryRun: boolean;
|
|
18
|
-
newVersion: string
|
|
18
|
+
newVersion: string;
|
|
19
19
|
}): Promise<string>;
|
|
20
20
|
/**
|
|
21
21
|
* Write changelog to file
|
|
@@ -43,6 +43,7 @@ declare function getDefaultConfig(): {
|
|
|
43
43
|
publish: {
|
|
44
44
|
private: boolean;
|
|
45
45
|
args: never[];
|
|
46
|
+
safetyCheck: boolean;
|
|
46
47
|
};
|
|
47
48
|
tokens: {
|
|
48
49
|
gitlab: string | undefined;
|
|
@@ -159,9 +160,14 @@ declare function createGitlabRelease({ config, release, dryRun, }: {
|
|
|
159
160
|
declare function gitlab(options?: Partial<ProviderReleaseOptions>): Promise<PostedRelease[]>;
|
|
160
161
|
|
|
161
162
|
declare function detectPackageManager(cwd?: string): PackageManager;
|
|
162
|
-
declare function determinePublishTag(version: string
|
|
163
|
+
declare function determinePublishTag(version: string, configTag?: string): string;
|
|
163
164
|
declare function getPackagesToPublishInSelectiveMode(sortedPackages: PackageBase[], rootVersion: string | undefined): PackageBase[];
|
|
164
165
|
declare function getPackagesToPublishInIndependentMode(sortedPackages: PackageBase[], config: ResolvedRelizyConfig): Promise<PackageBase[]>;
|
|
166
|
+
declare function getAuthCommand({ packageManager, config, otp, }: {
|
|
167
|
+
packageManager: PackageManager;
|
|
168
|
+
config: ResolvedRelizyConfig;
|
|
169
|
+
otp?: string;
|
|
170
|
+
}): string;
|
|
165
171
|
declare function publishPackage({ pkg, config, packageManager, dryRun, }: {
|
|
166
172
|
pkg: PackageBase;
|
|
167
173
|
config: ResolvedRelizyConfig;
|
|
@@ -231,7 +237,7 @@ interface ResolvedTags {
|
|
|
231
237
|
from: string;
|
|
232
238
|
to: string;
|
|
233
239
|
}
|
|
234
|
-
declare function resolveTags<S extends Step, NewVersion = S extends 'bump'
|
|
240
|
+
declare function resolveTags<S extends Step, NewVersion = S extends 'bump' ? undefined : string>({ config, step, pkg, newVersion, }: {
|
|
235
241
|
config: ResolvedRelizyConfig;
|
|
236
242
|
step: S;
|
|
237
243
|
pkg: ReadPackage;
|
|
@@ -267,7 +273,14 @@ declare function executeBuildCmd({ config, dryRun, }: {
|
|
|
267
273
|
declare function isBumpedPackage(pkg: PackageBase): pkg is PackageBase & {
|
|
268
274
|
oldVersion: string;
|
|
269
275
|
};
|
|
276
|
+
declare function getPackagesOrBumpedPackages({ config, bumpResult, suffix, force, }: {
|
|
277
|
+
config: ResolvedRelizyConfig;
|
|
278
|
+
bumpResult: BumpResultTruthy | undefined;
|
|
279
|
+
suffix: string | undefined;
|
|
280
|
+
force: boolean;
|
|
281
|
+
}): Promise<PackageBase[]>;
|
|
270
282
|
|
|
283
|
+
declare function isGraduatingToStableBetweenVersion(version: string, newVersion: string): boolean;
|
|
271
284
|
declare function determineSemverChange(commits: GitCommit[], types: RelizyConfig['types']): 'major' | 'minor' | 'patch' | undefined;
|
|
272
285
|
declare function determineReleaseType({ currentVersion, commits, releaseType, preid, types, force, }: {
|
|
273
286
|
currentVersion: string;
|
|
@@ -277,8 +290,9 @@ declare function determineReleaseType({ currentVersion, commits, releaseType, pr
|
|
|
277
290
|
types: ResolvedRelizyConfig['types'];
|
|
278
291
|
force: boolean;
|
|
279
292
|
}): ReleaseType | undefined;
|
|
280
|
-
declare function writeVersion(pkgPath: string,
|
|
281
|
-
declare function getPackageNewVersion({ currentVersion, releaseType, preid, suffix, }: {
|
|
293
|
+
declare function writeVersion(pkgPath: string, newVersion: string, dryRun?: boolean): void;
|
|
294
|
+
declare function getPackageNewVersion({ name, currentVersion, releaseType, preid, suffix, }: {
|
|
295
|
+
name: string;
|
|
282
296
|
currentVersion: string;
|
|
283
297
|
releaseType: ReleaseType;
|
|
284
298
|
preid: string | undefined;
|
|
@@ -623,6 +637,11 @@ interface ProviderReleaseOptions {
|
|
|
623
637
|
suffix?: string;
|
|
624
638
|
}
|
|
625
639
|
type PublishConfig = ChangelogConfig$1['publish'] & {
|
|
640
|
+
/**
|
|
641
|
+
* Package manager (e.g. `pnpm` or `npm`)
|
|
642
|
+
* @values `pnpm`, `npm`, `yarn`, `bun`
|
|
643
|
+
*/
|
|
644
|
+
packageManager?: PackageManager;
|
|
626
645
|
/**
|
|
627
646
|
* NPM registry URL (e.g. `https://registry.npmjs.org/`)
|
|
628
647
|
*/
|
|
@@ -647,6 +666,15 @@ type PublishConfig = ChangelogConfig$1['publish'] & {
|
|
|
647
666
|
* Command to build your packages before publishing (e.g. `pnpm build`)
|
|
648
667
|
*/
|
|
649
668
|
buildCmd?: string;
|
|
669
|
+
/**
|
|
670
|
+
* NPM token (e.g. `123456`) - only supported for pnpm and npm
|
|
671
|
+
*/
|
|
672
|
+
token?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Skip safety check
|
|
675
|
+
* @default false
|
|
676
|
+
*/
|
|
677
|
+
safetyCheck?: boolean;
|
|
650
678
|
};
|
|
651
679
|
interface PublishOptions extends PublishConfig {
|
|
652
680
|
/**
|
|
@@ -659,9 +687,9 @@ interface PublishOptions extends PublishConfig {
|
|
|
659
687
|
*/
|
|
660
688
|
config?: ResolvedRelizyConfig;
|
|
661
689
|
/**
|
|
662
|
-
*
|
|
690
|
+
* Bump result
|
|
663
691
|
*/
|
|
664
|
-
|
|
692
|
+
bumpResult?: BumpResultTruthy;
|
|
665
693
|
/**
|
|
666
694
|
* Set log level
|
|
667
695
|
*/
|
|
@@ -764,6 +792,10 @@ interface ReleaseOptions extends ReleaseConfig, BumpConfig, ChangelogConfig, Pub
|
|
|
764
792
|
* @default true
|
|
765
793
|
*/
|
|
766
794
|
safetyCheck?: boolean;
|
|
795
|
+
/**
|
|
796
|
+
* NPM token (e.g. "123456")
|
|
797
|
+
*/
|
|
798
|
+
publishToken?: string;
|
|
767
799
|
}
|
|
768
800
|
interface TemplatesConfig {
|
|
769
801
|
/**
|
|
@@ -895,11 +927,14 @@ declare function providerRelease(options?: Partial<ProviderReleaseOptions>): Pro
|
|
|
895
927
|
postedReleases: PostedRelease[];
|
|
896
928
|
}>;
|
|
897
929
|
|
|
930
|
+
declare function publishSafetyCheck({ config }: {
|
|
931
|
+
config: ResolvedRelizyConfig;
|
|
932
|
+
}): Promise<void>;
|
|
898
933
|
declare function publish(options?: Partial<PublishOptions>): Promise<{
|
|
899
934
|
publishedPackages: PackageBase[];
|
|
900
935
|
} | undefined>;
|
|
901
936
|
|
|
902
937
|
declare function release(options?: Partial<ReleaseOptions>): Promise<void>;
|
|
903
938
|
|
|
904
|
-
export { bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractVersionFromPackageTag, fetchGitTags, generateChangelog, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getRootPackage, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, loadRelizyConfig, parseGitRemoteUrl, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
|
|
939
|
+
export { bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractVersionFromPackageTag, fetchGitTags, generateChangelog, getAuthCommand, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesOrBumpedPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getRootPackage, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isGraduatingToStableBetweenVersion, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, loadRelizyConfig, parseGitRemoteUrl, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, publishSafetyCheck, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
|
|
905
940
|
export type { BumpConfig, BumpOptions, BumpResult, BumpResultFalsy, BumpResultTruthy, ChangelogConfig, ChangelogOptions, ConfigType, GitProvider, GitlabRelease, GitlabReleaseResponse, HookConfig, HookStep, HookType, MonorepoConfig, PackageBase, PackageManager, PostedRelease, ProviderReleaseOptions, PublishConfig, PublishOptions, PublishResponse, ReadPackage, ReleaseConfig, ReleaseOptions, RelizyConfig, RepoConfig, ResolvedConfig, ResolvedRelizyConfig, ResolvedTags, RootPackage, Step, TemplatesConfig, VersionMode };
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare function generateChangelog({ pkg, config, dryRun, newVersion, }: {
|
|
|
15
15
|
};
|
|
16
16
|
config: ResolvedRelizyConfig;
|
|
17
17
|
dryRun: boolean;
|
|
18
|
-
newVersion: string
|
|
18
|
+
newVersion: string;
|
|
19
19
|
}): Promise<string>;
|
|
20
20
|
/**
|
|
21
21
|
* Write changelog to file
|
|
@@ -43,6 +43,7 @@ declare function getDefaultConfig(): {
|
|
|
43
43
|
publish: {
|
|
44
44
|
private: boolean;
|
|
45
45
|
args: never[];
|
|
46
|
+
safetyCheck: boolean;
|
|
46
47
|
};
|
|
47
48
|
tokens: {
|
|
48
49
|
gitlab: string | undefined;
|
|
@@ -159,9 +160,14 @@ declare function createGitlabRelease({ config, release, dryRun, }: {
|
|
|
159
160
|
declare function gitlab(options?: Partial<ProviderReleaseOptions>): Promise<PostedRelease[]>;
|
|
160
161
|
|
|
161
162
|
declare function detectPackageManager(cwd?: string): PackageManager;
|
|
162
|
-
declare function determinePublishTag(version: string
|
|
163
|
+
declare function determinePublishTag(version: string, configTag?: string): string;
|
|
163
164
|
declare function getPackagesToPublishInSelectiveMode(sortedPackages: PackageBase[], rootVersion: string | undefined): PackageBase[];
|
|
164
165
|
declare function getPackagesToPublishInIndependentMode(sortedPackages: PackageBase[], config: ResolvedRelizyConfig): Promise<PackageBase[]>;
|
|
166
|
+
declare function getAuthCommand({ packageManager, config, otp, }: {
|
|
167
|
+
packageManager: PackageManager;
|
|
168
|
+
config: ResolvedRelizyConfig;
|
|
169
|
+
otp?: string;
|
|
170
|
+
}): string;
|
|
165
171
|
declare function publishPackage({ pkg, config, packageManager, dryRun, }: {
|
|
166
172
|
pkg: PackageBase;
|
|
167
173
|
config: ResolvedRelizyConfig;
|
|
@@ -231,7 +237,7 @@ interface ResolvedTags {
|
|
|
231
237
|
from: string;
|
|
232
238
|
to: string;
|
|
233
239
|
}
|
|
234
|
-
declare function resolveTags<S extends Step, NewVersion = S extends 'bump'
|
|
240
|
+
declare function resolveTags<S extends Step, NewVersion = S extends 'bump' ? undefined : string>({ config, step, pkg, newVersion, }: {
|
|
235
241
|
config: ResolvedRelizyConfig;
|
|
236
242
|
step: S;
|
|
237
243
|
pkg: ReadPackage;
|
|
@@ -267,7 +273,14 @@ declare function executeBuildCmd({ config, dryRun, }: {
|
|
|
267
273
|
declare function isBumpedPackage(pkg: PackageBase): pkg is PackageBase & {
|
|
268
274
|
oldVersion: string;
|
|
269
275
|
};
|
|
276
|
+
declare function getPackagesOrBumpedPackages({ config, bumpResult, suffix, force, }: {
|
|
277
|
+
config: ResolvedRelizyConfig;
|
|
278
|
+
bumpResult: BumpResultTruthy | undefined;
|
|
279
|
+
suffix: string | undefined;
|
|
280
|
+
force: boolean;
|
|
281
|
+
}): Promise<PackageBase[]>;
|
|
270
282
|
|
|
283
|
+
declare function isGraduatingToStableBetweenVersion(version: string, newVersion: string): boolean;
|
|
271
284
|
declare function determineSemverChange(commits: GitCommit[], types: RelizyConfig['types']): 'major' | 'minor' | 'patch' | undefined;
|
|
272
285
|
declare function determineReleaseType({ currentVersion, commits, releaseType, preid, types, force, }: {
|
|
273
286
|
currentVersion: string;
|
|
@@ -277,8 +290,9 @@ declare function determineReleaseType({ currentVersion, commits, releaseType, pr
|
|
|
277
290
|
types: ResolvedRelizyConfig['types'];
|
|
278
291
|
force: boolean;
|
|
279
292
|
}): ReleaseType | undefined;
|
|
280
|
-
declare function writeVersion(pkgPath: string,
|
|
281
|
-
declare function getPackageNewVersion({ currentVersion, releaseType, preid, suffix, }: {
|
|
293
|
+
declare function writeVersion(pkgPath: string, newVersion: string, dryRun?: boolean): void;
|
|
294
|
+
declare function getPackageNewVersion({ name, currentVersion, releaseType, preid, suffix, }: {
|
|
295
|
+
name: string;
|
|
282
296
|
currentVersion: string;
|
|
283
297
|
releaseType: ReleaseType;
|
|
284
298
|
preid: string | undefined;
|
|
@@ -623,6 +637,11 @@ interface ProviderReleaseOptions {
|
|
|
623
637
|
suffix?: string;
|
|
624
638
|
}
|
|
625
639
|
type PublishConfig = ChangelogConfig$1['publish'] & {
|
|
640
|
+
/**
|
|
641
|
+
* Package manager (e.g. `pnpm` or `npm`)
|
|
642
|
+
* @values `pnpm`, `npm`, `yarn`, `bun`
|
|
643
|
+
*/
|
|
644
|
+
packageManager?: PackageManager;
|
|
626
645
|
/**
|
|
627
646
|
* NPM registry URL (e.g. `https://registry.npmjs.org/`)
|
|
628
647
|
*/
|
|
@@ -647,6 +666,15 @@ type PublishConfig = ChangelogConfig$1['publish'] & {
|
|
|
647
666
|
* Command to build your packages before publishing (e.g. `pnpm build`)
|
|
648
667
|
*/
|
|
649
668
|
buildCmd?: string;
|
|
669
|
+
/**
|
|
670
|
+
* NPM token (e.g. `123456`) - only supported for pnpm and npm
|
|
671
|
+
*/
|
|
672
|
+
token?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Skip safety check
|
|
675
|
+
* @default false
|
|
676
|
+
*/
|
|
677
|
+
safetyCheck?: boolean;
|
|
650
678
|
};
|
|
651
679
|
interface PublishOptions extends PublishConfig {
|
|
652
680
|
/**
|
|
@@ -659,9 +687,9 @@ interface PublishOptions extends PublishConfig {
|
|
|
659
687
|
*/
|
|
660
688
|
config?: ResolvedRelizyConfig;
|
|
661
689
|
/**
|
|
662
|
-
*
|
|
690
|
+
* Bump result
|
|
663
691
|
*/
|
|
664
|
-
|
|
692
|
+
bumpResult?: BumpResultTruthy;
|
|
665
693
|
/**
|
|
666
694
|
* Set log level
|
|
667
695
|
*/
|
|
@@ -764,6 +792,10 @@ interface ReleaseOptions extends ReleaseConfig, BumpConfig, ChangelogConfig, Pub
|
|
|
764
792
|
* @default true
|
|
765
793
|
*/
|
|
766
794
|
safetyCheck?: boolean;
|
|
795
|
+
/**
|
|
796
|
+
* NPM token (e.g. "123456")
|
|
797
|
+
*/
|
|
798
|
+
publishToken?: string;
|
|
767
799
|
}
|
|
768
800
|
interface TemplatesConfig {
|
|
769
801
|
/**
|
|
@@ -895,11 +927,14 @@ declare function providerRelease(options?: Partial<ProviderReleaseOptions>): Pro
|
|
|
895
927
|
postedReleases: PostedRelease[];
|
|
896
928
|
}>;
|
|
897
929
|
|
|
930
|
+
declare function publishSafetyCheck({ config }: {
|
|
931
|
+
config: ResolvedRelizyConfig;
|
|
932
|
+
}): Promise<void>;
|
|
898
933
|
declare function publish(options?: Partial<PublishOptions>): Promise<{
|
|
899
934
|
publishedPackages: PackageBase[];
|
|
900
935
|
} | undefined>;
|
|
901
936
|
|
|
902
937
|
declare function release(options?: Partial<ReleaseOptions>): Promise<void>;
|
|
903
938
|
|
|
904
|
-
export { bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractVersionFromPackageTag, fetchGitTags, generateChangelog, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getRootPackage, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, loadRelizyConfig, parseGitRemoteUrl, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
|
|
939
|
+
export { bump, changelog, checkGitStatusIfDirty, confirmBump, createCommitAndTags, createGitlabRelease, defineConfig, detectGitProvider, detectPackageManager, determinePublishTag, determineReleaseType, determineSemverChange, executeBuildCmd, executeFormatCmd, executeHook, expandPackagesToBumpWithDependents, extractVersionFromPackageTag, fetchGitTags, generateChangelog, getAuthCommand, getBumpedIndependentPackages, getBumpedPackageIndependently, getCIName, getCurrentGitBranch, getCurrentGitRef, getDefaultConfig, getDependentsOf, getFirstCommit, getGitStatus, getIndependentTag, getLastPackageTag, getLastRepoTag, getLastStableTag, getLastTag, getPackageCommits, getPackageDependencies, getPackageNewVersion, getPackages, getPackagesOrBumpedPackages, getPackagesToPublishInIndependentMode, getPackagesToPublishInSelectiveMode, getPreid, getRootPackage, github, gitlab, hasLernaJson, isBumpedPackage, isChangedPreid, isGraduating, isGraduatingToStableBetweenVersion, isInCI, isPrerelease, isPrereleaseReleaseType, isStableReleaseType, loadRelizyConfig, parseGitRemoteUrl, providerRelease, providerReleaseSafetyCheck, publish, publishPackage, publishSafetyCheck, pushCommitAndTags, readPackageJson, readPackages, release, resolveTags, topologicalSort, updateLernaVersion, writeChangelogToFile, writeVersion };
|
|
905
940
|
export type { BumpConfig, BumpOptions, BumpResult, BumpResultFalsy, BumpResultTruthy, ChangelogConfig, ChangelogOptions, ConfigType, GitProvider, GitlabRelease, GitlabReleaseResponse, HookConfig, HookStep, HookType, MonorepoConfig, PackageBase, PackageManager, PostedRelease, ProviderReleaseOptions, PublishConfig, PublishOptions, PublishResponse, ReadPackage, ReleaseConfig, ReleaseOptions, RelizyConfig, RepoConfig, ResolvedConfig, ResolvedRelizyConfig, ResolvedTags, RootPackage, Step, TemplatesConfig, VersionMode };
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { b as bump, c as changelog,
|
|
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.qmU37FU2.mjs';
|
|
2
2
|
import '@maz-ui/node';
|
|
3
|
-
import 'node:process';
|
|
4
|
-
import 'node:child_process';
|
|
5
3
|
import 'node:fs';
|
|
6
4
|
import 'node:path';
|
|
7
|
-
import '@maz-ui/utils';
|
|
8
|
-
import 'c12';
|
|
9
5
|
import 'changelogen';
|
|
10
|
-
import 'defu';
|
|
11
6
|
import 'fast-glob';
|
|
12
7
|
import '@inquirer/prompts';
|
|
8
|
+
import '@maz-ui/utils';
|
|
13
9
|
import 'semver';
|
|
10
|
+
import 'node:child_process';
|
|
11
|
+
import 'node:process';
|
|
12
|
+
import 'c12';
|
|
13
|
+
import 'defu';
|
|
14
14
|
import 'convert-gitmoji';
|
|
15
15
|
import 'node-fetch-native';
|