UNPKG

@capgo/cli

Version:
19 lines (18 loc) 865 B
import type { PackageManager } from './workflow-generator.js'; export interface BuildScriptOption { label: string; value: string; } /** * `getPMAndCommand()` returns the literal string 'unknown' when no recognizable * lockfile is present. The workflow generator only knows the four real ones — * fall back to 'npm' for the generator template. */ export declare function normalizePackageManager(pm: string): PackageManager; /** * Build the picker options for `pick-build-script`. Shows ALL scripts from * package.json (the user picks; we don't auto-guess), with the project-type * recommendation surfaced at the top, plus escape hatches for custom commands * and "skip build entirely" (raw HTML Capacitor apps). */ export declare function buildScriptPickerOptions(scripts: Record<string, string>, recommended: string | null): BuildScriptOption[];