UNPKG

1.6 kBTypeScriptView Raw
1import { PnpmWorkspaceArgs } from '../../types';
2import { NormalisedPnpmPkg, NormalisedPnpmPkgs, ParsedDepPath, PnpmDepPath, PnpmDeps, PnpmImporters, PnpmLockPkg } from '../types';
3export declare abstract class PnpmLockfileParser {
4 lockFileVersion: string;
5 rawPnpmLock: any;
6 packages: Record<PnpmDepPath, PnpmLockPkg>;
7 extractedPackages: NormalisedPnpmPkgs;
8 importers: PnpmImporters;
9 workspaceArgs?: PnpmWorkspaceArgs;
10 resolvedPackages: Record<string, PnpmDepPath>;
11 constructor(rawPnpmLock: any, workspaceArgs?: PnpmWorkspaceArgs);
12 isWorkspaceLockfile(): boolean | undefined;
13 extractPackages(): NormalisedPnpmPkgs;
14 extractTopLevelDependencies(options: {
15 includeDevDeps: boolean;
16 includeOptionalDeps?: boolean;
17 includePeerDeps?: boolean;
18 }, importer?: string): PnpmDeps;
19 normalizedPkgToTopLevel(pkg: NormalisedPnpmPkg): PnpmDeps;
20 topLevelDepsToNormalizedPkgs(deps: PnpmDeps): Record<string, string>;
21 normalizeVersion(name: string, version: string, isDev: boolean, importerName?: string): string;
22 resolveWorkspacesCrossReference(name: string, version: string, isDev: boolean, importerName?: string): string;
23 abstract normalizePackagesDeps(dependencies: any, isDev: any, importerName?: any): Record<string, string>;
24 abstract normalizeTopLevelDeps(dependencies: any, isDev: any, importerName?: any): PnpmDeps;
25 abstract parseDepPath(depPath: string): ParsedDepPath;
26 abstract excludeTransPeerDepsVersions(fullVersionStr: string): string;
27 abstract normaliseImporters(rawPnpmLock: any): PnpmImporters;
28}