@rnx-kit/align-deps
Version:
Manage dependencies within a repository and across many repositories
25 lines • 1.16 kB
TypeScript
import type { AlignDepsConfig, LegacyCheckConfig, Options } from "../types";
/**
* Transforms the old config schema into the new one.
*
* Note that this config is presented to the user and should therefore be
* "pretty".
*
* @param oldConfig Config in old schema
* @returns Config in new schema
*/
export declare function transformConfig({ capabilities, customProfiles, kitType, manifest, reactNativeDevVersion, reactNativeVersion, }: LegacyCheckConfig): AlignDepsConfig;
/**
* Migrates the old config schema into the new one, if necessary.
*
* This will function will allow users to let `align-deps` update their config.
* Otherwise, it will tell them how to update their config manually. It will
* also warn about old config keys that are no longer used.
*
* @param config Configuration in the package manifest
* @param manifestPath Path to the package manifest to check
* @param options Command line options
* @returns The config in the new schema
*/
export declare function migrateConfig(config: AlignDepsConfig | LegacyCheckConfig, manifestPath: string, { migrateConfig }: Options): AlignDepsConfig;
//# sourceMappingURL=config.d.ts.map