@pnpm/lockfile-file
Version:
Read/write pnpm-lock.yaml files
16 lines (15 loc) • 692 B
TypeScript
import { type Lockfile } from '@pnpm/lockfile-types';
export declare function writeWantedLockfile(pkgPath: string, wantedLockfile: Lockfile, opts?: {
useGitBranchLockfile?: boolean;
mergeGitBranchLockfiles?: boolean;
}): Promise<void>;
export declare function writeCurrentLockfile(virtualStoreDir: string, currentLockfile: Lockfile): Promise<void>;
export declare function isEmptyLockfile(lockfile: Lockfile): boolean;
export declare function writeLockfiles(opts: {
wantedLockfile: Lockfile;
wantedLockfileDir: string;
currentLockfile: Lockfile;
currentLockfileDir: string;
useGitBranchLockfile?: boolean;
mergeGitBranchLockfiles?: boolean;
}): Promise<void>;