UNPKG

@xmipra/plugins

Version:
12 lines (11 loc) 624 B
export type NodeEnv = 'development' | 'production' | (string & Record<never, never>); export declare const platforms: readonly ["weapp", "alipay", "tt"]; export type TaroEnv = (typeof platforms)[number]; export declare function isWatch(): boolean; export declare function platformOf(platform: any): platform is TaroEnv; export declare function getNodeEnv(): NodeEnv; /** TARO_ENV of platforms */ export declare function getTaroEnv(): TaroEnv | undefined; export declare function resolve(...dir: string[]): string; export declare const CWD: string; export declare function getPkgConfig(cache?: boolean): Record<string, any>;