@rnx-kit/align-deps
Version:
Manage dependencies within a repository and across many repositories
20 lines • 1.05 kB
TypeScript
import type { KitType } from "@rnx-kit/config";
import type { PackageManifest } from "@rnx-kit/tools-node/package";
import type { Command, Options } from "../types";
/**
* Generates an `align-deps` configuration for a React Native package by
* inspecting its dependencies.
*
* Note that this function uses the `react-native` version to determine which
* profile to use. If the package is not a React Native app/library, this
* function will return early.
*
* @param manifest The package manifest to update
* @param projectRoot The root of the project
* @param kitType The project type
* @param options Options from the command line
* @returns A configured package manifest; `null` if the React Native version could not be determined
*/
export declare function initializeConfig(manifest: PackageManifest, projectRoot: string, kitType: KitType, { presets }: Options): PackageManifest | null;
export declare function makeInitializeCommand(kitType: string, options: Options): Command | undefined;
//# sourceMappingURL=initialize.d.ts.map