@capgo/cli
Version:
A CLI to upload to capgo servers
29 lines (28 loc) • 1.48 kB
TypeScript
export declare const MONOREPO_ROOT_PATHS_NOTE = "Use the Capacitor app package.json, not the workspace manifest. Dependencies resolve from app-local and hoisted node_modules automatically; provide explicit paths only to override discovery.";
export declare const MONOREPO_UPLOAD_RETRY_HINT = "If this app lives in a monorepo, verify the selected app directory and its package.json before installing dependencies. Hoisted node_modules are discovered automatically.";
export type BundleUploadRecoveryChoice = 'retry' | 'retry-with-monorepo-paths';
export declare function getBundleUploadFailureRecoveryOptions(): {
value: BundleUploadRecoveryChoice;
label: string;
hint?: string;
}[];
export declare function joinUniqueUploadPaths(...paths: Array<string | undefined>): string | undefined;
export declare function resolveUploadPaths(paths: string | undefined, baseDir: string): string | undefined;
export declare function mergeMonorepoRootUploadPaths(prompted: {
packageJson?: string;
nodeModules?: string;
}, current: {
packageJson?: string;
nodeModules?: string;
}, promptCwd: string): {
packageJson?: string;
nodeModules?: string;
};
export declare function formatBundleUploadRunnerCommand(runner: string, appId: string, options: {
bundle?: string;
channel?: string;
deltaOnly?: boolean;
packageJson?: string;
nodeModules?: string;
}): string;
export declare function withMonorepoUploadRetryHint(error: string): string;