UNPKG

preversion

Version:

A tiny cli helps you to publish alpha/beta versions to npm before releasing the final latest version

33 lines 847 B
//#region src/types.d.ts interface PreversionOptions { branch?: string; message: string; preversion?: string; tag?: string; } interface PackageJson { name: string; version: string; description?: string; publishConfig?: { directory?: string; }; } type DistTags = Partial<Record<string, string>>; interface StdioError extends Error { stderr?: Buffer; stdout?: Buffer; } //#endregion //#region src/index.d.ts declare const getPreversionTag: (version: string) => "alpha" | "beta" | undefined; declare const pkg: PackageJson; declare const getPreversion: (tag: string, version?: string) => string; declare const preversion: ({ branch, message, preversion, tag }: PreversionOptions) => void; //#endregion export { DistTags, PackageJson, PreversionOptions, StdioError, getPreversion, getPreversionTag, pkg, preversion };