UNPKG

@nx/expo

Version:

The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.

48 lines 1.58 kB
import type { Tree } from 'nx/src/generators/tree'; export type ExpoDependenciesVersions = { expo: string; expoSplashScreen: string; expoStatusBar: string; expoSystemUi: string; expoCli: string; babelPresetExpo: string; expoMetroConfig: string; expoMetroRuntime: string; jestExpo: string; react: string; reactDom: string; typesReact: string; reactNative: string; metro: string; reactNativeWeb: string; reactNativeSvgTransformer: string; reactNativeSvg: string; testingLibraryReactNative: string; babelRuntime: string; }; /** * Get the appropriate dependency versions based on the installed Expo version. * Returns v53 versions if v53 is detected, otherwise returns v54 (latest). */ export declare function getExpoDependenciesVersionsToInstall(tree: Tree): Promise<ExpoDependenciesVersions>; /** * Check if the workspace is using Expo v53. */ export declare function isExpoV53(tree: Tree): Promise<boolean>; /** * Check if the workspace is using Expo v54. */ export declare function isExpoV54(tree: Tree): Promise<boolean>; /** * Get the installed Expo version from package.json. */ export declare function getInstalledExpoVersion(tree: Tree): string | null; /** * Get the installed Expo major version. */ export declare function getInstalledExpoMajorVersion(tree: Tree): 53 | 54 | undefined; /** * Get the installed Expo version from the project graph. */ export declare function getInstalledExpoVersionFromGraph(): Promise<string | undefined>; //# sourceMappingURL=version-utils.d.ts.map