@rnx-kit/align-deps
Version:
Manage dependencies within a repository and across many repositories
40 lines • 1.88 kB
TypeScript
import type { PackageManifest } from "@rnx-kit/tools-node/package";
import type { AlignDepsConfig, ErrorCode, ManifestProfile, Options } from "../types";
type Change = {
name: string;
from: string;
to: string;
section: string;
};
/**
* Builds a package manifest containing _all_ capabilities from profiles that
* satisfy the specified requirements.
* @param manifestPath The path to the package manifest
* @param config Configuration from `package.json` or "generated" from command line flags
* @returns A package manifest containing all capabilities
*/
export declare function buildManifestProfile(manifestPath: string, { kitType, alignDeps }: AlignDepsConfig): ManifestProfile;
/**
* Compares the package manifest with the desired profile and returns all
* dependencies that are misaligned.
* @param manifest The package manifest
* @param profile The desired profile to compare against
* @param write Whether misaligned dependencies should be updated
* @returns A list of misaligned dependencies
*/
export declare function inspect(manifest: PackageManifest, profile: ManifestProfile, write: boolean): Change[];
/**
* Checks the specified package manifest for misaligned dependencies in place.
*
* Because the package is not configured, `align-deps` cannot know whether a
* dependency should be declared as a direct or peer dependency. It can only
* check whether the dependency is on the right version.
*
* @param manifestPath The path to the package manifest
* @param options Options from command line
* @param config Configuration from `package.json` or "generated" from command line flags
* @returns Whether the package needs changes
*/
export declare function checkPackageManifestUnconfigured(manifestPath: string, { excludePackages, write }: Options, config: AlignDepsConfig): ErrorCode;
export {};
//# sourceMappingURL=vigilant.d.ts.map