UNPKG

@capgo/cli

Version:
11 lines (10 loc) 495 B
/** * Major version of the Capacitor runtime declared in package.json, or null. * * Checks `@capacitor/core` first (the platform-agnostic runtime), then the * platform packages `@capacitor/ios` and `@capacitor/android`, so both the iOS * and Android prescan checks resolve the same major from one shared place. * Reads dev+prod dependencies, returns null on a missing/malformed package.json * (never throws). */ export declare function capacitorMajor(projectDir: string): number | null;