create-expo-module
Version:
The script to create the Expo module
10 lines (9 loc) • 776 B
TypeScript
import spawnAsync from '@expo/spawn-async';
export declare const PACKAGE_MANAGERS: readonly ["npm", "pnpm", "yarn", "bun"];
export type PackageManagerName = (typeof PACKAGE_MANAGERS)[number];
export declare function isPackageManagerName(value: string | undefined): value is PackageManagerName;
/** Determine which package manager to use for installing dependencies based on how the process was started. */
export declare function resolvePackageManager(): PackageManagerName;
export declare function formatRunCommand(manager: PackageManagerName, cmd: string): string;
/** Install dependencies with the given package manager */
export declare function installDependencies(packageManager: PackageManagerName, appPath: string, ...args: string[]): Promise<spawnAsync.SpawnResult>;