@pnpm/lockfile-file
Version:
Read/write pnpm-lock.yaml files
28 lines (27 loc) • 1.04 kB
TypeScript
import { type Lockfile } from '@pnpm/lockfile-types';
import { type ProjectId } from '@pnpm/types';
export declare function readCurrentLockfile(virtualStoreDir: string, opts: {
wantedVersions?: string[];
ignoreIncompatible: boolean;
}): Promise<Lockfile | null>;
export declare function readWantedLockfileAndAutofixConflicts(pkgPath: string, opts: {
wantedVersions?: string[];
ignoreIncompatible: boolean;
useGitBranchLockfile?: boolean;
mergeGitBranchLockfiles?: boolean;
}): Promise<{
lockfile: Lockfile | null;
hadConflicts: boolean;
}>;
export declare function readWantedLockfile(pkgPath: string, opts: {
wantedVersions?: string[];
ignoreIncompatible: boolean;
useGitBranchLockfile?: boolean;
mergeGitBranchLockfiles?: boolean;
}): Promise<Lockfile | null>;
export declare function createLockfileObject(importerIds: ProjectId[], opts: {
lockfileVersion: string;
autoInstallPeers: boolean;
excludeLinksFromLockfile: boolean;
peersSuffixMaxLength: number;
}): Lockfile;