UNPKG

@embeddable.com/sdk-core

Version:

Core Embeddable SDK module responsible for web-components bundling and publishing.

25 lines (24 loc) 1.03 kB
export declare const checkNodeVersion: () => Promise<boolean>; /** * Get the value of a process argument by key * Example: getArgumentByKey("--email") or getArgumentByKey(["--email", "-e"]) * @param key The key to search for in the process arguments * @returns */ export declare const getArgumentByKey: (key: string | string[]) => string | undefined; export declare const SUCCESS_FLAG_FILE: string; /** * Store a flag in the credentials directory to indicate a successful build * This is used to determine if the build was successful or not */ export declare const storeBuildSuccessFlag: () => Promise<void>; /** * Remove the success flag from the credentials directory */ export declare const removeBuildSuccessFlag: () => Promise<void>; /** * Check if the build was successful */ export declare const checkBuildSuccess: () => Promise<boolean>; export declare const getSDKVersions: () => Promise<Record<string, string>>; export declare const hrtimeToISO8601: (hrtime: number[] | null | undefined) => String;