UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

22 lines (21 loc) 947 B
/** * Returns the version of the local dependency of the CLI if it's installed in the provided directory. * * @param directory - Path of the project to look for the dependency. * @returns The CLI version or undefined if the dependency is not installed. */ export declare function localCLIVersion(directory: string): Promise<string | undefined>; /** * Returns the version of the globally installed CLI, only if it's greater than 3.59.0 (when the global CLI was introduced). * * @returns The version of the CLI if it is globally installed or undefined. */ export declare function globalCLIVersion(): Promise<string | undefined>; /** * Returns true if the given version is a pre-release version. * Meaning is a `nightly`, `snapshot`, or `experimental` version. * * @param version - The version to check. * @returns True if the version is a pre-release version. */ export declare function isPreReleaseVersion(version: string): boolean;