0.1.7 • Published 6 months ago
pnpm-lock v0.1.7
pnpm-lock
Parses pnpm-lock.yaml
files for use in other tools.
Usage
import { parseWantedLockfile } from 'pnpm-lock';
const path = process.cwd();
const opts = {
overrideFileName?: string; // default: 'pnpm-lock.yaml'
wantedVersions?: string[];
ignoreIncompatible: boolean;
useGitBranchLockfile?: boolean;
};
const lockfile = readLockfile(path, opts);
Notable differences from @pnpm/lockfile-file
- only
readWantedLockfile
is supported use-inline-specifiers-lockfile-format
is unsupportedautofixMergeConflicts
is unsupportedmergeGitBranchLockfiles
is unsupported- No tests: use at your own risk, however:
- there are no major changes from the original package which has tests
- there are unlocked-related tests in the unlocked package