1import { BaseParcel } from '../publish-packages/types'; 2 3/** 4 * Command's options. 5 */ 6export type CommandOptions = { 7 packageNames: string[]; 8 exclude: string[]; 9 tag: string; 10 select: boolean; 11 drop: boolean; 12 demote: boolean; 13 dry: boolean; 14 list: boolean; 15}; 16 17/** 18 * Type of parcel's state. 19 */ 20export type PromoteState = { 21 distTags?: string[]; 22 versionToReplace?: string | null; 23 isDemoting?: boolean; 24}; 25 26export type Parcel = BaseParcel<PromoteState>; 27 28export type TaskArgs = [Parcel[], CommandOptions]; 29