sb-mig
Version:
CLI to rule the world. (and handle stuff related to Storyblok CMS)
18 lines (17 loc) • 752 B
TypeScript
/**
* Known migration names (can be extended as new migrations are added)
*/
export type MigrationNames = "transitionsOnEnter" | "otherMigration" | "cardsMigration" | "hideToVisibility";
/**
* Version mapping - maps semver versions to arrays of migration names
* Uses string[] to allow flexibility for new migrations
*/
export type VersionMapping = Record<string, string[]>;
export declare const preselectMigrations: (currentVersion: string, installedVersion: string, versionMapping: VersionMapping, alreadyApplied?: {
story: string[];
preset: string[];
}) => {
story: never[];
preset: never[];
};
export declare const modifyOrCreateAppliedMigrationsFile: (migrationApplied: string, itemType: "story" | "preset") => Promise<void>;