UNPKG

874 BTypeScriptView Raw
1export declare enum NodeLockfileVersion {
2 NpmLockV1 = "NPM_LOCK_V1",
3 NpmLockV2 = "NPM_LOCK_V2",
4 NpmLockV3 = "NPM_LOCK_V3",
5 YarnLockV1 = "YARN_LOCK_V1",
6 YarnLockV2 = "YARN_LOCK_V2",
7 PnpmLockV5 = "PNPM_LOCK_V5",
8 PnpmLockV6 = "PNPM_LOCK_V6",
9 PnpmLockV9 = "PNPM_LOCK_V9"
10}
11export declare const getLockfileVersionFromFile: (targetFile: string) => NodeLockfileVersion;
12export declare function getPnpmLockfileVersion(lockFileContents: string): NodeLockfileVersion.PnpmLockV5 | NodeLockfileVersion.PnpmLockV6 | NodeLockfileVersion.PnpmLockV9;
13export declare function getYarnLockfileVersion(lockFileContents: string): NodeLockfileVersion.YarnLockV1 | NodeLockfileVersion.YarnLockV2;
14export declare function getNpmLockfileVersion(lockFileContents: string): NodeLockfileVersion.NpmLockV1 | NodeLockfileVersion.NpmLockV2 | NodeLockfileVersion.NpmLockV3;