astro-ghostcms/.pnpm-store/v3/files/f5/b239fbe8a300c12661f57a20dce...

110 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

2024-02-14 14:10:47 +00:00
declare const DEPENDENCY_TYPES: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];
export declare type VersionType = "major" | "minor" | "patch" | "none";
export declare type DependencyType = typeof DEPENDENCY_TYPES[number];
export declare type AccessType = "public" | "restricted";
export declare type Release = {
name: string;
type: VersionType;
};
export declare type ComprehensiveRelease = {
name: string;
type: VersionType;
oldVersion: string;
newVersion: string;
changesets: string[];
};
export declare type Changeset = {
summary: string;
releases: Array<Release>;
};
export declare type NewChangeset = Changeset & {
id: string;
};
export declare type ReleasePlan = {
changesets: NewChangeset[];
releases: ComprehensiveRelease[];
preState: PreState | undefined;
};
export declare type PackageJSON = {
name: string;
version: string;
dependencies?: {
[key: string]: string;
};
peerDependencies?: {
[key: string]: string;
};
devDependencies?: {
[key: string]: string;
};
optionalDependencies?: {
[key: string]: string;
};
resolutions?: {
[key: string]: string;
};
private?: boolean;
publishConfig?: {
access?: AccessType;
directory?: string;
registry?: string;
};
};
export declare type PackageGroup = ReadonlyArray<string>;
export declare type Fixed = ReadonlyArray<PackageGroup>;
export declare type Linked = ReadonlyArray<PackageGroup>;
export declare type Config = {
changelog: false | readonly [string, any];
commit: boolean;
fixed: Fixed;
linked: Linked;
access: AccessType;
baseBranch: string;
/** The minimum bump type to trigger automatic update of internal dependencies that are part of the same release */
updateInternalDependencies: "patch" | "minor";
ignore: ReadonlyArray<string>;
/** This is supposed to be used with pnpm's `link-workspace-packages: false` and Berry's `enableTransparentWorkspaces: false` */
bumpVersionsWithWorkspaceProtocolOnly?: boolean;
___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Required<ExperimentalOptions>;
};
export declare type WrittenConfig = {
changelog?: false | readonly [string, any] | string;
commit?: boolean;
fixed?: Fixed;
linked?: Linked;
access?: AccessType;
baseBranch?: string;
/** The minimum bump type to trigger automatic update of internal dependencies that are part of the same release */
updateInternalDependencies?: "patch" | "minor";
ignore?: ReadonlyArray<string>;
bumpVersionsWithWorkspaceProtocolOnly?: boolean;
___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH?: ExperimentalOptions;
};
export declare type ExperimentalOptions = {
onlyUpdatePeerDependentsWhenOutOfRange?: boolean;
updateInternalDependents?: "always" | "out-of-range";
useCalculatedVersionForSnapshots?: boolean;
};
export declare type NewChangesetWithCommit = NewChangeset & {
commit?: string;
};
export declare type ModCompWithPackage = ComprehensiveRelease & {
packageJson: PackageJSON;
dir: string;
};
export declare type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType, changelogOpts: null | Record<string, any>) => Promise<string>;
export declare type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: any) => Promise<string>;
export declare type ChangelogFunctions = {
getReleaseLine: GetReleaseLine;
getDependencyReleaseLine: GetDependencyReleaseLine;
};
export declare type PreState = {
mode: "pre" | "exit";
tag: string;
initialVersions: {
[pkgName: string]: string;
};
changesets: string[];
};
export {};