@rnx-kit/align-deps
Advanced tools
Comparing version 2.0.1 to 2.0.2
import type { Capability } from "@rnx-kit/config"; | ||
import type { PackageManifest } from "@rnx-kit/tools-node/package"; | ||
import type { MetaPackage, Package, Preset } from "./types"; | ||
declare type ResolvedDependencies = { | ||
type ResolvedDependencies = { | ||
dependencies: Record<string, Package[]>; | ||
@@ -6,0 +6,0 @@ unresolvedCapabilities: Record<string, string[]>; |
import type { PackageManifest } from "@rnx-kit/tools-node/package"; | ||
import type { AlignDepsConfig, ErrorCode, ManifestProfile, Options } from "../types"; | ||
declare type Change = { | ||
type Change = { | ||
name: string; | ||
@@ -5,0 +5,0 @@ from: string; |
import type { KitConfig } from "@rnx-kit/config"; | ||
import type { AlignDepsConfig, ErrorCode, LegacyCheckConfig } from "./types"; | ||
declare type ConfigResult = AlignDepsConfig | LegacyCheckConfig | ErrorCode; | ||
import type { AlignDepsConfig, ErrorCode, LegacyCheckConfig, Options } from "./types"; | ||
type ConfigResult = AlignDepsConfig | LegacyCheckConfig | ErrorCode; | ||
export declare const defaultConfig: AlignDepsConfig["alignDeps"]; | ||
export declare function containsValidPresets(config: KitConfig["alignDeps"]): boolean; | ||
export declare function containsValidRequirements(config: KitConfig["alignDeps"]): boolean; | ||
export declare function findEmptyRequirements(config: KitConfig["alignDeps"]): string | undefined; | ||
/** | ||
* Loads configuration from the specified package manifest. | ||
* @param manifestPath The path to the package manifest to load configuration from | ||
* @param options Command line options | ||
* @returns The configuration; otherwise an error code | ||
*/ | ||
export declare function loadConfig(manifestPath: string): ConfigResult; | ||
export declare function loadConfig(manifestPath: string, { excludePackages }: Pick<Options, "excludePackages">): ConfigResult; | ||
export {}; | ||
//# sourceMappingURL=config.d.ts.map |
/// <reference types="node" /> | ||
import type { Capability } from "@rnx-kit/config"; | ||
import type { AlignDepsConfig, Options, Preset } from "./types"; | ||
declare type Resolution = { | ||
type Resolution = { | ||
devPreset: Preset; | ||
@@ -6,0 +6,0 @@ prodPreset: Preset; |
import type { Capability, KitConfig, KitType } from "@rnx-kit/config"; | ||
import type { PackageManifest } from "@rnx-kit/tools-node/package"; | ||
export declare type AlignDepsConfig = { | ||
export type AlignDepsConfig = { | ||
kitType: Required<KitConfig>["kitType"]; | ||
@@ -8,3 +8,3 @@ alignDeps: Required<Required<KitConfig>["alignDeps"]>; | ||
}; | ||
export declare type Options = { | ||
export type Options = { | ||
presets: string[]; | ||
@@ -18,3 +18,3 @@ loose: boolean; | ||
}; | ||
export declare type Args = Pick<Options, "loose" | "verbose" | "write"> & { | ||
export type Args = Pick<Options, "loose" | "verbose" | "write"> & { | ||
"exclude-packages"?: string | number; | ||
@@ -28,7 +28,7 @@ "migrate-config": boolean; | ||
}; | ||
export declare type DependencyType = "direct" | "development" | "peer"; | ||
export declare type ErrorCode = "success" | "invalid-app-requirements" | "invalid-configuration" | "invalid-manifest" | "missing-react-native" | "not-configured" | "unsatisfied"; | ||
export declare type Command = (manifest: string) => ErrorCode; | ||
export declare type ManifestProfile = Pick<Required<PackageManifest>, "dependencies" | "devDependencies" | "peerDependencies">; | ||
export declare type MetaPackage = { | ||
export type DependencyType = "direct" | "development" | "peer"; | ||
export type ErrorCode = "success" | "excluded" | "invalid-app-requirements" | "invalid-configuration" | "invalid-manifest" | "missing-react-native" | "not-configured" | "unsatisfied"; | ||
export type Command = (manifest: string) => ErrorCode; | ||
export type ManifestProfile = Pick<Required<PackageManifest>, "dependencies" | "devDependencies" | "peerDependencies">; | ||
export type MetaPackage = { | ||
name: "#meta"; | ||
@@ -38,3 +38,3 @@ capabilities: Capability[]; | ||
}; | ||
export declare type Package = { | ||
export type Package = { | ||
name: string; | ||
@@ -45,8 +45,8 @@ version: string; | ||
}; | ||
export declare type Profile = Readonly<Record<Capability, MetaPackage | Package>>; | ||
export declare type Preset = Record<string, Profile>; | ||
export declare type ExcludedPackage = Package & { | ||
export type Profile = Readonly<Record<Capability, MetaPackage | Package>>; | ||
export type Preset = Record<string, Profile>; | ||
export type ExcludedPackage = Package & { | ||
reason: string; | ||
}; | ||
export declare type LegacyCheckConfig = { | ||
export type LegacyCheckConfig = { | ||
kitType: KitType; | ||
@@ -53,0 +53,0 @@ reactNativeVersion: string; |
{ | ||
"name": "@rnx-kit/align-deps", | ||
"version": "2.0.1", | ||
"description": "Dependency checker for npm packages", | ||
"version": "2.0.2", | ||
"description": "Manage dependencies within a repository and across many repositories", | ||
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/align-deps#readme", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
1163136
31763