renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
48 lines (47 loc) • 1.38 kB
TypeScript
import type { FileChange } from '../../../../util/git/types';
import type { PackageFile } from '../../types';
import type { NpmManagerData } from '../types';
export interface DetermineLockFileDirsResult {
yarnLockDirs: string[];
npmLockDirs: string[];
pnpmShrinkwrapDirs: string[];
}
export interface AdditionalPackageFiles {
npm?: Partial<PackageFile<NpmManagerData>>[];
}
export interface ArtifactError {
lockFile: string;
stderr?: string;
}
export interface WriteExistingFilesResult {
artifactErrors: ArtifactError[];
updatedArtifacts: FileChange[];
}
export interface GenerateLockFileResult {
error?: boolean;
lockFile?: string | null;
stderr?: string;
stdout?: string;
}
export type PnpmDependency = Record<string, {
version: string;
} | string>;
export interface PnpmLockFile {
lockfileVersion: number | string;
catalogs?: Record<string, Record<string, {
version: string;
}>>;
importers?: Record<string, Record<string, PnpmDependency>>;
dependencies: PnpmDependency;
devDependencies: PnpmDependency;
optionalDependencies: PnpmDependency;
}
export interface YarnRcNpmRegistry {
npmAlwaysAuth?: boolean;
npmAuthIdent?: string;
npmAuthToken?: string;
}
export interface YarnRcYmlFile {
yarnPath?: string | null;
npmRegistries: Record<string, YarnRcNpmRegistry>;
}